定义了一个重复的'system.web.extensions / scripting / scriptResourceHandler'部分 [英] There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined

查看:135
本文介绍了定义了一个重复的'system.web.extensions / scripting / scriptResourceHandler'部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用sharepoint server 2010上的visual studio 2010创建自定义asp表单,当我尝试调试它时,我遇到此错误消息



Unable在Web服务器上开始调试。有关常见配置错误,请参阅帮助。在调试器外部运行网页可能会提供更多信息。

确保服务器运行正常。确认没有语法错误在web.config中通过调试Debug.Start而无需调试。您可能还需要参考在线文档中的ASP.NET和ATL服务器调试主题。



当我尝试调试.start而不调试这个网页是如何,它不工作并显示此错误





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">

< br $> b $ b







我的平台是Windows Server 2008 SP1,IIS 7.5, Sharepoint Server 2010,Visual Studio 2010

当我创建普通的asp页面(在本地保存而不是在SP服务器上)时,它的工作非常完美!!

(提示:

- 在web.config文件中,debug =true

- sharepoint - 80应用程序池的.net框架是版本2

- 我的aspx应用程序池的.net框架是版本4



Anyhelp?






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?

推荐答案

你需要更改Applica中的.NET框架版本默认应用程序池的v4.0到v2.0池。

以下是常见ASP.NET 4重大变化的链接:

与新的ASP.NET 4根配置相关的配置错误 [ ^ ]



请参阅以下链接获取类似主题:

定义了一个重复的'system.web.extensions / scripting / scriptResourceHandler'部分 [ ^ ]

IIS7部署 - 复制'system.web.extensions / scripting / scriptResourceHandler'部分 [ ^ ]



--Amit
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


你可以将.net框架版本从3.5改为4.0并发布你的网站,你就解决了这个错误。



更改构建版本



解决方案探索 - >右键单击项目 - >财产页面 - >构建(制表符) - >目标框架 - > select .net framework 4.0
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


您只需将您的aspx应用程序池的.net框架从版本4更改为版本2,您就会发现该站点正在运行。实际上,当您创建任何sharepoint自定义应用程序时,您应该使用版本2而不是版本4. Sharepoint 2010使用dotnet framework 3.5而不是4.在应用程序池版本2支持到框架3.5
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


这篇关于定义了一个重复的'system.web.extensions / scripting / scriptResourceHandler'部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆