473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

custom errors: machine.config vs. web.config

I am develoing a C# web application on a remote server. I have publish
access to this server, but not permission to change configuration
setting.

When I try to load my page, I get the following message:

Runtime Error
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. ... etc.

Now, the following line exists in the web.config file in the
application directory:
<customErrors mode="Off" />
which should allow me to see specific error messages, but the following
line appears in machine.config on the server:
<customErrors mode="RemoteOnly" />
which should display the above generic error message.

My question is this: does the setting in machine.config override
web.config or vice-versa?

Is my problem the setting in machine.config or is it something else?

Thanks very much.

Dec 2 '05 #1
2 2137
web.config overrides machine.config.

Dec 2 '05 #2
web.config generally overrides machine.config. but in machine config you can
specify that the webconfig can override the value (actually the default is
no, and you specify which can be overriden).

-- bruce (sqlwork.com)

<kr***************@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I am develoing a C# web application on a remote server. I have publish
access to this server, but not permission to change configuration
setting.

When I try to load my page, I get the following message:

Runtime Error
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. ... etc.

Now, the following line exists in the web.config file in the
application directory:
<customErrors mode="Off" />
which should allow me to see specific error messages, but the following
line appears in machine.config on the server:
<customErrors mode="RemoteOnly" />
which should display the above generic error message.

My question is this: does the setting in machine.config override
web.config or vice-versa?

Is my problem the setting in machine.config or is it something else?

Thanks very much.

Dec 2 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mark Aurit | last post by:
I have an intranet application that uses w2k Integrated Windows Authentication to authenticate users. We now have a situation where people will be accessing it who are on our network but will not...
1
by: Adie | last post by:
Hi, I have custom errors set in the web.config and am wanting to redirect any bad url requests; 404 etc back to index.aspx In web.config i have: <customErrors mode="On"...
4
by: Jon Spivey | last post by:
Hi, I've set up a custom error like this <customErrors mode="On" defaultRedirect="ErrorPage.aspx"> <error statusCode="404" redirect="error404.aspx" /> </customErrors> So requests for...
2
by: Matt | last post by:
Hello all, The app we are working on uses custom errors extensively to provide friendly error pages to users whilst logging the actual exceptions behind the scenes. However.... We are now...
0
by: Ranv | last post by:
Is it possible to use web.config to handle 404 Page Not Found errors, and application level custom errors to handle all other errors? I suppose I would have to make sure that I don't call...
0
by: Ranv | last post by:
Is it possible to use web.config to handle 404 Page Not Found errors, and application level custom errors (in global.asax) to handle all other errors? I suppose I would have to make sure that I...
8
by: Mark A. Sam | last post by:
Hello I am working locally with Visual Web Developer 2005 Express. Before I even installed it, the information from Microsoft was that you could FTP it to a remote site and it should work. The...
0
by: gilly3 | last post by:
I'm coming across all kinds of frustration implementing custom errors in ASP.NET 1.1. First, 401 - Authorization Failed My application uses Windows Integrated Authentication, and restricts...
3
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how to add a custom setting into web.config. From this website I'm doing a http request to another website, and I would like to have the webaddress of this other...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.