Code cannot be saved on a precompiled website.

Gideon Gontor asked on November 19, 2018 14:41

I deployed our website to azure web app, when i created a form and want to save the code, i got the following message "Code cannot be saved on a precompiled website."

Correct Answer

Brenden Kehren answered on November 19, 2018 15:02

You need to run the site locally to generate the code for it. Or run it in an environment which is not precompiled. Then re-compile the site and redeploy it.

4 votesVote for this answer Unmark Correct answer

Recent Answers


Gideon Gontor answered on November 19, 2018 15:28

Thanks, for the quick response, it works locally as a localhost. Does it mean I have to do all my development locally. What's the best practice on moving my current site as a localhost

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on November 19, 2018 15:34

Ideally you will build in an environment which is not your live server. Then deploy using some publishing tools like FTP or repository commit which triggers a build and a pull to a server. Azure has these tools built in. Cheaper services you have to do on your own.

3 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.