Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > custom errors: machine.config vs. web.config

Reply
Thread Tools

custom errors: machine.config vs. web.config

 
 
kramer.newsreader@gmail.com
Guest
Posts: n/a
 
      12-02-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
 
      12-02-2005
web.config overrides machine.config.

 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      12-02-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) 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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Custom control within repeater with custom object binding - .net 1 =?Utf-8?B?SmF5YnVmZmV0?= ASP .Net 9 02-21-2006 03:38 AM
Custom html output with custom server control DKode ASP .Net 4 11-07-2005 12:40 PM
Databinding to custom properties of a custom class in ASP.NET 2 =?Utf-8?B?SW1hciBTcGFhbmphYXJz?= ASP .Net 0 04-20-2005 07:34 PM
Capturing event from other custom control within another custom control Jonah Olsson ASP .Net 1 04-05-2005 01:39 PM
Question: Invoking custom file type (file associated with custom app) VB Programmer ASP .Net 1 11-03-2003 11:49 PM



Advertisments