473,769 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'current custom error settings for application prevent details of application error from being viewed. '

Hi everyone

I'm having an issue with one of our applications. I'm getting the
following error when attempting to log in to the site:

Server Error in 'xxxxxxxxxxxxxx xx' Application.
--------------------------------------------------------------------------------

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.

Details: To enable the details of this specific error message to be
viewable on the local server machine, 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 "RemoteOnly ". To enable
the details to be viewable on remote machines, please set "mode" to
"Off".
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="RemoteOnl y"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a
custom error page by modifying the "defaultRedirec t" attribute of the
application's <customErrors > configuration tag to point to a custom
error page URL.
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="On" defaultRedirect ="mycustompage. htm"/>
</system.web>
</configuration>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The customErrors setting appears to make no difference, whether it's
the one on the machine.config file (.NET FWK 1.0) or the one on the
application's web.config file, or both, or any of the combinations
I've tried. The error stays the same

As I mention the current .NET version on the system is 1.0, however by
mistake I first installed (and uninstalled) the newer 1.1 version.

The machine is a W2K domain controller and the user I'm logging in to
the application with has been granted admin rights. The ProcessModel
line on the machine.config file is set to 'SYSTEM', and security on
IIS is set to Basic for the application. 'Impersonate' is set to True.

I checked the application mappings part of the Configuration dialog
for the application and the Microsoft .NET Framework entries are
pointing to the proper (installed) version.

I'm really not sure what else to check and I really need to get this
going. I'll appreciate any and all help you could give me.

Thanks in advance, regards

Damián
Nov 18 '05 #1
3 4914
Hi Damian,

The fact that a change in the web.config does not illicit a change in
behavior means that we aren't successfully parsing the configuration file.
We aren't getting that far.

The easiest way to figure out what's going on would be to create a simple
inline ASP.NET page and place it in the folder for the default Web site.
(If there is a web.config there, rename it first to web.config.old or
something.) Here's a sample file you can use. Just paste this into an
empty file and save it as test.aspx:

<%@ Page Language="C#" %>
<script runat="server">

private void Page_Load(objec t sender, System.EventArg s e) {
lblWho.Text = "ASP.NET running as : " +
System.Security .Principal.Wind owsIdentity.Get Current().Name;
}

</script>
<html>
<head>
</head>
<body>
<form runat="server">
<asp:Label id="lblWho" runat="server"> Label</asp:Label>
</form>
</body>
</html>
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET Developer Support

This post is provided "as-is" and confers no rights.
--------------------
From: gr*****@yahoo.c om (Damian)
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
Subject: 'current custom error settings for application prevent details of application error from being viewed. 'Date: 30 Dec 2003 07:54:47 -0800
Organization : http://groups.google.com
Lines: 68
Message-ID: <c2************ **************@ posting.google. com>
NNTP-Posting-Host: 200.80.152.107
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google. com 1072799687 32106 127.0.0.1 (30 Dec 2003 15:54:47 GMT)X-Complaints-To: gr**********@go ogle.com
NNTP-Posting-Date: Tue, 30 Dec 2003 15:54:47 +0000 (UTC)
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a10.phx.gbl!TK2 MSFTNGXA05.phx. gbl!TK2MSFTNGP0 8
..phx.gbl!newsf eed00.sul.t-online.de!t-online.de!newsf eed.icl.net!new sfeed.fj
serv.net!news.m axwell.syr.edu! postnews1.googl e.com!not-for-mailXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1988 64
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

Hi everyone

I'm having an issue with one of our applications. I'm getting the
following error when attempting to log in to the site:

Server Error in 'xxxxxxxxxxxxxx xx' Application.
--------------------------------------------------------------------------- -----
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.

Details: To enable the details of this specific error message to be
viewable on the local server machine, 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 "RemoteOnly ". To enable
the details to be viewable on remote machines, please set "mode" to
"Off".
<!-- Web.Config Configuration File -->

<configuration >
<system.web>
<customErrors mode="RemoteOnl y"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a
custom error page by modifying the "defaultRedirec t" attribute of the
application' s <customErrors > configuration tag to point to a custom
error page URL.
<!-- Web.Config Configuration File -->

<configuration >
<system.web>
<customErrors mode="On" defaultRedirect ="mycustompage. htm"/>
</system.web>
</configuration>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The customErrors setting appears to make no difference, whether it's
the one on the machine.config file (.NET FWK 1.0) or the one on the
application' s web.config file, or both, or any of the combinations
I've tried. The error stays the same

As I mention the current .NET version on the system is 1.0, however by
mistake I first installed (and uninstalled) the newer 1.1 version.

The machine is a W2K domain controller and the user I'm logging in to
the application with has been granted admin rights. The ProcessModel
line on the machine.config file is set to 'SYSTEM', and security on
IIS is set to Basic for the application. 'Impersonate' is set to True.

I checked the application mappings part of the Configuration dialog
for the application and the Microsoft .NET Framework entries are
pointing to the proper (installed) version.

I'm really not sure what else to check and I really need to get this
going. I'll appreciate any and all help you could give me.

Thanks in advance, regards

Damián


Nov 18 '05 #2
As another possible way to diagnose web.config problems, trying running
the web site though VS.NET using the Start without Debugging (Ctrl-F5)
option. That causes the errors associated with web.config to be
displayed (within the restrictions of remote debugging, of course).

HTH

Bruce Johnson
http://www.ObjectSharp.com/Bruce

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Bruce,

That's not going to help here. We shouldn't be attempting to attach a
debugger anyway. In this scenario, the user is simply browsing to the
ASP.NET application. If there is something wrong with the ASP.NET worker
process running the app and the app domain loading, you will get this
error. It really isn't related to the web.config file. There's an problem
somewhere else.

Jim Cheshire, MCSE, MCSD [MSFT]
Microsoft Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: BruceJohnson <Br***@ObjectSh arp.removethis. com>
References: <Ho************ *@cpmsftngxa07. phx.gbl>
X-Newsreader: AspNNTP 1.50 (ActionJackson. com)
Subject: RE: 'current custom error settings for application prevent details of application error from being viewed. 'Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <ep************ **@TK2MSFTNGP11 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
Date: Tue, 30 Dec 2003 09:50:05 -0800
NNTP-Posting-Host: actionjackson13 3.dsl.frii.net 216.17.147.133
Lines: 1
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!cpm sftngxa09.phx.g bl!TK2MSFTNGP08 .
phx.gbl!TK2MSFT NGP11.phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1989 12
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

As another possible way to diagnose web.config problems, trying running
the web site though VS.NET using the Start without Debugging (Ctrl-F5)
option. That causes the errors associated with web.config to be
displayed (within the restrictions of remote debugging, of course).

HTH

Bruce Johnson
http://www.ObjectSharp.com/Bruce

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 18 '05 #4

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

Similar topics

7
908
by: Todd Beaulieu | last post by:
Hello, I'm using the configuration block to store user settings in the app.config file. As this exe will reside on a network drive, I can't have users trying to update the master app.config file. I want each user to read/write to a file in their user directory. Does anyone know how to do this?
5
4662
by: VinnieT | last post by:
I have a load balanced system that consists of 3 production servers. There are about 20 different applications that are used on these boxes. One of my applications in particular is used more than the others. Since updating 2 applications, I have had problems on the event log of the servers, following stopping of the aspnet_ws.exe process. Something is causing the following error in the windows application event log: The description for...
2
1866
by: James Coe | last post by:
ARGH! Any ideas why this might be happening? The code I'm using comes straight from the example in the VB.NET Help System. All I did was tweak the name= stuff to match my application. Server Error in '/ImageMaker' Application. ---------------------------------------------------------------------------- ---- Configuration Error Description: An error occurred during the processing of a configuration file
4
357
by: Matthew Louden | last post by:
My ASP.NET application runs ok locally, but after I upload all the files to IIS in Windows Server 2003 Standard Edition, and no longer works. This has the following error messages: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is...
2
2542
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 having to integrate some Web services into the application using the existing architecture. These Web services are secured using Forms Authentication. Hence, we need to turn the default behavior of Forms Authentication (redirects to login pages, etc)...
2
1834
by: menkaur | last post by:
I tried to generate asp Application project( I’m using VS .Net 2003). After I did ,following errors occurred (runtime): -------------------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. ...
5
2556
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called "Enlighten.LinkMad.Businesslogic". In one of my frontend websites I use this type to authenticate a user who is trying to login. The following excerpt is from the web.config of the particular site showing the reference to the custom provider, allowing .Net to do...
1
1514
by: serge calderara | last post by:
dear all, i am a bit confused on the way custom error are handling and occurs. First of all I have understand that customer error is used to defined more user friendly message to my end user and that custom errors mask out more details error if the web side is access from the local web server browser right ? If it is so I have read that setting the mode attribute to OFF in web.config
7
13585
by: fniles | last post by:
I am using VB.Net 2003 and MS Access (connecting using OleDBConnection). I read using DataAdapter and DataSet, not DataReader. When many people try to access the database at the same time, I get the error "ExecuteReader requires an open and available Connection. The connection's current state is Open, Executing." I do not use ExecuteReader, why the error says ExecuteReader. What does it mean ? When I get this error, is there a way for me...
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9416
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9981
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9850
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7396
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.