-
Notifications
You must be signed in to change notification settings - Fork 1.1k
With .NET 6.0 installed, publish .NET Framework 2.1 fails to error "HTTP Error 502.5 - Process Failure". #18642
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
Can you please take a look at the docs (which should be linked from the error page you posted) and see if you can get diagnostics for the issue. |
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 will try to get the diagnostics next week, thanks! |
@BrennanConroy I assume this is not a blocker for preview6? |
Can you clarify? Why can't you get the info? |
Application Event Log Framework Version: v4.0.30319 Exception Info: System.IO.FileNotFoundException |
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
This can be reproed locally, no need to publish to app service. I used sdk 6.0.100-preview.7.21324.2 to repro the issue, but OP was using a preview6 SDK. Looking at the difference between the published output with a 5,0 SDK vs 6.0 SDK, there is 164 items vs. 68 items, so there is definitely a big difference between the SDKs. Output from running the .exe from the 6.0 SDK:
Adding the missing dll will then move on to complain about the next missing dll, and I assume it will keep doing so until the ~100 missing files are added. |
From dotnet/aspnetcore#30419, it seems this issue started w/ the 6.0-preview1 SDK. Did that preview release make important changes in how apps are published @wli3 @dsplaisted @marcpopMSFT❔
I'd say it's not a preview6 blocker given our release timeline (shrug). Let's treat this as important and urgent but not s ship-stopper for our preview releases. That said, we should fix this before the next 6.0 release because it's a regression since 5.0 of a scenario important enough for CTI to test. |
👀 |
I've root caused this issue to this change in the SDK- https://github.com/dotnet/sdk/pull/14020/files Impacted customers can work around this by adding this to their project file <PropertyGroup>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup> |
@shirhatti are you saying #14020 has a bug causing removal of files required in scenarios like this one❔ @sfoslund @AntonLapounov @dsplaisted is there a fix planned for this regression from 5.0.x❔ The workaround sounds simple enough but the connection to having too few files in the published output seems unlikely for customers to grok i.e. the workaround doesn't seem discoverable. |
Looks like it to me. I have a before/after binlog handy if someone wants to take a look. FWIW, I noticed we've disabled this in the aspnetcore repo as well https://github.com/dotnet/aspnetcore/blob/main/eng/Workarounds.props#L37 |
That's worth a lot @shirhatti❕ I forgot about that workaround and dislike the idea of requiring it of many customers upgrading from 5.0.x to 6.0.x. |
It looks like this is the same thing as #18101 @marcpopMSFT Another hit on this regression |
This should be fixed in .NET SDK RC1 with #19731 |
Not repro with 17.0.0 Preview 4.0 [31622.41.main] + 6.0.100-rc.1.21422.7. |
Co-authored-by: Alexander Köplinger <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
Testcases Affected
Publish ASP.NET Core 2.1 (.NET Framework)
Repro Steps
It shows "HTTP Error 502.5 - Process Failure" on the published website.
Actual Result

The text was updated successfully, but these errors were encountered: