Sharepoint 2010 Server上的IIS 7.0中的部署问题。
我正在尝试在IIS 7.0上部署Asp.net Web应用程序。
如下:
http://msdn.microsoft.com/en-us/library/dd483479.aspx
错误2:
答案 0 :(得分:0)
之前看过这个(我猜 - 这是在SP2007上工作吗?)。 在任何情况下,您都需要删除脚本资源处理程序部分,因为它们已经定义(我不记得确切的细节但过去这一点我)。我们使用ASP.NET Ajax Extensions for .NET 2.0,虽然2007年的情况很好但我们在2010年得到了这个问题。
以下是我们最终使用的配置文件的副本,以便您可以看到已删除的内容:
<customErrors mode="Off" defaultRedirect="GenericErrorPage.aspx"></customErrors>
<pages>
<controls>
</controls>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="false">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<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>
<scripting>
<webServices>
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</scripting>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
</handlers>