5 Answer(s)
-
0
Hi,
If this is a UserFriendlyException then real error message should be displayed to you. I assume you have published your app in release mode right ?
You can also see all error messages in Logs.txt file under "App_Data\Logs" folder.
Thanks.
-
0
I have similar questions. In debug mode, how do I see the real exception message?
When I add my own applications (e.g. a POST for inserting a record into DB table), I first test it in swagger interface. Some times, I get a message in Response Body: "An internal error occurred during your request!" Usually, this message relates to an exception thrown from Database. It is very helpful for debugging, if I can read the exception message.
In release mode, I can read the exception details from Log.txt file. How do I find the similar Log file or "real exception message" while testing in swagger?
Thanks,
-
0
Hi @fguo,
You should be able to find exception message in Logs.txt file for swagger tests as well. Have you tried it ?
Thanks.
-
0
Got it! In debug mode, the Log.txt is located in Web.Host\bin\Debug\net461\App_Data. It works as I expected.
Thanks,
-
0
Great :)