Custom Error In Asp.net Web.config
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Reference Configuration File Schema ASP.NET Settings Schema ASP.NET Settings Schema Element Element Element Element Element for Element for Element for Element for Element for Element for Element for , , and Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element Element for Element for Element for Element for Element for Element for Element Element Element Element Element Element Element Element Element Element
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Configuration and Deployment/Web Config Web Config [Answered]RSS 6 replies Last post Sep 24, 2009 06:30 AM by superdavidam ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply jeyaseelan@a... Contributor 2798 Points 1834 Posts Web Config May 29, 2008 04:06 AM|jeyaseelan@ajsquare.net|LINK Hi to all, I have web application project it's workgin fine in local machine, but when i upload it to the server then i mee the below error Runtime Error Description: An application error https://msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.71).aspx 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 tag within a "web.config" configuration file located in the http://forums.asp.net/t/1267844.aspx?Web+Config+customErrors+mode+Off+ root directory of the current web application. This tag should then have its "mode" attribute set to "Off". 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 configuration tag to point to a custom error page URL. I know this means to change the custom error mode as off, i also do the same code in my web.config but also return the same error, some time i change the mode into ON / Remoteonly but also return the same error, may i know this error from server or due to my code?, how to solve it ? memebrs help me Any doubts please feel free to ask me. If this post is answer of your question then don't forgot to Click "Mark As Answer". J.Jeyaseelan Reply worldclassco... Participant 1164 Points 336 Posts Re: Web Config May 29, 2008 04:20 AM|worldclasscoders|LINK It wont show error. until you have set correct .net framework in server Cheers! Reply jeyaseelan@a... Contributor 2798 Points 1834 Posts Re: Web Config here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business http://stackoverflow.com/questions/13246236/web-config-customerrors-mode Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs http://www.codeproject.com/Articles/2345/Custom-Errors-in-ASP-NET Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Web.config customErrors mode up vote 14 down vote favorite 4 I have a great problem with Web.Config, I need to see error of custom error my page and resolve it in asp.net web form and web config, but when Error Occurred, I see another error and I see this: customErrors mode to Off or On Or RemoteOnly, I set this property Off, but do not show error and say again please set attribute to On your CustomError. when I set mode to On,say Please set customErrors mode to On Again. asp.net asp.net-mvc asp.net-mvc-3 web-config share|improve this question edited Jan 6 custom error in at 8:52 asked Nov 6 '12 at 7:19 Saeed Py 9161625 custom error to on means your are creating your own page for error. Like 404 file not found etc. When you set it to off is shows the error to every one. And if it is remote only then from the same machine only error can be seen –शेखर Nov 6 '12 at 7:25 Are you throwing your error. Or you have written something in your global file Application_Error method? –शेखर Nov 6 '12 at 7:27 Thank you for comment,I know but i want see error for debug it,and dont show error –Saeed Py Nov 6 '12 at 7:27 also it would be helpful if you can show you current setting of web.config file –शेखर Nov 6 '12 at 7:28 It would seem to be ignoring the customerror settings, which could mean an unrelated error in your web.config. Check the file is formatted correctly, then try commenting sections out until it works. –Simon Halsey Jan 19 '14 at 23:55 | show 1 more comment 11 Answers 11 active oldest votes up vote 11 down vote accepted +50 When you're having issues with configuration, make sure that your settings isn't overridden. In this case, your server might have a configuration