ASP.NET and MS-SQL debug info?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default ASP.NET and MS-SQL debug info?

    Hello can anyone help me with a MS-SQL2000 install
    and .Net + windows2000 advance server.

    I installed everything, and everything works fine on its
    own. But when i try to run my ASP.NET application it
    gives me a very basic error message, and i can not figure
    out what is wrong with the application, i have included
    the error message below.

    The problem is that it is not specific enough to track
    down the problem, although i'm pretty sure it is MS-SQL
    Server specific since i can access parts of my
    application that do not connect to the MS-SQL server,

    Please help !!! :( At least so i can figure out how i
    can get some detailed debug messages out of the error
    page...


    Server Error in '/MyApplication' 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>


    ..


    Artmic Guest

  2. Similar Questions and Discussions

    1. Broken Table - Debug Info
      Hi All When I edit a page the tables are breaking, I think its becuas eof the debug info and scope variables being displayed as well. I have...
    2. debug info overwritten by rendered html
      I have debug turned on, however the html is absolute position so it overwrites the debug information. Is there a setting to have the debug...
    3. Add debug to help info
      On Fri, 25 Jul 2003 08:43:44 +0000, Robert Cowham wrote: I'd like to second this. I was trying to debug something last night, and I had to open...
    4. I can't debug!
      I'm a member of the admin group and debuggers group and I still get an error saying "UNABLE TO DEBUG ON THE WEB SERVER ACCESS IS DENIED" What...
    5. VB6 COM ASP DEBUG on XP
      Hello. Soon after setting up my XP development machine with VB6, I applied the registry fixes that Microsoft describes to work around VB6 COM...
  3. #2

    Default Re: ASP.NET and MS-SQL debug info?

    You need to edit the Web.config file as suggested, <customErrors
    mode="Off"/>, or run the web app on the server. Then you'll see the detailed
    error description.

    --
    Carsten Thomsen
    Enterprise Development with Visual Studio .NET, UML, and MSF
    [url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    "Artmic" <ads@dhal.com> wrote in message
    news:05c801c34740$15082440$a301280a@phx.gbl...
    > Hello can anyone help me with a MS-SQL2000 install
    > and .Net + windows2000 advance server.
    >
    > I installed everything, and everything works fine on its
    > own. But when i try to run my ASP.NET application it
    > gives me a very basic error message, and i can not figure
    > out what is wrong with the application, i have included
    > the error message below.
    >
    > The problem is that it is not specific enough to track
    > down the problem, although i'm pretty sure it is MS-SQL
    > Server specific since i can access parts of my
    > application that do not connect to the MS-SQL server,
    >
    > Please help !!! :( At least so i can figure out how i
    > can get some detailed debug messages out of the error
    > page...
    >
    >
    > Server Error in '/MyApplication' 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>
    >
    >
    > .
    >
    >

    CT Guest

  4. #3

    Default Re: ASP.NET and MS-SQL debug info?

    Thanks for the help,
    so in other words, i should run the web-application like
    this:

    [url]http://myComputer/myFolder/myApplication.aspx[/url]

    right?

    Thanks.
    >-----Original Message-----
    >You need to edit the Web.config file as suggested,
    <customErrors
    >mode="Off"/>, or run the web app on the server. Then
    you'll see the detailed
    >error description.
    >
    >--
    >Carsten Thomsen
    >Enterprise Development with Visual Studio .NET, UML, and
    MSF
    >[url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
    >"Artmic" <ads@dhal.com> wrote in message
    >news:05c801c34740$15082440$a301280a@phx.gbl...
    >> Hello can anyone help me with a MS-SQL2000 install
    >> and .Net + windows2000 advance server.
    >>
    >> I installed everything, and everything works fine on
    its
    >> own. But when i try to run my ASP.NET application it
    >> gives me a very basic error message, and i can not
    figure
    >> out what is wrong with the application, i have included
    >> the error message below.
    >>
    >> The problem is that it is not specific enough to track
    >> down the problem, although i'm pretty sure it is MS-SQL
    >> Server specific since i can access parts of my
    >> application that do not connect to the MS-SQL server,
    >>
    >> Please help !!! :( At least so i can figure out how i
    >> can get some detailed debug messages out of the error
    >> page...
    >>
    >>
    >> Server Error in '/MyApplication' 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>
    >>
    >>
    >> .
    >>
    >>
    >
    >
    >.
    >
    Artmic Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139