Can we open web.config file through URL in ASP.NET application?

Can we open web.config file through URL?
We can't web.config file through URL. Config files are not served by IIS for security reasons. We will get below error.
For more information go through below discussion.
http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&discussionID=128566295&gid=1931721&commentID=86209534&trk=view_disc&ut=071JKdiwWG1lk1



Server Error in '/webconfig' 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 '.config' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

Requested URL: /webconfig/web.config

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


This is one of the good ASP.NET interview Question.
Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

 
Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar