• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

Server Error in '/' Application.

How can we show the detailed error? we have set the <customErrors mode="Off"/> on the webconfig but still it wont display.

Thanks.


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>
 
0
epmo
Asked:
epmo
  • 2
  • 2
1 Solution
 
gregoryyoungCommented:
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 http://support.microsoft.com/default.aspx?scid=kb;en-us;306355
0
 
epmoAuthor Commented:
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.

Thanks.
0
 
gregoryyoungCommented:
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?

Greg
0
 
epmoAuthor Commented:
Thanks! - It's was MDAC.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now