Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net ajax 使用ScriptManager时出现分析错误_Asp.net Ajax - Fatal编程技术网

Asp.net ajax 使用ScriptManager时出现分析错误

Asp.net ajax 使用ScriptManager时出现分析错误,asp.net-ajax,Asp.net Ajax,我有一个web应用程序,两天前运行良好。当我把这个网站移到另一台机器上时,我面临以下问题。 在我的网页中,我已将ScriptManager声明为: <asp:ScriptManager ID="scriptMgr" runat="server"> </asp:ScriptManager> 在另一个网页上,我发现以下错误: The base class includes the field 'upProgress', but its type (System.Web.U

我有一个web应用程序,两天前运行良好。当我把这个网站移到另一台机器上时,我面临以下问题。

在我的网页中,我已将ScriptManager声明为:

<asp:ScriptManager ID="scriptMgr" runat="server">
</asp:ScriptManager>
在另一个网页上,我发现以下错误:

The base class includes the field 'upProgress', but its type (System.Web.UI.UpdateProgress) is not compatible with the type of control (System.Web.UI.UpdateProgress).
我的web应用程序是基于ASP.NET 2.0构建的,我还验证了System.web.Extensions.Dll的正确(1.0.61025.0)版本是否存在于我的应用程序的bin文件夹中。

Web.config中System.Web.Extensions.Dll的条目为:

<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
  <section name="CSI.OLS.Library.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
  <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
      <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
      <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
    </sectionGroup>
  </sectionGroup>
</sectionGroup>



这两个错误似乎都与使用AJAX特性有关。谁能告诉我,是什么导致了上述错误?

asp.net 2.0不需要扩展补丁来正确支持ajax应用程序吗


这似乎是.NET 2.0 AJAX 1.0与.NET 3.5 AJAX之间的问题。(也就是说,AJAX库直接包含在.NET 3.5中,您似乎正在尝试使用.NET 3.5版本的AJAX库。)

我在一个应用程序中遇到了相同的问题,并找到了解决该问题的两个建议

一个建议是在项目文件对System.Web.Extensions.dll程序集的引用中,将特定版本属性设置为True。由于您显式引用了此程序集的1.0.61025.0版本,我怀疑这会解决问题。

迟来的答案:)但我的产品中也有类似的问题,通过将以下内容添加到web.config中解决了它

<runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly>
        </assemblyBinding>
</runtime>


这将重定向程序集绑定,以便使用新版本,从而解决冲突

我已经安装了此修补程序。尽管如此,我仍然面临错误。那么请发布您的web.config。我已经添加了web.config条目,请调查此问题。
<runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly>
        </assemblyBinding>
</runtime>