views:

3012

answers:

5

How do you even look at the web.config file? I don't know where to go to turn custom errors off...help!

I tried command prompt and java script....can any one help me?

A: 

The web.config file is just a text XML file. You can edit it within Visual Studio or any text editor. (Just make sure the result is well-formed XML).

Jim Anderson
To alter the custom errors setting, just change the mode attribute of the customErrors node: <customErrors mode="Off"/>
Jim Anderson
+2  A: 

Run the Internet Information Services (IIS) Manager tool from the Administrative Tools (on the start menu if admin tools are enabled there). Open up the system, and right click on your web site. Select Properties. Choose the ASP.NET tab. Click on "Edit Configuration". Click the Custom Errors tab. Select Off for custom error mode.

Or navigate to the folder containing your application and open the web.config file in a text editor and edit by hand, and change the custom errors tag to <customErrors mode="Off" />.

tvanfosson
A: 

You have to make a decision:

  1. Do you get help from someone sitting next to you?
  2. Do you take a programming class?
  3. Do you buy a book on how to program .Net in 21 days?

The web.config file is a pretty basic element in the .net ecosystem. It's located in the root of your website and is responsible for a lot of the site behavior.

Chris Lively
A: 

Per the MSDN documentation the valid values for mode are:

On: Specifies that custom errors are enabled. If no defaultRedirect attribute is specified, users see a generic error. The custom errors are shown to the remote clients and to the local host.

Off Specifies that custom errors are disabled. The detailed ASP.NET errors are shown to the remote clients and to the local host.

RemoteOnly Specifies that custom errors are shown only to the remote clients, and that ASP.NET errors are shown to the local host. This is the default value.

The default is RemoteOnly.

Jim Anderson
A: 

No wonder a huge proportion of the population is not on the internet. It's so infuriating to be halfway into filling in a form when an incomprehensible message comes up and won't let you go any further. I'm tempted to take myself off to a desert island and forget the whole modern world!

Maggie Willis