Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiler error after deploying to Azure

I have a cloud service which has a web role and a worker role, using queues, storage and tables. I published it to Azure and everything seemed fine. When I click on the web app URL I get the following error:

Compiler Error Message: The compiler failed with error code -2146232576.

If I deploy the web app locally everything works fine! Can someone help me please? I tried looking online but I couldn't find a solution and I'm very new to this.

like image 656
D. Gal Avatar asked Nov 07 '22 22:11

D. Gal


1 Answers

Are you doing a "Publish" directly from Visual Studio?

Try nuking the web root and publishing again. It's likely due to file conflicts.

https://.scm.azurewebsites.net/DebugConsole/?shell=powershell

Get-ChildItem 'D:\home\site\wwwroot' | Remove-Item -Recurse -Force
like image 107
Mike Veazie - MSFT Avatar answered Nov 14 '22 21:11

Mike Veazie - MSFT