0

m receiving the following error while publishing my site on iis. Please help. I have also attached the screenshot


Server ErrorInternet 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 BeginRequest
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\OnlineShopping\web.config
Requested URL http://localhost:80/OnlineShopping
Physical Path C:\inetpub\wwwroot\OnlineShopping
Logon Method Not yet determined
Logon User Not yet determined
Config Source
5: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
6: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
7: <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
Links and More InformationThis error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
View more information »

Attachments error.png 177.07 KB
3
Contributors
3
Replies
7
Views
5 Years
Discussion Span
Last Post by Shillz
0

You have a Web site that is hosted on Internet Information Services (IIS) 7.5

This problem occurs because the ApplicationHost.config file has a duplicate entry for the following code.

<add accessType="Allow" users="*" />

To resolve this problem,

In the ApplicationHost.config file, delete the duplicate entry for the authorization rule. To do this, follow these steps:

Click Start, type Notepad in the Start Search box, right-click Notepad, and then click Run as administrator.

Note If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
On the File menu, click Open, type %windir%\System32\inetsrv\config\applicationHost.config in the File name box, and then click Open.
In the ApplicationHost.config file, delete the duplicate entry that resembles the following code.

<add accessType="Allow" users="*" />

Hope This will solve your problem...

Regards,
Vishal

0

I configured the problem. We need to delete/comment

<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
</sectionGroup>

This solved my issue...! :icon_cool:

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.