“/AJAXEnabledWebSite”应用程序中的服务器错误。
--------------------------------------------------------------------------------未能加载文件或程序集“Microstot.Web.Preview”或它的某一个依赖项。系统找不到指定的文件。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.IO.FileNotFoundException: 未能加载文件或程序集“Microstot.Web.Preview”或它的某一个依赖项。系统找不到指定的文件。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  程序集加载跟踪: 下列信息有助于确定程序集“Microstot.Web.Preview”无法加载的原因。=== 预绑定状态信息 ===
日志: 用户 = YEZHANG\Administrator
日志: DisplayName = Microstot.Web.Preview
 (Partial)
日志: Appbase = file:///D:/Programme/AJAXEnabledWebSite/
日志: 初始 PrivatePath = D:\Programme\AJAXEnabledWebSite\bin
调用程序集: (Unknown)。
===
日志: 此绑定从 default 加载上下文开始。
日志: 正在使用应用程序配置文件: D:\Programme\AJAXEnabledWebSite\web.config
日志: 使用 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config 的计算机配置文件。
日志: 此时没有为引用应用策略(私有、自定义、分部或基于位置的程序集绑定)。
日志: 试图下载新的 URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ajaxenabledwebsite/f205d4b7/78a5ee8a/Microstot.Web.Preview.DLL。
日志: 试图下载新的 URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ajaxenabledwebsite/f205d4b7/78a5ee8a/Microstot.Web.Preview/Microstot.Web.Preview.DLL。
日志: 试图下载新的 URL file:///D:/Programme/AJAXEnabledWebSite/bin/Microstot.Web.Preview.DLL。
日志: 试图下载新的 URL file:///D:/Programme/AJAXEnabledWebSite/bin/Microstot.Web.Preview/Microstot.Web.Preview.DLL。
日志: 试图下载新的 URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ajaxenabledwebsite/f205d4b7/78a5ee8a/Microstot.Web.Preview.EXE。
日志: 试图下载新的 URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/ajaxenabledwebsite/f205d4b7/78a5ee8a/Microstot.Web.Preview/Microstot.Web.Preview.EXE。
日志: 试图下载新的 URL file:///D:/Programme/AJAXEnabledWebSite/bin/Microstot.Web.Preview.EXE。
日志: 试图下载新的 URL file:///D:/Programme/AJAXEnabledWebSite/bin/Microstot.Web.Preview/Microstot.Web.Preview.EXE。堆栈跟踪: [FileNotFoundException: 未能加载文件或程序集“Microstot.Web.Preview”或它的某一个依赖项。系统找不到指定的文件。]
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
   System.Reflection.Assembly.Load(String assemblyString) +25
   System.Web.UI.AssemblyCache.Load(String assemblyName) +73
   System.Web.UI.ScriptManager.RemoveDuplicates(List`1 scripts) +652
   System.Web.UI.ScriptManager.RegisterScripts() +388
   System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +111
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2058052
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.832; ASP.NET 版本:2.0.50727.832 请各位看下这是什么问题?我不明白,谢谢:)

解决方案 »

  1.   

    ASPNETAJAXHelloWorld.aspx:
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
        <style type="text/css">
            *
            {
                font-family:Tahoma;
                font-size:0.96em;
            }
            input
            {
                border:1px solid #000;
            }
        </style>
        <script language="javascript" type="text/javascript">
            var g_thName=null;
            var g_btnSayHello=null;
            var g_lbMessage=null;
            function pageLoad()
            {
                g_thName=new Sys.Preview.UI.TextBox($get('tbName'));
                g_thName.initialize();
                
                g_btnSayHello=new Sys.Preview.UI.Button($get('btnSayHello'));
                g_btnSayHello.add_click(getServerHelloString);
                g_btnSayHello.initialize();
                
                g_lbMessage=new Sys.Preview.UI.Label($get('lbMessage'));
                g_lbMessage.initialize();
            }
            function cb_getServerHelloString(result)
            {
                g_lbMessage.set_text(result);
            }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
                <Services>
                    <asp:ServiceReference Path="HelloWorldService.asmx" />
                </Services>
                <Scripts>
                    <asp:ScriptReference Assembly="Microstot.Web.Preview" Name="PreviewScript.js" />
                </Scripts>
            </asp:ScriptManager>
            <label for="tbName">Your Name:&nbsp;</label>
            <input id="tbName" type="text" />
            <input id="btnSayHello" type="button" value="Say Hello From Server!" />
            <div id="lbMessage"></div>
        </div>
        </form>
    </body>
    </html>
    HelloWorldService.cs:
    using System;
    using System.Web;
    using System.Collections;
    using System.Web.Services;
    using System.Web.Services.Protocols;/// <summary>
    /// HelloWorldService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://dflying.net/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.Web.Script.Services.ScriptService()]
    public class HelloWorldService : System.Web.Services.WebService
    {
        public HelloWorldService ()
        {
           //如果使用设计的组件,请取消注释以下行 
            //InitializeComponent(); 
        }    [WebMethod]
        public string GetHelloWorldString(string name)
        {
            return string.Format("Welcome to ASP.NET AJAX world,{0}!. Now it is {1}.", name, DateTime.Now);
        }
    }
      

  2.   

    有没有安装 Ajax Extension
      

  3.   

     我也出现了这个问题,并且是安装了了ajax Extension,并且能够在C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\MicrosoftAjaxLibrary\System.Web.Extensions\1.0.61025.0 找到debug.js 和 *.js文件。但是无法在reference里添加Microsoft.web.Extension 或者Microstot.Web.Preview