-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
NetCore 2.2 Angular template does not publish to Azure #2125
Comments
I'm facing the same problem 😞 |
I had the same problem on our local server. We had to upgrade the ASP.NET Core hosting bundle to fix it: https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.0-windows-hosting-bundle-installer |
I had the same problem even with the |
I got the same error message when I upgraded my app from 2.1 to 2.2. The error happens only on AppService deployment, locally everything works fine. If I manually change |
I have the same error. For me, this occurs for any ASP.NET Core app targeting 2.2 when publishing to azure. I have tried both upgrading an existing application and creating a new application targeting 2.2 I've followed the guide here: https://docs.microsoft.com/en-us/aspnet/core/migration/21-to-22 and have added As with @krajek, when I change |
Same issue. Confirm @krajek's trick. |
@AitroSoftware Adding |
After long digging, I fixed this by installing the .NET Core 2.2 Runtime extension on Azure (which supports the new Update - no, didn't help again... Run for a while, but I guess that was cache |
This is working, thanks a lot 😃 |
This has worked for me |
Extension worked for me to(x86 version). Thanks a lot, @MartinZikmund. Very unfortunate that the migration guide does not mention it (https://docs.microsoft.com/en-us/aspnet/core/migration/21-to-22?view=aspnetcore-2.2&tabs=visual-studio) :-(. |
How do you changed the web.config, if this does not exists in the net core project? |
I think the problems have to do with what is mentioned in the ASP.NET Core 2.2 announcement post:
So any erros will probably be connected with the fact that either the new module is not yet available in the region or the new runtime is not there yet. |
Thanks! I have installed x64 extension and it helped. I have also added the following two lines to the .csproj file:
|
@MartinZikmund Can confirm that adding the following two lines to the .csproj file has worked
|
@muratg / @shirhatti - do you know the latest on 2.2 running in Azure App Services? |
@Eilon We do not know the current status, but last I heard from App Service folks is that they expect to be done on all public regions by the end of next week. |
See #2120 (comment) |
I had to do the same, use the x86 version. Now it's working |
Thanks @MarcoRossignoli! |
I think it doesn't answer this question:
Changing the Thanks! |
@fdbva looks like there is multiple questions - I have harder time to understand what your remaining question is about (as I am not expert on ASP.NET Core). Would it be more appropariate to ask the question on ASP.NET Core repo, or am I missing something? |
@karelz |
@fdbva are you getting same issue?Can you share your detailed error log? |
I get the same error from the first post. Now we have the <title>IIS Detailed Error - 500.21 - Internal Server Error</title> <style type="text/css"> </style>
This solution by
But it feels like a work around, I suppose that when it's fixed, I wouldn't need to do something like that. I could just deploy with the I'll explain the scenario so it'll make more sense, maybe I understood something wrong. We wanted the |
@fdbva I try to explain better, sorry for my poor english.
AFIK you cannot run asp.net core inside IIS without "ASP.NET Core Hosting Bundle". This bundle allows asp.net core to run with/inside IIS, it implements so called handlers, IIS receive http request from network and "forward" these to asp.net engine (https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2)
"ASP.NET Core Module" is inside "ASP.NET Core Hosting Bundle".
In conclusion you depend on hosting bundle to run app inside IIS,
It's not a bug workaround, the "issue" is that publish .net 2.2 asp.net core app generates web.config that uses new handler Extra: https://blogs.msdn.microsoft.com/webdev/2018/12/04/asp-net-core-2-2-available-today/ check "Availability in Azure App Service" paragraph |
@MarcoRossignoli ps.: my english is not very good either hehehe |
Yes, asp.net core is composed by some simple assemblies that run on .NET Core runtime. The same of ASP.NET MVC for .NET Desktop(i.e. classic 4.7.2). But web site needs a server and we've IIS that is "decoupled" from runtimes it hosts, so this "bundle" is the bridge between environments. |
And with the ps.: is it ok to discuss like this in an issue? And again, thanks for the explanations =D |
No |
NetCore 2.2 Angular template does not work to publish in Azure
Steps:
You can see in the browser:
"The page cannot be displayed because an internal server error has occurred."
The Angular versión is not problem, I tried with the 5,6,7 versión.
With the netcore 2.1 angular template correctly does works.
Allow the application on azure log displays the following log:
Log stream in Azure
<title>IIS Detailed Error - 500.21 - Internal Server Error</title> <style type="text/css"> </style>HTTP Error 500.21 - Internal Server Error
Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list
Most likely causes:
Things you can try:
Detailed Error Information:
More Information:
IIS core does not recognize the module.View more information »
Microsoft Knowledge Base Articles:
The text was updated successfully, but these errors were encountered: