Prepare for your Next Interview
This is a discussion on Server error in application within the ASP.NET forums, part of the Web Development category; Hi, everyone i am new to the .net world. I have an asp.net 2.0 page that when i try to view it on the internet it gives me ...
|
|||
|
Hi, everyone i am new to the .net world. I have an asp.net 2.0 page that when i try to view it on the internet it gives me this error. I went into my web.config file to turn the mode to off like they said, but it didn't help. Here is the error I got. Please help me someone.
Server error in '/' application. -------------------------------------------------------------------------------- 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 <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 "off". <!-- web.config configuration file --> <configuration> <system.web> <customerrors mode="off"/> </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="remoteonly" defaultredirect="mycustompage.htm"/> </system.web> </configuration> this is a copy of my web.config. Is there something wrong with it? <?xml version="1.0"?> <configuration> <appsettings/> <connectionstrings> <add name="connectionstring" connectionstring="provider=microsoft.jet.oledb.4.0;data source=|datadirectory|\uwcdb1.mdb;persist security info=true" providername="system.data.oledb"/> </connectionstrings> <system.web> <compilation debug="true" strict="false" explicit="true"/> <pages> <namespaces> <clear/> <add namespace="system"/> <add namespace="system.collections"/> <add namespace="system.collections.specialized"/> <add namespace="system.configuration"/> <add namespace="system.text"/> <add namespace="system.text.regularexpressions"/> <add namespace="system.web"/> <add namespace="system.web.caching"/> <add namespace="system.web.sessionstate"/> <add namespace="system.web.security"/> <add namespace="system.web.profile"/> <add namespace="system.web.ui"/> <add namespace="system.web.ui.webcontrols"/> <add namespace="system.web.ui.webcontrols.webparts"/> <add namespace="system.web.ui.htmlcontrols"/> </namespaces> </pages> <authentication mode="windows"/> <!-- the <customerrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. --> <customerrors mode="off" defaultredirect="genericerrorpage.htm"> <error statuscode="403" redirect="noaccess.htm" /> <error statuscode="404" redirect="filenotfound.htm" /> </customerrors> </system.web> </configuration> Last edited by AspPage : 02-04-2008 at 12:45 PM. |
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Server Application error | ajith007 | ASP.NET | 2 | 11-30-2007 06:20 AM |
| Difference between Application server & Web server | suniraj | Web Testing | 2 | 05-24-2007 02:52 AM |
| svhost.exe - Application Error | naveen_b2005 | Windows | 1 | 05-15-2007 02:12 AM |
| Tomcat5.0 Server Error in Hibernate | enjoy | Java | 1 | 04-09-2007 08:29 AM |
| 500 Server Error in PHP | Martin Lucas | PHP | 1 | 05-30-2006 07:04 PM |