Forum Discussion
IIS issue - apsnetcore.dll not found
.NET 2.X is no longer supported and recommend upgrading the application to a supported version. You can refer to the list of available .NET versions here: .NET Downloads (Linux, macOS, and Windows) (microsoft.com). It appears that the necessary version of .NET is not installed on your new server, you can attempt to install the required version that was present on your old server. However, please note that we cannot guarantee this workaround will resolve the issue as the version is unsupported.
HridayDutta thanks for your reply.
I have installed .Net 8.x to resolve the issue of using a .Net version that is no longer supported, and that is what has introduced this issue.
Something is referencing aspnetcore.dll, which I assume is installed by .NET 2.x but not .Net 8.x, but I don't know where that call to aspnetcore.dll is being made.
I am guessing that if I can identify that I can amend it with the DLL that .Net 8.x installs. So, I think I need the following to fix this :
1. Where is apsnetcore.dll being referenced from on an IIS server ?
2. What is the .Net 8.x replacement for aspnetcore.dll ?
3. How/where do I amend my configuration to reference the .Net 8.x aspnetcore.dll replacement ?
Thanks.
- HridayDuttaOct 01, 2024
Microsoft
Since your application is built on .NET 2.X, the same runtime version is required on the server. Please note that support for .NET 2.X has ended, and it is recommended to upgrade your application to a supported version.- rpreston845Oct 02, 2024Copper ContributorThanks for the update.