开发者

Visual Studio Upgrading Project from 2008 to 2010, Web.Config issue duplicate sections defined

I am trying to upgrade my my project from VS2008 to VS2010 and got the following after it was complete

There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined 

<sectionGroup name="scripting" type="Sy开发者_开发技巧stem.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">

Anyone know way around this ?


Quoting from here

This is a known issue with ASP.NET 4.0 / vs 2010

See this for more info

The workaround for the second scenario is to delete or comment out all the system.web.extensions configuration section definitions and configuration section group definitions from the application-level Web.configfile. These definitions are usually at the top of the application-level Web.configfile and can be identified by the configSections element and its children.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜