Customerrors Mode= On Defaultredirect= Auth/error.aspx
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 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 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
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. Configuration File Syntax ASP.NET Configuration Settings http://forums.asp.net/t/1267844.aspx?Web+Config+customErrors+mode+Off+ TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. Recommended Version This documentation is archived and is not being maintained. customErrors https://msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.85).aspx Element (ASP.NET Settings Schema) .NET Framework 3.0 Other Versions Visual Studio 2010 .NET Framework 4 Visual Studio 2008 .NET Framework 3.5 .NET Framework 2.0 .NET Framework 1.1 Provides information about custom error messages for an ASP.NET application. The customErrors element can be defined at any level in the application file hierarchy. Copy Attributes and Elements The following sections describe attributes, child elements, and parent elements. Attributes Attribute Description defaultRedirect Optional attribute. Specifies the default URL to direct a browser to, if an error occurs. When this attribute is not specified, a generic error is displayed instead. The URL can be absolute (for example, www.contoso.com/ErrorPage.htm) or relative. A relative URL, such as /ErrorPage.htm, is relative to the Web.config file that specified the URL for this attribute, not to the Web page in which the error occurred. A URL starting with a tilde (~), such as ~/ErrorPage.htm, indicates that the specified URL is relative to the root path of the application. mode Required attribute. Specifies w
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events https://msdn.microsoft.com/en-us/library/h0hfz6fc(v=vs.100).aspx 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. ASP.NET Configuration File Syntax ASP.NET Configuration Settings system.web Element (ASP.NET Settings Schema) system.web Element (ASP.NET Settings Schema) customErrors Element (ASP.NET Settings customerrors mode= Schema) customErrors Element (ASP.NET Settings Schema) customErrors Element (ASP.NET Settings Schema) anonymousIdentification Element (ASP.NET Settings Schema) authentication Element (ASP.NET Settings Schema) authorization Element (ASP.NET Settings Schema) browserCaps Element (ASP.NET Settings Schema) caching Element (ASP.NET Settings Schema) clientTarget Element (ASP.NET Settings Schema) compilation Element (ASP.NET Settings Schema) customErrors Element (ASP.NET Settings Schema) error customerrors mode= on Element for customErrors (ASP.NET Settings Schema) deployment Element (ASP.NET Settings Schema) deviceFilters Element (ASP.NET Settings Schema) fullTrustAssemblies Element (ASP.NET Settings Schema) globalization Element (ASP.NET Settings Schema) healthMonitoring Element (ASP.NET Settings Schema) hostingEnvironment Element (ASP.NET Settings Schema) httpCookies Element (ASP.NET Settings Schema) httpHandlers Element (ASP.NET Settings Schema) httpModules Element (ASP.NET Settings Schema) httpRuntime Element (ASP.NET Settings Schema) identity Element (ASP.NET Settings Schema) machineKey Element (ASP.NET Settings Schema) membership Element (ASP.NET Settings Schema) mobileControls Element (ASP.NET Settings Schema) pages Element (ASP.NET Settings Schema) partialTrustVisibleAssemblies Element (ASP.NET Settings Schema) processModel Element (ASP.NET Settings Schema) profile Element (ASP.NET Settings Schema) roleManager Element (ASP.NET Settings Schema) securityPolicy Element (ASP.NET Settings Schema) sessionPageState Element (ASP.NET Settings Schema) sessionState Element (ASP.NET Settings Schema) siteMap Element (ASP.NET Settings Schema) trace Element (ASP.NET Settings Schema) trust Element (ASP.NET Settings Schema) urlMappings Element (ASP.NET Settings Schema) webControls Element (ASP.NET Settings Schema) webParts Element (ASP.NET Settings Schema) webServices Element (ASP.NET Settings Schema) xhtmlConformance Element (ASP