Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aspnet 5 dnx beta7 app fails on Azure Web Site #1685

Closed
hoetz opened this issue Sep 8, 2015 · 10 comments
Closed

aspnet 5 dnx beta7 app fails on Azure Web Site #1685

hoetz opened this issue Sep 8, 2015 · 10 comments

Comments

@hoetz
Copy link

hoetz commented Sep 8, 2015

I have recently upgrade my beta 6 site to beta 7 and it broke my azure web site. it is currently showing a 500 and I can't seem to find the root cause of it.
I can reproduce the error when pushing the master of this repository https://github.com/hoetz/3dshootercom to a fresh Azure Web Site.
The site is hosted here: http://3dshootercom.azurewebsites.net.

@hoetz
Copy link
Author

hoetz commented Sep 8, 2015

Update: After deploying for the n-th time with Visual Studio I now have a working site but as soon as I deploy via git it breaks again. I am copying all the files via ftp from the azure web app and will look for any differences. This is really strange.

@davidebbo
Copy link
Member

I just tried creating a new beta 7 MVC app using latest VS tooling, and the result does appear to work well via git publishing to a Web App. Here is my repo: https://github.com/davidebbo-test/AspNet5Beta7.

But clearly, error handling needs improvement when things go wrong with aspnet 5!

@hoetz
Copy link
Author

hoetz commented Sep 8, 2015

I can now confirm: current master branch of my repo works when published with VS. When pushed to master and after triggering the git CI build, it is broken again with a 500. I copied the entire directory via ftp and there doesn't seem to be a difference. Strange!

@davidebbo
Copy link
Member

@davidfowl or @DamianEdwards: any idea how to debug a 500 (smiley oops type) in an aspnet 5 Web App? As far as I can tell, there is no log file at all getting created.

@hoetz
Copy link
Author

hoetz commented Sep 10, 2015

Apparently there is an AppSetting Key ASPNET_DETAILED_ERRORS. When set to true in the root web.config it's supposed to display detailed errors. Will check this out later. Thanks to @ahmelsayed for pointing this out.

@hoetz
Copy link
Author

hoetz commented Sep 10, 2015

My site seems to be working now even after the git CI build. Turns out Visual Studio added a global.json in the src Folder of the Web project and this caused some trouble.

@hoetz hoetz closed this as completed Sep 10, 2015
@davidebbo
Copy link
Member

Maybe this issue? aspnet/dnx#2656

@hoetz
Copy link
Author

hoetz commented Sep 10, 2015

Exactly!

@ealsur
Copy link

ealsur commented Sep 10, 2015

@davidebbo To check detailed error 500s I manually add the node (through Kudu) to the auto-generated web.config file that Kudu creates when running the deployment script.

@davidebbo
Copy link
Member

@ealsur yep, that's seems to be what works. Doing it via Azure App Setting does not work. Anyway, the dnx team says they'll improve error handling soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants