Server Error in '/' Application.

Posted on 2005-05-05
Last Modified: 2010-04-16
How can we show the detailed error? we have set the <customErrors mode="Off"/> on the webconfig but still it wont display.


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 -->

        <customErrors mode="Off"/>
Question by:epmo
    LVL 37

    Expert Comment

    is this a development machine or a production machine ?

    it means that an error occurred ...

    if its a development machine turn on remote errors in your web config ...

    if its a production machine check this out;en-us;306355

    Author Comment

    Thanks gregory, we got to display the error finally, but now can't connect to the database ..

    Cannot find table 0.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IndexOutOfRangeException: Cannot find table 0.

    Connection string looks correct, it connects from a dev server and a production server, but not from this server in specific.
    The sql server can be accessed from the machine where the app is located.

    LVL 37

    Accepted Solution

    if you weren't accessing the sqlserver you should get a different error than this ...

    this is after it tries to access the sql server ...

    its doing something like this ...

    DataTable dt = DataSet.Tables[0]

    without making sure that the table is there ...

    most likely another area of code is failing before this and not showing the exception ... what is that exception?


    Author Comment

    Thanks! - It's was MDAC.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now