Last post Aug 20, 2014 01:46 AM by Starain chen - MSFT
Aug 18, 2014 10:14 PM|vafguia|LINK
I am trying to learn ASP.Net web pages and I am in the "Creating Data" stage . I tried to launch the Movies.cshtml project in in my browser but I got the a 404.8 error as follows:
HTTP Error 404.8 - Not Found
The request filtering module is configured to deny a path in the URL that contains a hiddenSegment section.
Most likely causes:
Request filtering is configured for the Web server and it contains a hiddenSegments section that allows the server administrator to deny access to specific directories.
Things you can try:
Verify configuration/system.webServer/security/requestFiltering/hiddenSegments settings in the applicationhost.config or the web.config file.
What is wrong and how do I fix this?
Thank you very much for your help.
Aug 19, 2014 02:07 AM|Mikesdotnetting|LINK
It sounds like you have added your file to the App_Data or App_Code folder accidentally. These are special folders in ASP.NET which are protected by the request filtering module to prevent people browsing their content. Move the file out of the folder to
the root of the site.
Aug 19, 2014 02:23 AM|vinay13mar|LINK
Hi please provide you folder structure .
Aug 20, 2014 01:46 AM|Starain chen - MSFT|LINK
First, please refer to Mike’s reply.
Secondly, please refer to this article:
# Hidden Segments <hiddenSegments>