customError in Web.Config file is not working
-
Hi All, I am getting the following error whenever i try to throw an error in my web application. I have specified customErrors in web.config file like as follows:
<configuration> <system.web> <customErrors mode="On" defaultRedirect="CustomError.aspx"/> <error statusCode="404" redirect="CustomError.aspx"/> </system.web> </configuration> Error: 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="RemoteOnly"/> </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" 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> Please let me know the solution. Prakash G, Software Engineer Iridium Interactive Limited, SriNagar Colony Road #3 Banjara Hills Hyderabad - 500035 mail me @ prakash.se@indiatimes.com call me @ +91 9866833523
-
Hi All, I am getting the following error whenever i try to throw an error in my web application. I have specified customErrors in web.config file like as follows:
<configuration> <system.web> <customErrors mode="On" defaultRedirect="CustomError.aspx"/> <error statusCode="404" redirect="CustomError.aspx"/> </system.web> </configuration> Error: 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="RemoteOnly"/> </system.web> </configuration> Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" 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> Please let me know the solution. Prakash G, Software Engineer Iridium Interactive Limited, SriNagar Colony Road #3 Banjara Hills Hyderabad - 500035 mail me @ prakash.se@indiatimes.com call me @ +91 9866833523
-
Try this: (I am just doing hit and trial) in the internet explorer, go to Tools --> Internet options -->Advanced: Then untick the option for "Show friendly http error messages"
hi, thank you. but i already tried the option u suggested. Even its not working. I restarted the IIS also. Still its showing the same error. Let me know, if u find any other solution/way to solve the problem. thank u once again
Prakash G, Software Engineer Iridium Interactive Limited, SriNagar Colony Road #3 Banjara Hills Hyderabad - 500035 mail me @ prakash.se@indiatimes.com call me @ +91 9866833523
-
hi, thank you. but i already tried the option u suggested. Even its not working. I restarted the IIS also. Still its showing the same error. Let me know, if u find any other solution/way to solve the problem. thank u once again
Prakash G, Software Engineer Iridium Interactive Limited, SriNagar Colony Road #3 Banjara Hills Hyderabad - 500035 mail me @ prakash.se@indiatimes.com call me @ +91 9866833523
-
Try this: (I am just doing hit and trial) in the internet explorer, go to Tools --> Internet options -->Advanced: Then untick the option for "Show friendly http error messages"
Hello, I m also having the same runtime error but for only https:// pages, all other .aspx pages are working fine. Can any body guide me about how to use host server's Shared SSL certificate. What are the settings to be done for IIS of host server? I have my web.config file as, here secureWebPages mode="On" works as cutomerrors & I tried by doing it "Off" & "Remoteonly" also, but it is still giving error. Thanks in advance.
by ULZ
-
Hello, I m also having the same runtime error but for only https:// pages, all other .aspx pages are working fine. Can any body guide me about how to use host server's Shared SSL certificate. What are the settings to be done for IIS of host server? I have my web.config file as, here secureWebPages mode="On" works as cutomerrors & I tried by doing it "Off" & "Remoteonly" also, but it is still giving error. Thanks in advance.
by ULZ