【发布时间】:2013-12-02 13:14:59
【问题描述】:
在 Server 2008 32 位机器上安装我的 Web 应用程序时出现错误(无法读取配置部分 system.web.extensions,因为它缺少部分声明) .NET Framework 4.0。但它在 2008 r2 64 位机器上运行良好。
这是我的 webconfig 文件信息
<configuration>
<runtime>
<assemblyBinding appliesTo="v2.0.50727" 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>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483647"/>
</webServices>
</scripting>
</system.web.extensions>
</configuration>
有什么办法摆脱这个错误吗?
注意:我已经检查了堆栈溢出中的所有相关条目,但对我没有任何用处
【问题讨论】:
标签: asp.net .net iis-7 web-config iis-7.5