HTTP Error 500.38 - ANCM Application DLL Not Found

Dharmesh Shah 0 Reputation points
2023-07-10T15:03:52.26+00:00

My application contains latest .net framework related nuget package.

i,e.7.0.8

App service not publish and giving error.

HTTP Error 500.38 - ANCM Application DLL Not Found

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,408 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sedat SALMAN 13,345 Reputation points
    2023-07-10T18:21:13.31+00:00

    Make sure that the Azure App Service is configured to use this same version of the .NET runtime.

    https://learn.microsoft.com/en-us/azure/app-service/configure-language-dotnet-framework#set-net-framework-runtime-version

    0 comments No comments

  2. Saurabh Sharma 23,791 Reputation points Microsoft Employee
    2023-07-10T20:56:00.43+00:00

    @Dharmesh Shah

    Thanks for using Microsoft Q&A !!

    You may be getting this error if app which you are trying to host is packaged as a Single-file executable using in-process hosting model. As per the troubleshooting documentation, please follow the below steps -

    Use one of the following approaches in the app's project file to fix this error:

    1. Disable single-file publishing by setting the PublishSingleFile MSBuild property to false.
    2. Switch to the out-of-process hosting model by setting the AspNetCoreHostingModel MSBuild property to OutOfProcess.

    Please let me know if you face any problems while fixing this error with the above steps.

    Thanks Saurabh


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.