Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

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

 
Thread Tools Search this Thread
Old 09-26-2005, 11:22 PM   #1
Default 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.



Mossman
  Reply With Quote
Old 09-27-2005, 03:42 AM   #2
S. Justin Gengo
 
Posts: n/a
Default Re: customerror entry in the Web.Config is not working -- Please Help Me!!
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" <> wrote in message
news: 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.
>





S. Justin Gengo
  Reply With Quote
Old 09-27-2005, 05:07 AM   #3
Mossman
 
Posts: n/a
Default Re: customerror entry in the Web.Config is not working -- Please Help Me!!
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.



Mossman
  Reply With Quote
Old 09-27-2005, 05:11 AM   #4
Mossman
 
Posts: n/a
Default Re: customerror entry in the Web.Config is not working -- Please Help Me!!
This page along with my application web pages work on my PC through IIS
but produces a runtime error on the remote development server.



Mossman
  Reply With Quote
Old 09-27-2005, 08:39 AM   #5
Damien
 
Posts: n/a
Default Re: customerror entry in the Web.Config is not working -- Please Help Me!!

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



Damien
  Reply With Quote
Old 09-27-2005, 11:49 AM   #6
Juan T. Llibre
 
Posts: n/a
Default Re: customerror entry in the Web.Config is not working -- Please Help Me!!
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" <> wrote in message
news: 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.
>





Juan T. Llibre
  Reply With Quote
Old 10-31-2006, 11:52 AM   #7
kunalshah
Junior Member
 
Join Date: Oct 2006
Posts: 1
Default Set customErrors property for a windows service
Hi All,


I have two windows services interacting with each other on different machines. My application is in .NET 2.0 framework. Whenever I have my server & client application ( caller & calle) on same machine I am able to get proper user defined exceptions thrown from Remoting Client application back to Caller ( remoting Server application) but when I put them on different machins I start getting below error.

"Server encountered an internal error. For more information, turn off customErrors in the server's .config file."

Now in .NET 2.0 application I was able to solve that by setting below property in my remoting client application & after that I am getting proper user defined exceptions. or by setting the customErrors element in Application.config file for windows services.

RemotingConfiguration.CustomErrorsMode = CustomErrorsMode .Off;


The problem is that I have some 9 windows services & it wont be feasible to put this line in all of them. http://msdn2.microsoft.com/en-us/library/y123fsf7.aspx

<system.runtime.remoting>
<customErrors mode="Off"/>
</system.runtime.remoting>

I would like to use the approach of setting it in Machine.Config , The sole purpose is to set the property without doing much code change. I have tried setting in on machine.config / web.config in windir/microsoft.NEt/Framework/2..../config folder but wasnt working.

It was working with either setting property or by putting application config file and both approach required one line code change in all services. I would like to use the approach of setting it in machine.config or web.config..

Please help me asap..

Kunal Shah
kunalshah83-at-gmail.com


kunalshah
kunalshah is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
(rumor) Toshiba Working With Microsoft On New Entertainment Xbox (360) with built-in HD-DVD AirRaid DVD Video 6 10-21-2007 02:19 AM
web.config edits cause errors war_manelli General Help Related Topics 0 09-26-2007 07:20 PM
ping command is not working on cisco router bodhayanghosh Hardware 1 09-25-2007 08:22 PM
DVD drive not working > deleted too much from the registry key! inithaca Hardware 1 07-02-2007 03:18 PM
usb ports not working titoshauri General Help Related Topics 0 06-28-2007 03:56 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46