Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web.Config Browse Error

Status
Not open for further replies.

rpolunsky

Programmer
Apr 17, 2001
22
US
I'm looking through my Solution Explorer at the Web.config file, and I right-click and see the options Open, Open With, and View in Browser.
Out of curiosity, I try "View in Browser" and eventually get the following:

Server Error in '/ServiceTwoSources' 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: /ServiceTwoSources/Web.config

-------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0

So if you're not supposed to use the browser on that file, why does Microsoft offer it as an option?

Just curious...
 
Well I can think of one good thing about that - at least you know it won't be as easy as browsing to someone's web config file to see it. Especially since people are often storing somewhat sensitive info in there.

Why they let you have that option is beyond me. I know that I have had issues with visual studio and expect it to get better (I hope ;-)) Crystal
crystalized_s@yahoo.com

--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top