Forum Discussion

rpreston845's avatar
rpreston845
Copper Contributor
Sep 24, 2024

IIS issue - apsnetcore.dll not found

Hi,

 

I am working on upgrading a server from 2012 to 2022 (on AWS). I have installed a fresh 2022 instance and have sued webdeploy to copy the entire IIS configuration from the 2012 server to the 2022 server.

 

To try to further bring the server up to date, the 2012 server is running .Net 2.x and on 2022 I have installed .Net 8.x

 

When I launch the 2022 server IIS runs but my websites won't come up - I keep getting a 503 error. When I look in the Event Viewer the error message I see is "apsnetcore.dll not found". I have spent some time trying to identify how to rectify this but so far have not been successful. Could anyone please give me any suggestions to try to find a fix ?

TIA

  • .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.

     

    • rpreston845's avatar
      rpreston845
      Copper Contributor

      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.

      • HridayDutta's avatar
        HridayDutta
        Icon for Microsoft rankMicrosoft
        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.

Resources