Click here to Skip to main content
15,880,796 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I’m creating a custom asp Form using visual studio 2010 on sharepoint server 2010, and when I try to debug it I face this error message

"Unable to start debugging on the web server. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing Debug.Start without debugging. You may also want to refer to the ASP.NET and ATL server debugging topic in the online documentation."

And when I try to debug.start without debugging this how the web page be , its not working and show this error


XML
Server Error


Internet Information Services 7.5



Error Summary
HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.


Detailed Error Information



Module

IIS Web Core



Notification

Unknown



Handler

Not yet determined



Error Code

0x800700b7



Config Error

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



Config File

\\?\C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config





Requested URL

http://localhost:80/_layouts/SimpleCopyFileForms/AssociationForm/Design_AssociationForm.aspx



Physical Path




Logon Method

Not yet determined



Logon User

Not yet determined




Config Source   24:       <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
   25:         <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
   26:         <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">





My Platform is Windows server 2008 SP1, IIS 7.5 , Sharepoint Server 2010 , Visual Studio 2010
I checked if there’s a duplication in the web.config file between the application web.config and root web.config, but nothing ,, I also checked the App pool for my aspx page ,, but nothing also.
And when I create normal asp page ( save it locally not on the SP server ) it works perfect !!
(hints :
- in the web.config file , debug = “true”
- “sharepoint – 80” application pool’s .net framework is version 2
- My aspx applications pool’s .net framework is version 4

Anyhelp?
Posted

You need to change the .NET framework version in the Application Pools from v4.0 to v2.0 for the Default App Pool.
Here is a link to common ASP.NET 4 Breaking Changes:
Configuration Errors Related to New ASP.NET 4 Root Configuration[^]

Refer the links below for similar threads:
There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined[^]
IIS7 deployment - duplicate 'system.web.extensions/scripting/scriptResourceHandler' section[^]

--Amit
 
Share this answer
 
you can change .net framework version from 3.5 to 4.0 and the published your website, you solved this error.

change build version

solution explore -> right click project -> property pages -> build(tab)->target framework -> select .net framework 4.0
 
Share this answer
 
Your just change your aspx application pool's .net framework from version 4 to version 2 and you will find that the site is working. Actually when you create any sharepoint custom application you should use version 2 instead of version 4. Sharepoint 2010 work with dotnet framework 3.5 not 4. In app pool version 2 support upto framework 3.5
 
Share this answer
 
Comments
AnTiiiKa 19-Feb-13 1:42am    
I did it already, I changed the APP Pool for my application in the IIS 7.5, I changed it from .net 4.0 to default app pool ( .Net version 2.0 Integrated ) but when I try to debug, error message "Unable to start debugging on the web server.Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing Debug.Start without debugging. You may also want to refer to the ASP.NET and ATL server debugging topic in the online documentation."
And When I try to open the Aspx page ,, View in browser or start without debugging .. "The website cannot display the page " with title " HTTP 500 Internal Server Error"
I did it already, I changed the APP Pool for my application in the IIS 7.5, I changed it from .net 4.0 to default app pool ( .Net version 2.0 Integrated ) but when I try to debug, error message
Unable to start debugging on the web server.Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing Debug.Start without debugging. You may also want to refer to the ASP.NET and ATL server debugging topic in the online documentation

And When I try to open the Aspx page ,, View in browser or start without debugging ..
The website cannot display the page &amp;quot; with title &amp;quot; HTTP 500 Internal Server Error
 
Share this answer
 
Hey ,,, I changed the target frame work to .Net 2.0 only when creating the web site in Visual Studio 2010 in the first page, and it worked fine.
 
Share this answer
 
The Problem now,, I can't find Windows SharePoint Services in .NET tab of the Add Reference dialog box , because it is filtered to .Net Framework 2.0 .. and if I changed it ,,, last problem will back .... Any Help!!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900