App Service error when deploying code 500.30

%3CLINGO-SUB%20id%3D%22lingo-sub-3110438%22%20slang%3D%22en-US%22%3EApp%20Service%20error%20when%20deploying%20code%20500.30%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3110438%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20test%20web%20app%20running%20on%20Azure%20and%20its%20been%20deployed%20as%20an%20App%20Service%20for%20months%2C%20until%20recently%20I%20was%20able%20to%20publish%20from%20Visual%20Studio%20to%20it%20no%20problem%20but%20it%20has%20recently%20started%20showing%20the%20500.30%20error%20after%20publishing%20(app%20failing%20to%20start).%20I've%20noticed%20if%20I%20create%20a%20brand%20new%20app%20service%20its%20fine%2C%20its%20only%20when%20I%20re-publish%20it%20fails%20(checked%20the%20publish%20settings%20numerous%20times%20and%20its%20the%20same%20as%20when%20i%20do%20a%20new%20publish%20that%20works).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20add%20to%20the%20issue%20yesterday%20after%20a%20new%20publish%20it%20went%20down%20after%20a%20few%20hours.%26nbsp%3BI've%20reviewed%20the%20event%20logs%20for%20the%20app%20and%20I%20can%20see%20its%20initiating%20a%20shutdown%20(see%20error%20below%20-%20i%20changed%20commit%20%2F%20computer%20values%20since%20it%20might%20be%20specific%20to%20my%20account)%2C%20but%20I%20am%20now%20a%20bit%20stuck%20on%20how%20to%20diagnose%20this%20or%20the%20possible%20causes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3CEVENT%3E%0A%3CSYSTEM%3E%0A%3CPROVIDER%20name%3D%22IIS%20AspNetCore%20Module%20V2%22%3E%3C%2FPROVIDER%3E%0A%3CEVENTID%3E1033%3C%2FEVENTID%3E%0A%3CLEVEL%3E4%3C%2FLEVEL%3E%0A%3CTASK%3E0%3C%2FTASK%3E%0A%3CKEYWORDS%3EKeywords%3C%2FKEYWORDS%3E%0A%3CTIMECREATED%20systemtime%3D%222022-02-02T19%3A25%3A31Z%22%3E%3C%2FTIMECREATED%3E%0A%3CEVENTRECORDID%3E18067687%3C%2FEVENTRECORDID%3E%0A%3CCHANNEL%3EApplication%3C%2FCHANNEL%3E%0A%3CCOMPUTER%3EBG5215685541%3C%2FCOMPUTER%3E%0A%3CSECURITY%3E%3C%2FSECURITY%3E%0A%3C%2FSYSTEM%3E%0A%3CEVENTDATA%3E%0A%3CDATA%3EApplication%20'MACHINE%2FWEBROOT%2FAPPHOST%2FTESTAPP'%20has%20shutdown.%3C%2FDATA%3E%0A%3CDATA%3EProcess%20Id%3A%202172.%3C%2FDATA%3E%0A%3CDATA%3EFile%20Version%3A%2015.0.21196.9.%20Description%3A%20IIS%20ASP.NET%20Core%20Module%20V2%20Request%20Handler.%20Commit%3A%20c663adee8e64ba5d379fa0edfb8201984a7df7d0%3C%2FDATA%3E%0A%3C%2FEVENTDATA%3E%0A%3C%2FEVENT%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20run%20in%20to%20this%20before%20and%20can%20they%20point%20in%20the%20right%20direction%3F%20The%20app%20is%20.Net%20Core%205%20and%20is%20built%20in%20Visual%20Studio.%20When%20we%20republish%20we%20tick%20the%20box%20to%20delete%20the%20previous%20files%20as%20well%20which%20I%20see%20is%20a%20common%20fix%20for%20this%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I have a test web app running on Azure and its been deployed as an App Service for months, until recently I was able to publish from Visual Studio to it no problem but it has recently started showing the 500.30 error after publishing (app failing to start). I've noticed if I create a brand new app service its fine, its only when I re-publish it fails (checked the publish settings numerous times and its the same as when i do a new publish that works).

 

To add to the issue yesterday after a new publish it went down after a few hours. I've reviewed the event logs for the app and I can see its initiating a shutdown (see error below - i changed commit / computer values since it might be specific to my account), but I am now a bit stuck on how to diagnose this or the possible causes.

 

 
 

 

<Event>
<System>
<Provider Name="IIS AspNetCore Module V2"/>
<EventID>1033</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2022-02-02T19:25:31Z"/>
<EventRecordID>18067687</EventRecordID>
<Channel>Application</Channel>
<Computer>BG5215685541</Computer>
<Security/>
</System>
<EventData>
<Data>Application 'MACHINE/WEBROOT/APPHOST/TESTAPP' has shutdown.</Data>
<Data>Process Id: 2172.</Data>
<Data>File Version: 15.0.21196.9. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: c663adee8e64ba5d379fa0edfb8201984a7df7d0</Data>
</EventData>
</Event>

 

 

Has anyone run in to this before and can they point in the right direction? The app is .Net Core 5 and is built in Visual Studio. When we republish we tick the box to delete the previous files as well which I see is a common fix for this issue.

0 Replies