I started with the ASP.net 3.5 web application and upgraded to ASP.net 4.0. When I ran the application on my development workstation in the Visual Studio 2010 debugger, everything seemed good. However, when I clicked the application on my development web server, I continued to receive error messages that I resolved by commenting out some lines from web.config in my earlier working application:
<configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> </sectionGroup> </sectionGroup> </sectionGroup>
Can someone explain to me why I had to do this in order to get my application to run on my development web server with .net 4.0?
source share