When you access the Web.config file from a browser, What will happen ?

 Posted by Bharathi Cherukuri on 7/31/2012 | Category: ASP.NET Interview questions | Views: 5778 | Points: 40

You can’t access the Web.config file from a browser due to the security reasons.
The user will receive an error message as "This type of page is not served", If a user requests the Web.config file from your Web site.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Srilu.Nayini577 on: 8/3/2012 | Points: 10
We can't access the web.config file from browser. We can get the error like
"This type of page is not served."

Error Description is:The page you have requested is not served because it has been explicitly forbidden

Login to post response