Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to set up my first Restful service application on IIS, I cannot work out what the problem is. Error is coming like this.

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.


CSS
Detailed Error Information:
Module     IIS Web Core
Notification       BeginRequest
Handler    Not yet determined
Error Code     0x80070021
Config Error       This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File    \\?\E:\RestfulWS1\RestfulWS1\web.config
Requested URL      http://localhost:80/revaws
Physical Path      E:\RestfulWS1\RestfulWS1\revaws
Logon Method       Not yet determined
Logon User     Not yet determined



XML
Config Source:
   21:   <system.webServer>
   22:     <handlers>
   23:       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />



Please anyone guide me. I'm the new. I tried lot but not solved. Please help me.
Posted
Updated 7-Oct-15 0:17am
v4
Comments
Afzaal Ahmad Zeeshan 7-Oct-15 4:25am    
The configuration file is invalid (it states). Can you try to fix the file? The problem is with the "web.config" file.
Member 11228607 7-Oct-15 6:12am    
where i can change the code in "web.config" file. i'm the new.
Member 11228607 7-Oct-15 6:12am    
please tell me.
John C Rayan 7-Oct-15 7:30am    
Just open in a editor like notepad and check it
Afzaal Ahmad Zeeshan 7-Oct-15 6:40am    
Just open it, and edit it. It that too hard?

1 solution

You need to mark the revaws directory as an application in IIS Manager.

Open IIS Manager and locate the directory. Right-click on the directory and select "Convert to Application".
 
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