-
Notifications
You must be signed in to change notification settings - Fork 10.3k
WARNING - updating to Microsoft.AspNetCore.App (2.1.1) completely breaks IIS #3250
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
Comments
From @BjornSigurd on June 21, 2018 14:33 I confirm. Got the "502.5" error in Chrome after having upgraded from 2.1.0 to 2.1.1. |
FYI: The Application log in Event Viewer shows the following error: |
Confirmed, seems to relate to #3241 |
I updated the SDK to 2.1301 and update the NuGet packages, but now I get a build error in VSTS with the implicit SDK reference to Microsoft.AspNetCore.App. The migration guide (2.0 -> 2.1) says that you should omit the version number, but this leads to the situation that the build uses v2.1.0 instead of the available 2.1.1. This results in the following build error:
I guess I have to explicitly set the version of the package, although the migration guide told me not to. |
Also results in a package version error if you try to use Entity Framework Core 2.1.1 without specifying a version for
As @zuckerthoben said, ignoring the migration advice and specifying a version for .NET Core 2.1 and Microsoft.AspNetCore.App have been out for a while now - it would be nice to update the migration guide to stop others following its problematic advice and wasting time. |
@natemcmaster / @JunTaoLuo / @davidfowl / @DamianEdwards - any ideas on this? |
@cocowalla you are running into a known issue with the 2.1.0 package and 2.1.300 SDK. I recommend installing the latest .NET Core SDK on your machine, however, VSTS has not yet updated their images to 2.1.301 (see https://github.com/Microsoft/vsts-image-generation/issues/168). So, the only available workaround is to put the Version attribute on the PackageReference. <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.1" />
</ItemGroup>
cref dotnet/AspNetCore.Docs#7540 and #3292 |
I will completely skip 2.1.1 and wait for 2.1.2. Please make sure that all the SDK/version etc stuff works smoothly. |
FYI - 2.1.2 became available earlier this week. It includes a few security patches, so you may want to take a look. (See https://blogs.msdn.microsoft.com/dotnet/2018/07/10/net-core-july-2018-update/)
Deeply sorry. We learned too late that our original design was not equipped to handle servicing events. We've spent the last week discussion alternatives that we can reasonably implement soon to solve this issue. (cc @nguerrera)
This is a known issue. Please use https://github.com/dotnet/core-setup/issues/4188 for further discussion on the pros/cons of installers which remove old versions. (I personally agree, which is why I opened the issue, but there are some implications we have to think through.) |
Ok, so you say that upgrading from 2.1.0 to 2.1.2 using NuGet Package Manager will be plug&play? I have the latest VS version (15.7.2) which installed 'Microsoft .NET Core SDK - 2.1.202 (x64). |
Actually, I would recommend keeping your PackageReference set to 2.1.1. I realize this is a confusing behavior, and it's something we're trying to address soon (see ongoing discussion here #3307). The shortest answer I can give as to "why" is that the PackageReference to AspNetCore.App is special. The version acts as a minimum version. So, if you download and install the 2.1.2 runtime, your application will roll forward and run on 2.1.2 because it is the highest patch higher than 2.1.1. It doesn't work the other way around. If you update your PackageRef to 2.1.2 and your machine only has 2.1.0 or 2.1.1, .NET Core won't run the application. |
What does "your machine only has 2.1.0 or 2.1.1" mean? (If you talk about the SDK, I have 2.1.202 which I assume is a 2.1.2 version). |
So, the 2.1.202 SDK only includes the 2.0.9 runtime (confusing too, I know.1) The 2.1.* runtimes are included with the .NET Core SDK starting in 2.1.300. The latest SDK is 2.1.302. This includes the 2.1.2 runtime.
|
So, if I
I will be all good? PS. And when deploying my 'Self-contained' application to the production server, I only need to install 2.1.302 SDK on the production server? Or, is this SDK install not necessary on the prod server if 'Self-contained' means "100% self-contained"? |
Yes, 2.1.302 SDK + the 2.1.2 packages will work. Self-contained is 95% self-contained. The other 5% is machine pre-requisites depend in on OS. for example, you need |
Thank you for your good and understanding explanations. 2.1.302 SDK + NuGet Package Manager update to 2.1.2 seems to work fine. Also, deployment of self-contained application (to Windows Server 2016 Datacenter) works fine by just using a plain application file copy. |
From @Bridgeway on June 21, 2018 9:17
Tempted by the Updates option in "Manage Packages for Solution" in VS 2017, I thought it would make sense to upgrade from the 2.1.0 preview final release version.
However after doing so, I noticed several packages that were removed during the upgrade were not re-installed and after this whenever running by clicking the green arrow next to IIS Express I got 502.5 at first from Chrome with no ability to debug web application at all, then the browser just flashed up and and the app stopped.
So it seems at the moment it is best to stick with the 2.1.0 preview version.
Hopefully this post will save others loads of wasted time :(
Copied from original issue: dotnet/corefx#30573
The text was updated successfully, but these errors were encountered: