.NET Web.Config error
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngconfig' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Lundy, Alalia
-- Moved from [aspngfreeforall] to [aspngconfig] by Marcie Jones <Click here to reveal e-mail address> --

CAN ANYONE TELL ME WHY I AM GETTING THE FOLLOWING WEB.CONFIG ERROR, EVEN
AFTER I MAKE THE CHANGE SUGGESTED BY THE ERROR ITSELF?

****************************************************************************
***************************
Server Error in '/' 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 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 CHANGED MY CONFIG FILE TO <customErrors mode="Off"/> FROM REMOTEONLY, BUT
I GET THE SAME ERROR. I HAVE BUILT AND REBUILT MY FILES AND I CAN'T SEE MY
WEB PAGE. THIS IS MY FIRST WEB APPLICATION USING .NET AND THE ASP BIBLE AND
I AM GETTING NO WHERE. ANY HELP WOULD BE GREAT!

Reply to this message...
 
    
Brad Kingsley
Do you have a global.asax file? If so, rename it and see if the error goes
away. If so, that is where the error is.

~Brad Kingsley
Microsoft MVP - ASP
Windows 2000 MCSE

http://www.orcsweb.com/
Powerful Web Hosting Solutions
#1 in Service and Support

----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 12:24 PM
Subject: [aspngconfig] .NET Web.Config error

> -- Moved from [aspngfreeforall] to [aspngconfig] by Marcie Jones
<Click here to reveal e-mail address> --
[Original message clipped]

---
[This E-mail scanned for viruses by Declude Virus]

Reply to this message...
 
    
dave wanta (VIP)
you may also have an actual error in the web.config itself, so the ASP.NET
framework cannot property parse the file, thereby throwing an error.

If you don't need the web.config, see if removing the web.config makes the
error go away, or create a new web.config from scratch that you are sure
doesn't have any errors.

hth,
Dave
----- Original Message -----
From: "Brad Kingsley" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 4:05 PM
Subject: [aspngconfig] Re: .NET Web.Config error

[Original message clipped]

Reply to this message...
 
    
Lundy, Alalia
Hi Brad,

Thanks for the reply. I renamed and removed the Global.asax file but that
did not remove the error message.

The only thing I am trying to do is diplay a Hello World message in an ASPX
file. I am following the instructions from the ASP.net Bible. I don't seem
to have any setup issues and did not have to do anything other that create a
new project and .aspx file.

Does anyone out there know of any possible reasons why the Web.config file
would not be recognized? I am unable to view a simple ASPX file with the
following code:

****************************************************************************
****************************
<%@ Page Language="vb" AutoEventWireup="True" Codebehind="Index.aspx.vb"
Inherits="aspnet.index"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <title>WebForm1</title>
        <meta name="GENERATOR" content="Microsoft Visual Studio.NET
7.0">
        <meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5";>
    </head>
    <body MS_POSITIONING="GridLayout">
        <% Response.Write("<font size=10><center><b>Hello
World!!</b></center></font>") %>
        <form id="Form1" method="post" runat="server">
        </form>
    </body>
</html>
****************************************************************************
****************************

Thanks,
_____________________________________________________________
Alalia Lundy, Sr. Web Specialist II
H. Lee Moffitt Cancer Center at the University of South Florida, Tampa
(813) 903-6823, http://www.moffittcancercenter.org
_____________________________________________________________
"A minute spent planning saves 4-12 minutes of implementation"
Always follow the 6 Ps => Prior Planning Prevents Pififul Poor Performance

-----Original Message-----
From: Brad Kingsley [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 5:06 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

Do you have a global.asax file? If so, rename it and see if the error goes
away. If so, that is where the error is.

~Brad Kingsley
Microsoft MVP - ASP
Windows 2000 MCSE

http://www.orcsweb.com/
Powerful Web Hosting Solutions
#1 in Service and Support

----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 12:24 PM
Subject: [aspngconfig] .NET Web.Config error

> -- Moved from [aspngfreeforall] to [aspngconfig] by Marcie Jones
<Click here to reveal e-mail address> --
[Original message clipped]

---
[This E-mail scanned for viruses by Declude Virus]

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Lundy, Alalia
Hi Dave,

Thanks for your reply. I deleted my old web.config file and recreated
another and I am still getting the same error message. I am actually only
trying to create a Hello World example from the ASP.net bible instructions.

Any other assistance would be greatly appreciated.

Thanks,
_____________________________________________________________
Alalia Lundy, Web Specialist II
H. Lee Moffitt Cancer Center at the University of South Florida, Tampa
(813) 903-6823, http://www.moffittcancercenter.org
_____________________________________________________________
"A minute spent planning saves 4-12 minutes of implementation"
Always follow the 6 Ps => Prior Planning Prevents Pitiful Poor Performance

-----Original Message-----
From: dave wanta [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 5:50 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

you may also have an actual error in the web.config itself, so the ASP.NET
framework cannot property parse the file, thereby throwing an error.

If you don't need the web.config, see if removing the web.config makes the
error go away, or create a new web.config from scratch that you are sure
doesn't have any errors.

hth,
Dave
----- Original Message -----
From: "Brad Kingsley" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 4:05 PM
Subject: [aspngconfig] Re: .NET Web.Config error

[Original message clipped]

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
dave wanta (VIP)
Hi Alalia,
Just to be sure, have you compiled your application? (Ctrl-Shift-B in
VS.NET )

Thanks,
Dave
----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 5:48 PM
Subject: [aspngconfig] Re: .NET Web.Config error

[Original message clipped]

Reply to this message...
 
    
Brad Kingsley
You might want to ask your host to view the error locally on the server and
let you know what it is.

~Brad Kingsley
Microsoft MVP - ASP
Windows 2000 MCSE

http://www.orcsweb.com/
Powerful Web Hosting Solutions
#1 in Service and Support

----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 6:46 PM
Subject: [aspngconfig] Re: .NET Web.Config error

[Original message clipped]

---
[This E-mail scanned for viruses by Declude Virus]

Reply to this message...
 
    
Scott Willsey

Another possibility is a permissions problem on the server. It can cause
symptoms like the one described about having customErrors mode set to
"Off" and still not being shown the error as well as problems compiling
pages.

Have them re-check permissions on your site and on the directories
containing the .NET framework.

Scott Willsey
Tectra Development, LLC

-----Original Message-----
From: Brad Kingsley [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 5:26 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

You might want to ask your host to view the error locally on the server
and let you know what it is.

~Brad Kingsley
Microsoft MVP - ASP
Windows 2000 MCSE

http://www.orcsweb.com/
Powerful Web Hosting Solutions
#1 in Service and Support

----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 6:46 PM
Subject: [aspngconfig] Re: .NET Web.Config error

[Original message clipped]

****
[Original message clipped]

****
[Original message clipped]

****
[Original message clipped]

--
[Original message clipped]

****
[Original message clipped]

---
[This E-mail scanned for viruses by Declude Virus]

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Lundy, Alalia
Hi Brad,

I did build/compile the application per the books instructions. I am still
getting the error. Here are the instructions from the book:

1. Select File, New, Project
2. Select Visual Basic Projects
3. Select ASP>NET Web Application
4. Click Ok to complete the process
5. Click the HTML tab at the bottom of the .aspx file window
6. Write the following code within the <body> ... </body> element to display
the text "Hello World"
    <% Response.Write("font size=10><center><b> Hello World
</b></center></font>") %>
7. Build the project by selecting Build, Build or CTRL + Shift + B

Then it shows a screen shot of the output.

Can anyone see what may be missing or what I could have done wrong. Thanks
for all the suggestions.

Alalia

-----Original Message-----
From: dave wanta [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 8:23 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

Hi Alalia,
Just to be sure, have you compiled your application? (Ctrl-Shift-B in
VS.NET )

Thanks,
Dave
----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 5:48 PM
Subject: [aspngconfig] Re: .NET Web.Config error

[Original message clipped]

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Lundy, Alalia
I wonder why I can't see what the actual error is though. The current error
message says :

**************************************************************
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".
**************************************************************

I think you all are correct though. I was trying to do some work over the
weekend and learn VS.NET and ASP.NET at the same time. I just got back from
VS.NET training and our Web Admin just installed .NET on the Web Servers. I
guess I got too excited and jumped the gun. I will ask our Web Admin if
something else could be wrong.

So how do I see the specific error message to ask my Web Admin about?
Thanks again everyone.

Alalia

-----Original Message-----
From: Scott Willsey [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 8:49 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

Another possibility is a permissions problem on the server. It can cause
symptoms like the one described about having customErrors mode set to
"Off" and still not being shown the error as well as problems compiling
pages.

Have them re-check permissions on your site and on the directories
containing the .NET framework.

Scott Willsey
Tectra Development, LLC

-----Original Message-----
From: Brad Kingsley [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 5:26 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

You might want to ask your host to view the error locally on the server
and let you know what it is.

~Brad Kingsley
Microsoft MVP - ASP
Windows 2000 MCSE

http://www.orcsweb.com/
Powerful Web Hosting Solutions
#1 in Service and Support

----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 6:46 PM
Subject: [aspngconfig] Re: .NET Web.Config error

[Original message clipped]

****
[Original message clipped]

****
[Original message clipped]

****
[Original message clipped]

--
[Original message clipped]

****
[Original message clipped]

---
[This E-mail scanned for viruses by Declude Virus]

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Scott Willsey

In the case I was talking about, which has been caused by permissions
errors, you WON'T see the error message. All you will see is something
telling you to put customErrors mode="Off" in your web.config, even if
it already is. That's what I'm trying to say. :) If it is permissions
related, that is one of the symptoms I have seen, in addition to the
fact that it is not able to correctly compile the application.

Scott Willsey
Tectra Development, LLC

-----Original Message-----
From: Lundy, Alalia [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 6:46 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

I wonder why I can't see what the actual error is though. The current
error message says :

**************************************************************
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".
**************************************************************

I think you all are correct though. I was trying to do some work over
the weekend and learn VS.NET and ASP.NET at the same time. I just got
back from VS.NET training and our Web Admin just installed .NET on the
Web Servers. I guess I got too excited and jumped the gun. I will ask
our Web Admin if something else could be wrong.

So how do I see the specific error message to ask my Web Admin about?
Thanks again everyone.

Alalia

-----Original Message-----
From: Scott Willsey [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 8:49 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

Another possibility is a permissions problem on the server. It can cause
symptoms like the one described about having customErrors mode set to
"Off" and still not being shown the error as well as problems compiling
pages.

Have them re-check permissions on your site and on the directories
containing the .NET framework.

Scott Willsey
Tectra Development, LLC

-----Original Message-----
From: Brad Kingsley [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 5:26 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

You might want to ask your host to view the error locally on the server
and let you know what it is.

~Brad Kingsley
Microsoft MVP - ASP
Windows 2000 MCSE

http://www.orcsweb.com/
Powerful Web Hosting Solutions
#1 in Service and Support

----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 6:46 PM
Subject: [aspngconfig] Re: .NET Web.Config error

[Original message clipped]

****
[Original message clipped]

****
[Original message clipped]

****
[Original message clipped]

--
[Original message clipped]

****
[Original message clipped]

---
[This E-mail scanned for viruses by Declude Virus]

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Brad Kingsley
There are some situations where that property will still not let the errors
be shown (as you are experiencing). This usually happens when there is an
error in the web.config file or the global.asax file. If your web host views
the URL directly on the server, it should give a more complete error
message.

Thanks,

~Brad Kingsley
Microsoft MVP - ASP
Windows 2000 MCSE

http://www.orcsweb.com/
Powerful Web Hosting Solutions
#1 in Service and Support

----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 9:45 PM
Subject: [aspngconfig] Re: .NET Web.Config error

> I wonder why I can't see what the actual error is though. The current
error
[Original message clipped]

---
[This E-mail scanned for viruses by Declude Virus]

Reply to this message...
 
    
Lundy, Alalia
Permissions it was. My Web Admin gave the ASPNET user read + permissions
and now I am ready to go.

-----Original Message-----
From: Scott Willsey [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 8:49 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

Another possibility is a permissions problem on the server. It can cause
symptoms like the one described about having customErrors mode set to
"Off" and still not being shown the error as well as problems compiling
pages.

Have them re-check permissions on your site and on the directories
containing the .NET framework.

Scott Willsey
Tectra Development, LLC

-----Original Message-----
From: Brad Kingsley [mailto:Click here to reveal e-mail address]
Sent: Sunday, June 23, 2002 5:26 PM
To: aspngconfig
Subject: [aspngconfig] Re: .NET Web.Config error

You might want to ask your host to view the error locally on the server
and let you know what it is.

~Brad Kingsley
Microsoft MVP - ASP
Windows 2000 MCSE

http://www.orcsweb.com/
Powerful Web Hosting Solutions
#1 in Service and Support

----- Original Message -----
From: "Lundy, Alalia" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Sunday, June 23, 2002 6:46 PM
Subject: [aspngconfig] Re: .NET Web.Config error

[Original message clipped]

****
[Original message clipped]

****
[Original message clipped]

****
[Original message clipped]

--
[Original message clipped]

****
[Original message clipped]

---
[This E-mail scanned for viruses by Declude Virus]

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com