Web App in ASP.net published in Azure has errors, how could I see them?

I’m creating a web application using ASP.net, I have already published it to my azure portal, but now it is crashing and I don’t know why. I just added one column to my model (and in database).

How can I fix it? Or how can I see the errors from azure server.

Also, I’ve seen my database didn’t update the new column, how could I do that?

In postman, I get below error

`

500 Internal server error
`

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

You can add the next code:

GlobalConfiguration.Configuration.IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always;

in your

Global.asax

file project, and then you will see the erros when the server answers.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x