![]() |
|
|
|||||||
![]() |
ASP Net - customerror entry in the Web.Config is not working -- Please Help Me!! |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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. > |
|
|
|
#3 |
|
Posts: n/a
|
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. |
|
|
|
#4 |
|
Posts: n/a
|
This page along with my application web pages work on my PC through IIS
but produces a runtime error on the remote development server. |
|
|
|
#5 |
|
Posts: n/a
|
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 |
|
|
|
#6 |
|
Posts: n/a
|
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. > |
|
|
|
#7 |
|
Junior Member
Join Date: Oct 2006
Posts: 1
|
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 |
|
|
|