-
Notifications
You must be signed in to change notification settings - Fork 10.4k
SDK regression in 3.0.101 and 3.1.100 for ASP.NET Core workloads #17973
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
We are not sure if the problem we are running into currently is related to this issue. (Identity Server project runs without a problem iun dev mahcine but fails to start in Azure App Service instance. It was working a couple of weeks ago...) Could you provide more information about the symptoms caused by this regression? |
@mxa0079 it's more likely that your issue is related to aspnet/Announcements#401. Likely you have the 3.1.1 runtime on your local dev machines, but App Service only has 3.1.0. Right now, if you are using a 3.1.1 package, it might fail on the unpatched 3.1.0 runtime. |
I am trying to migrate my projects from .net core 2.2 to 3.1. And the problem was occurred when trying to publish the apps in IIS
For more details please see my question on stackoverflow: link What is the root of a problem? I've tried everything, nothings seems to work :( |
@joeloff - this looks like the hosting bundle problem right? @AndreiKhotko - can you try a Repair on the .NET Core Runtime in Add/Remove Programs? |
@Pilchie Which hosting bundle problem? |
I was thinking of the issue where we had the non-final branded runtime in the hosting bundle coupled with dotnet/runtime#703. |
Ahh, if that issue is the culprit then repair would be a good option. Should be easy to tell because some of the runtime files would be missing and then placed back after the repair |
@Pilchie I tried it. It doesn't help at all. I know that the problem is occurred when I build the solution with a command:
And then publish the app with --no-build param:
And then when server tried to run the app, the error is occurred
The interesting thing is that when I publish app without Maybe I could not understand how to use the commands, but my aim is to build the whole solution, and then publish the project on IIS without build in Framework Dependent Executable (FDE) mode. The target platform for me can be either linux-64 (CentOS) or win-x64. Should I have to change the commands? This problem has not been reproduced when I use .net core 2.2 sdk and .net core 2.2 apps. The app has been published and run successfully. Feel a little bit confused |
@jkotalik - any idea? Note - you can't run the linux-x64 binaries on IIS, because IIS is windows specific. If you want to run on Linux, you'd need to use Kestrel. |
@Pilchie that's obvious. When the project is published on linux, I use |
I'm not sure what the interaction between |
This issue has been fixed in 3.1.2. Keeping open for the sake of having a matching issue for annoucements. |
There should have been an error if you introduced a new rid, did not restore differently, and used --no-build. @dsplaisted |
…O call from ASP.NET dotnet/aspnetcore#7644 Fix issue on .Net Core 3.0 regression dotnet/aspnetcore#17973
It seems the problem persists even after upgrading all the references to 3.1.2. |
@AdrienTorris What do you mean by upgrading the references? You need to install the 3.1.102 SDK to get the fix |
@jkotalik What issue has been fixed? Do you mean issue with |
…O call from ASP.NET dotnet/aspnetcore#7644 Fix issue on .Net Core 3.0 regression dotnet/aspnetcore#17973
Thank you for contacting us. Due to a lack of activity on this discussion issue we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core framework, which hasn't been addressed yet, please file a new issue. This issue will be locked after 30 more days of inactivity. If you still wish to discuss this subject after then, please create a new issue! |
Uh oh!
There was an error while loading. Please reload this page.
SDK regression in 3.0.101 and 3.1.100 for ASP.NET Core workloads
The 3.0.101 and 3.1.100 versions of the .NET Core SDK have a regression which potentially causes 2.2 and 3.0/3.1 dependencies to mismatch, causing applications to fail to start when running with IIS InProcess.
For the official announcement, see aspnet/Announcements#398.
Version introduced
.NET Core SDK 3.0.101
.NET Core SDK 3.1.100
Regression details
In 3.0, we introduced the concept of a
FrameworkReference
for ASP.NET Core. TheFrameworkReference
includes all the libraries that make up ASP.NET Core. See aspnet/Announcements#325 for the motivation and reason behind this change. For all libraries that are referenced in theMicrosoft.AspNetCore.App
framework, we ignore references in your project of a lower version. For example, if a 2.2 version ofMicrosoft.AspNetCore.Server.Kestrel
(one of the libraries in the framework) is also separately referenced by the application, we ignore the 2.2 version when building. These update rules are defined by thePlatformManifest.txt
file is part of the SDK. Any library in that list has this behavior, earlier references to those libraries are ignored.However, in 3.0.1 and 3.1.0, we introduced a regression which removed a few select references from the
PlatformManifest.txt
file by mistake.Libraries that were removed from the
PlatformManifest.txt
between 3.0.0 and 3.0.1:Libraries that were added to the PlatformManifest.txt between 3.0.0 and 3.0.1:
The libraries that were added to the
PlatformManifest.txt
shouldn't adversely affect applications. However, the dependencies removed do affect applications. In particular, theaspnetcorev2_inprocess.dll
native library is critical to IIS in-process hosting. Issues with this have been reported in a few places (for example #17662). We've now identified this is a broader regression.If an application references (directly or transitively) a previous version of the
Microsoft.AspNetCore.Server.IIS
,System.Drawing.Common
,Microsoft.Win32.SystemEvents
, orSystem.Security.Cryptography.Pkcs
package, it might deploy the older dependency rather than the 3.0/3.1 dependency. This can cause assembly load failures.Workarounds
Users may work around this issue by doing one of the following:
Remove all direct and indirect references to the affected packages.
The following packages include the
aspnetcorev2_inprocess.dll
native library:Other affected libraries are contained in packages with the same name. See the above lists.
The resolution is to remove these package references from your application. Be aware that they may be transitive dependencies (dependencies of other packages you depend upon).
Avoid publishing incorrect package content
If you cannot remove earlier versions of the pacakges, you can explicitly suppress those packages from publishing using
ExcludeAssets
:We recommend clearing out bin/obj folders before building with the above fix.
The text was updated successfully, but these errors were encountered: