Error :
IIS 7 throws “duplicate section defined” error for web.config on one server when hosted but it was working on local machine
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
Solution :
1. Switch to another system who supports .NET 3.5.
2. Ask your current system if they supports Microsoft AJAX for .NET 2.0
http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en
If they do, you may consider downgrade your solution to .NET 2.0 instead of 3.5.
Hope this helps.
3) Change Application pool of IIS server to 2.0 , website works fine .
IIS 7 throws “duplicate section defined” error for web.config on one server when hosted but it was working on local machine
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
Solution :
1. Switch to another system who supports .NET 3.5.
2. Ask your current system if they supports Microsoft AJAX for .NET 2.0
http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en
If they do, you may consider downgrade your solution to .NET 2.0 instead of 3.5.
Hope this helps.
3) Change Application pool of IIS server to 2.0 , website works fine .
Comments
Post a Comment