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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web.config error set <customErrors mode="Off"/>

Status
Not open for further replies.

bigfoot

Programmer
May 4, 1999
1,779
US
I'm real new to asp.net and pulling my hair out. I've been messing with this for an hour. Lone enough to have my app at least started in asp.

I created a sample, simple web site 1 page, then uploaded it to the server.
I set up the server's path as a virtual directory and made it an application.

When I try to connect to the page, ie gives the following error, and there's a lot of info about this but no resolve.

So if net sucks this bad then why is it being used?

Sorry, frustrated.

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


I added a line in the right place just like they said.
No good. It's like it's not even there.

Added the line to the file ON the server, and no good.

Any help would be great, any at all.
 
A quick thought since there is no way for me to see your PC or server, does your server have the .NET framework installed on it? I am assuming you developed locally and it worked, but not once you moved it to your server?

Jim
 
Hi,
Look to see if there is a web.config in the root of your Application directory, not the root of the web server..Be sure that one has the correct setting..



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
It's got 1.0 and 1.1 on it. That may do it. Just put 2.0 on it. Never thought to look as this server was here before me.

Loading 2.0 and will try again.
 
Not only do you need to install the framework, but you need to set that virtual directory to use the correct version (should be under Properties -> Asp.net"

J
 
jshurst, I wish I would have read your post, but I installed the framework and nothing. Then remembered to set it as you said.

Works now.
It was all my fault. Need some good instructions. Using VS2005
LOL

Thanks everyone for your time and trouble.
I appreciate it. A lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top