IIS7 deployment - duplicate 'system.web.extensions/scripting/scriptResourceHandler' section

后端 未结 15 2169
萌比男神i
萌比男神i 2020-11-29 15:56

On attempting to deploy a .net 3.5 website on the default app pool in IIS7 having the framework section set to 4.0, I get the following error.

There i

15条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 16:32

    If your plan is to deploy to an IIS that has an Application Pool running in .net 4.0 you will need to cleanup the web.config that includes all the section Definitions that point to .net 3.5. The reason this fails is because these section definitions are already included in the root web.config in .NET 4.0 (see %windir%\microsoft.net\framework\v4.0.30319\config\machine.config) that include all the system.web.extensions declared already.

    Another quick fix is to have the application pool set to 2.0 just as your development machine appears to have,.

提交回复
热议问题