473,407 Members | 2,629 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,407 software developers and data experts.

customerror entry in the Web.Config is not working -- Please Help Me!!

Hello,

I am not sure what to look at next on this issue so any information
and/or links to web sites would be greatly appreciated.

I have developed an ASP.NET application using VB.NET. I tested and
debugged it successfully on my PC using IIS. Once I was ready to
deploy the application, I created a staging virtual directory on my D:
drive and used the Copy Project menu selection (Project - Copy Project)
to copy only files needed to run this application and selected File
Share option. I had to do this because I only have read-only access to
the server I am deploying the application to.

Once the copy project routine is finished, I had the server
administrator in our group basically drag and drop my code to the web
server.

Immediately, I received the friendly runtime error message. So, I went
ahead and had the server administrator update the web.config file in my
application to customerrors = "Off". Authentication mode is set to
Windows.

I still received the friendly runtime error message. I updated the
web.config to place <identity impersonate="true"/> in the file. Saved
this and had the server admin redeploy it. I had the server admin set
the allowOverride property to "True" and the customerrors="Off" in the
machine.config. Again the friendly runtime error message.

I am not sure what to look into next as I never had this issue with
deploying another .NET application to a Windows 2000 server. Used the
drag and drop method there and had no issues.

The server configuration is a follows:
--Web farm. Two web servers clustered together. File replication
between both servers are implemented.
--OS is Windows 2003 Server.
--Using ClearTrust to autenticate into the web server.

Any input would be greatly appreciated.

Thanks,

Troy.

Nov 19 '05 #1
5 1539
Troy,

By the friendly runtime error do you mean you're getting that from your web
browser? This may not be something you can set in the web.config file... It
may be that you need to turn off friendly error messages in IE.

To do so in IE 6 go to Tools - Internet Options in the window that opens
click on the "Advanced" tab.

In the list of checkboxes uncheck "Show friendly HTTP error messages.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Mossman" <tm******@sbcglobal.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hello,

I am not sure what to look at next on this issue so any information
and/or links to web sites would be greatly appreciated.

I have developed an ASP.NET application using VB.NET. I tested and
debugged it successfully on my PC using IIS. Once I was ready to
deploy the application, I created a staging virtual directory on my D:
drive and used the Copy Project menu selection (Project - Copy Project)
to copy only files needed to run this application and selected File
Share option. I had to do this because I only have read-only access to
the server I am deploying the application to.

Once the copy project routine is finished, I had the server
administrator in our group basically drag and drop my code to the web
server.

Immediately, I received the friendly runtime error message. So, I went
ahead and had the server administrator update the web.config file in my
application to customerrors = "Off". Authentication mode is set to
Windows.

I still received the friendly runtime error message. I updated the
web.config to place <identity impersonate="true"/> in the file. Saved
this and had the server admin redeploy it. I had the server admin set
the allowOverride property to "True" and the customerrors="Off" in the
machine.config. Again the friendly runtime error message.

I am not sure what to look into next as I never had this issue with
deploying another .NET application to a Windows 2000 server. Used the
drag and drop method there and had no issues.

The server configuration is a follows:
--Web farm. Two web servers clustered together. File replication
between both servers are implemented.
--OS is Windows 2003 Server.
--Using ClearTrust to autenticate into the web server.

Any input would be greatly appreciated.

Thanks,

Troy.

Nov 19 '05 #2
No I mean the ASP.NET Standard Runtime Error Message that states an
application error occurred on the server that instructs you to change
the customerrors tag in the web.config from "On" to "Off" if you want
to see details of this error message. I immediately get this message
accessing a test ASP.NET page I created that just does a Response.Write
of "Hello!!!". So, I believe it is a configuration issue on the web
servers. I just don't know what I should focus on first. My "Show
friendly HTTP error messages" check box is unchecked. So, that isn't
the problem.

Nov 19 '05 #3
This page along with my application web pages work on my PC through IIS
but produces a runtime error on the remote development server.

Nov 19 '05 #4

Mossman wrote:
This page along with my application web pages work on my PC through IIS
but produces a runtime error on the remote development server.


Hi Mossman,

It sounds like your web.config isn't being read/read at the right time.
This can often happen if your app is being placed into a virtual
directory, but where the virtual directory isn't being set as an
application as well (so the ASP.NET host process is trying to retrieve
settings from the directory above yours). Can your web admin confirm
that your virtual directory is set up as an application?

Damien

Nov 19 '05 #5
re:
customerrors = "Off"
Try the proper casing and syntax:

<customErrors mode="Off" />

re: I received the friendly runtime error message.
Which error is that ? Is it a generic 500 error ?

2. What happens if you turn it on with an error page redirect ?
<customErrors mode="On" defaultRedirect="Error.aspx"/>

Does the redirection occur ?:

3. Do other ASP.NET pages run on the server ?
If not, make sure that ASP.NET has been enabled on the server.

Open the IIS Manager, scroll down to "Web Service Extensions",
select the ASP.NET version you want to enable, and hit the "Allow" button.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Mossman" <tm******@sbcglobal.net> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com... Hello,

I am not sure what to look at next on this issue so any information
and/or links to web sites would be greatly appreciated.

I have developed an ASP.NET application using VB.NET. I tested and
debugged it successfully on my PC using IIS. Once I was ready to
deploy the application, I created a staging virtual directory on my D:
drive and used the Copy Project menu selection (Project - Copy Project)
to copy only files needed to run this application and selected File
Share option. I had to do this because I only have read-only access to
the server I am deploying the application to.

Once the copy project routine is finished, I had the server
administrator in our group basically drag and drop my code to the web
server.

Immediately, I received the friendly runtime error message. So, I went
ahead and had the server administrator update the web.config file in my
application to customerrors = "Off". Authentication mode is set to
Windows.

I still received the friendly runtime error message. I updated the
web.config to place <identity impersonate="true"/> in the file. Saved
this and had the server admin redeploy it. I had the server admin set
the allowOverride property to "True" and the customerrors="Off" in the
machine.config. Again the friendly runtime error message.

I am not sure what to look into next as I never had this issue with
deploying another .NET application to a Windows 2000 server. Used the
drag and drop method there and had no issues.

The server configuration is a follows:
--Web farm. Two web servers clustered together. File replication
between both servers are implemented.
--OS is Windows 2003 Server.
--Using ClearTrust to autenticate into the web server.

Any input would be greatly appreciated.

Thanks,

Troy.

Nov 19 '05 #6

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

Similar topics

16
by: Henri Schomäcker | last post by:
Hi folks, I am developing a apache2 so module in c++. At the moment, I'm trying to get it to compile with automake & friends, but don't get it to work. I tried to modify the example in the...
2
by: Joseph Geretz | last post by:
Help me understand this, please. I have a Winforms app, lets call it WinApp.exe. I also have a DLL, lets call it WebBroker.dll. The purpose of WebBroker.dll is to broker an interface with a...
0
by: Kailash | last post by:
Hello, I am getting below error in the webconfig file It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused...
2
by: charissav | last post by:
Hi is there anyone out there that can help me with MS Access??? I am new to Access and have a project that requires me to create a form with a list box of entries, and upon double clicking an...
2
by: ukpapillon | last post by:
Hi, I keep on getting an error message on my homepage. The header and footer disapear. Strangely if I select japenese on the language box on my homepage, everything goes to normal? Cannot find the...
22
by: Amali | last post by:
I'm newdie in c programming. this is my first project in programming. I have to write a program for a airline reservation. this is what i have done yet. but when it runs it shows the number of...
0
by: ravindershikha | last post by:
Hi i m in deep trouble plz help me. I have developed a website in ASP.NET 2.0 with SQL-SERVER 2005. i have used Membership feature of ASP.NET 2.0 (VS-2005). Which creates a Membership Database...
13
by: btreddy | last post by:
Hii all, I've been searching in the internet just to know abt SMTP server. Can anybody tell me how to configure the SMTP server and how can i send the mails and how could i check whether...
2
by: shapper | last post by:
Hello, On a custom Web.Config section I keep having the same error. This is driving me crazy!!! I keep having the following error: Unrecognized attribute 'Type'. Note that attribute names are...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
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.