-
Notifications
You must be signed in to change notification settings - Fork 10k
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
HTTP Error 500.30 - ANCM In-Process Start Failure #18230
Comments
I also had the same problem as you, I used a standard library from an aspnetcore 3.0-3.1 project.
|
We are having the same issue @ZonerZoner mentioned. Removing hostingModel="inprocess" fixes the issue for us. We are also making sure only 3.x packages are referenced, so that's not an issue. Is there a way to set this value directly from release/deploy in Azure DevOps? It's not really feasible to go in and change this every time we redeploy our App Services. |
@ZonerZoner @victormarante this looks like #18334. Can you look at the workarounds there and try applying them? If they work, the issue should be fixed in an upcoming patch. If not, let us know and it might be something different. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
This comment has been minimized.
This comment has been minimized.
In may case, I could solve the issue. There was a netstandard2.0 library down the road which relied on AspNetCore.App 2.0. After I migrated the library to netcoreapp3.1 (and its dependencies), the issue was gone. But still the fun fact is that the application loaded if the web.config was modified. |
So you had mixed ASP.NET Core 2.0 and 3.1 dependencies in your app? Given that, it's expected that you'd hit start failures like this since that's not really supported. |
Yes, it was mixed by mistake (in dependent libraries). But the fun fact is that only the web.config attribute is crashing the startup in IIS. If this could be fixed, it would be easier to migrate, I guess |
This seems extremely odd. @ZonerZoner can you post a runnable sample reproducing that problem? It should absolutely not be running in-process if you remove that attribute, it should run in out-of-process mode instead. Can you clarify what (if any) remaining action we have here? I'd like to get to the bottom of the hostingModel attribute issue you mentioned above, but it sounds like the main issue (start failure) has been resolved by fixing your dependencies, correct? |
So by removing the attribute from the web.config, you are actually running in out-of-process mode, rather than in-process. Regarding:
Do you happen to see any managed logs from ANCM when enabling stdoutLogging? See https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-3.1#configuration-with-webconfig |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
I guess it's no longer necessary.
Yes, correct.
I just deployed an old version of the application in our test system and it looks like your argument is valid. I see a w3wp and dotnet process. I would have bet to only have seen the w3wp process before. I guess this issue is stale then.
No. I never saw any logs there as written in the initial post (stdout: blank file) |
Ok, we'll close this then as it sounds like there isn't much to move forward on here. Feel free to file a new one if something else comes up. |
Describe the bug
Migrated .NET Core 2.2 application to .NET Core 3.1 does not launch if hostingModel="inprocess" is set in web.config. If the hostingModel="inprocess" is removed, the application loads as expected (in inprocess mode).
Expected behavior
Application launches also with hostingModel="inprocess" set
Additional context
eventlog:
Application '/LM/W3SVC/2/ROOT' with physical root 'C:\inetpub\myapplication' hit unexpected managed exception, exception code = '0xe0434352'. Please check the stderr logs for more information.
Application '/LM/W3SVC/2/ROOT' with physical root 'C:\inetpub\myapplication' failed to load clr and
managed application. CLR worker thread exited prematurely
stdout: blank file
additional debug:
The text was updated successfully, but these errors were encountered: