HTTP Error 500.38 - ANCM Application DLL Not Found

Dharmesh Shah 0 Reputation points

My application contains latest .net framework related nuget package.


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.
6,508 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sedat SALMAN 12,350 Reputation points

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

    0 comments No comments

  2. Saurabh Sharma 23,251 Reputation points Microsoft Employee

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