Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET IIS7.5 sharepoint2010 , +
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

 
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 18-Feb-13 12:16pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
AnTiiiKa at 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"
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

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!!!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 459
1 Maciej Los 404
2 Sergey Alexandrovich Kryukov 192
3 CPallini 185
4 Hard_Rockz 115
0 OriginalGriff 5,634
1 Sergey Alexandrovich Kryukov 4,763
2 Peter Leow 2,954
3 Maciej Los 2,614
4 DamithSL 2,465


Advertise | Privacy | Mobile
Web04 | 2.8.140718.1 | Last Updated 10 Sep 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid