PC Review


Reply
Thread Tools Rate Thread

custom errors: machine.config vs. web.config

 
 
kramer.newsreader@gmail.com
Guest
Posts: n/a
 
      2nd Dec 2005
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.

 
Reply With Quote
 
 
 
 
neilmcguigan@gmail.com
Guest
Posts: n/a
 
      2nd Dec 2005
web.config overrides machine.config.

 
Reply With Quote
 
Bruce Barker
Guest
Posts: n/a
 
      2nd Dec 2005
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)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax Handlers, Web.Config, Machine.Config TampaWebDevelopment@gmail.com Microsoft ASP .NET 4 7th May 2007 10:12 PM
DTDs for machine.config, web.config, security.config available ? =?Utf-8?B?UGF1bCBLZW5uZWR5?= Microsoft Dot NET Framework 1 5th Feb 2007 05:42 AM
Configuration Error - c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config Ivan Microsoft ASP .NET 1 21st May 2004 05:18 AM
HELP: XP "Config parser error ... machine.config Rick Ferguson Windows XP General 1 15th Dec 2003 03:10 PM
Config parser error ... machine.config Rick Ferguson Windows XP General 0 13th Dec 2003 06:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:00 AM.