Base solution for your next web application
Open Closed

Details of SqlClient.SqlException not available #5194


User avatar
0
enio created

Hi

I am using version 5.4.1 AspNetZeroAngular2 and would like to roll out the application on azure. Unfortunately the backend is not working once deployed to the azure app service. If I check out the log file I only see a lot of the following statements: Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll

...but not more information. Do you have an idea why there is no detailed information about the sql exception?

For a test I have started the backend localy and changed the password in the DB connection string to a non working value. And even in this case I can't see a clear information about the issue. So I guess that I miss some configuration option of the entityframework which filters out the details of the issue.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @enio there must be a detailed error in Logs.txt. I should be placed as "wwwroot/App_Data/Logs.txt" in your azure website. I assume you have a DB Connection problem.

  • User Avatar
    0
    enio created

    Thank you @ismcagdas! Indeed I forgot to look up the log file. For a while I was working with another application which logged every statement also to the console... now everything is clear again.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Great :)