1

Resolved

Preview before publish causes 500 error

description

VS 2013

Create bottle project
Add virtual env
Install bottle
Publish to Azure Web Site
Change app.py so the output web page is slightly different
Publish without previewing first
Result: OK
Change app.py again
Publish but click Preview first before clicking Publish
Result: 500 Internal Server Error

comments

Zooba wrote Feb 11 at 5:29 PM

This is because we build some targets too early before we've guessed whether we are deploying for cloud service or WAWS. As a result, we generate a web.config for CS instead of WAWS, so it doesn't work.

The workaround is to manually edit the web.config so that it doesn't auto-regenerate. I'm working on a fix to the targets file that will prevent the incorrect target from running so early.