Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Runtime Error On Server

Runtime Error On Server

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesysadminquestionworkspace
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mdazeemuddin
    wrote on last edited by
    #1

    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

    C S 2 Replies Last reply
    0
    • M mdazeemuddin

      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

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      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.

      M 1 Reply Last reply
      0
      • M mdazeemuddin

        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

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        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.

        A 1 Reply Last reply
        0
        • S SeMartens

          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.

          M Offline
          M Offline
          mdazeemuddin
          wrote on last edited by
          #4

          Thanks For Your support Can You give correct syntax of CustomError what i have to write on web.config file thanks again

          S 1 Reply Last reply
          0
          • M mdazeemuddin

            Thanks For Your support Can You give correct syntax of CustomError what i have to write on web.config file thanks again

            S Offline
            S Offline
            SeMartens
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • C Christian Graus

              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.

              A Offline
              A Offline
              AprNgp
              wrote on last edited by
              #6

              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)

              C 1 Reply Last reply
              0
              • A AprNgp

                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)

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                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.

                A 1 Reply Last reply
                0
                • C Christian Graus

                  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.

                  A Offline
                  A Offline
                  AprNgp
                  wrote on last edited by
                  #8

                  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)

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups