Runtime Error On Server
-
Hi Every body, By the Grace of God i create my first Website and i published on Net and i create Database also My Question is it is necessary to have customError tag in web.config because when i type my website URL i got is error that customErrors mode="Off" and one more thing in web.congif only i write the Configuration setting like this <configuration> <appSettings> <add key ="Connect" value="server=.; database=Ckom; uid=sa; Password=;" /> </appSettings> <connectionStrings/> in server i change the database name, userid,password and server="localhost" i don't know wether this is right or wrong i am very much confuse with server please help me so that i can see my website again i will that i got the message Server Error in '/' Application. below this they show customError mode="off" please help me by telling excat what are the changes i have to made in web.config file on the server
-
Hi Every body, By the Grace of God i create my first Website and i published on Net and i create Database also My Question is it is necessary to have customError tag in web.config because when i type my website URL i got is error that customErrors mode="Off" and one more thing in web.congif only i write the Configuration setting like this <configuration> <appSettings> <add key ="Connect" value="server=.; database=Ckom; uid=sa; Password=;" /> </appSettings> <connectionStrings/> in server i change the database name, userid,password and server="localhost" i don't know wether this is right or wrong i am very much confuse with server please help me so that i can see my website again i will that i got the message Server Error in '/' Application. below this they show customError mode="off" please help me by telling excat what are the changes i have to made in web.config file on the server
Hi, is your database located at the the same sever as the ASP.NET application. If yes, localhost for your server is right, if not you have to change this. Best approach for the error-issue would be to use a custom error page that will be displayed whenever an error occurs. Best would be to change the mode to "remoteOnly". Then connect to your server via RDP to get a detailed information about the error (exception type, stack trace etc.) Regards Sebastian
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
Hi Every body, By the Grace of God i create my first Website and i published on Net and i create Database also My Question is it is necessary to have customError tag in web.config because when i type my website URL i got is error that customErrors mode="Off" and one more thing in web.congif only i write the Configuration setting like this <configuration> <appSettings> <add key ="Connect" value="server=.; database=Ckom; uid=sa; Password=;" /> </appSettings> <connectionStrings/> in server i change the database name, userid,password and server="localhost" i don't know wether this is right or wrong i am very much confuse with server please help me so that i can see my website again i will that i got the message Server Error in '/' Application. below this they show customError mode="off" please help me by telling excat what are the changes i have to made in web.config file on the server
The error you're seeing, is telling you that you can't see the real error, because of the web.config settings. So you need to insert the code it's telling you to insert, which will allow error messages to be shown to a remote client. You'll then get an error telling you the actual problem with your site.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hi, is your database located at the the same sever as the ASP.NET application. If yes, localhost for your server is right, if not you have to change this. Best approach for the error-issue would be to use a custom error page that will be displayed whenever an error occurs. Best would be to change the mode to "remoteOnly". Then connect to your server via RDP to get a detailed information about the error (exception type, stack trace etc.) Regards Sebastian
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
Thanks For Your support Can You give correct syntax of CustomError what i have to write on web.config file thanks again
-
Thanks For Your support Can You give correct syntax of CustomError what i have to write on web.config file thanks again
Have a look here: http://aspnetresources.com/articles/CustomErrorPages.aspx[^]
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
The error you're seeing, is telling you that you can't see the real error, because of the web.config settings. So you need to insert the code it's telling you to insert, which will allow error messages to be shown to a remote client. You'll then get an error telling you the actual problem with your site.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Error handling can be done on Page Level, by overriding the onerror() function. Can this be done only on master page ? I mean, can we add an error handler on master page, rather than adding it on every single page ... ???
Apurv “Never trust a computer you can’t throw out a window.” (Steve Wozniak) “There are only two industries that refer to their customers as ‘users’.” (Edward Tufte)
-
Error handling can be done on Page Level, by overriding the onerror() function. Can this be done only on master page ? I mean, can we add an error handler on master page, rather than adding it on every single page ... ???
Apurv “Never trust a computer you can’t throw out a window.” (Steve Wozniak) “There are only two industries that refer to their customers as ‘users’.” (Edward Tufte)
I am not sure that this is true. But, you can handle errors at the top level in the same place that the application start and session start events are handled.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
I am not sure that this is true. But, you can handle errors at the top level in the same place that the application start and session start events are handled.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Christian Graus wrote:
top level
Christian Graus wrote:
session start events
that means global.asax ???
Apurv “Never trust a computer you can’t throw out a window.” (Steve Wozniak) “There are only two industries that refer to their customers as ‘users’.” (Edward Tufte)