Click Here To Get Amazing Facebook Profile Covers,Status Messages

ASP.NET error-this type of page is not served

1 reply [Last post]
rahul's picture
rahul
User offline. Last seen 31 weeks 5 days ago. Offline
Joined: 08/21/2009

I am new to asp.net i just created an web application whenever i try to run it throws the same error

Server Error in '/WebApplication4' Application.
--------------------------------------------------------------------------------

This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asax' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Requested URL: /WebApplication4/Global.asax

what is this how to get rid of it.


rajesh's picture
rajesh
User offline. Last seen 12 weeks 6 days ago. Offline
Joined: 08/17/2009
.asax file type is protected file type

ASP.NET application protects certain types of file from being viewed by users.System.Web.HttpForbiddenHandler is used for binding files which needs to be protected.

You can add httphandler tag in your web.config file for adding another file type protection.

in your case you are accessing global.asax which is protected file make another .aspx file as startup file in try.

njoy coding