Could not load file or assembly 'Microsoft.AI.Web' or one of its dependencies. The system cannot find the file specified

后端 未结 5 692
天涯浪人
天涯浪人 2020-12-30 20:35

After successfully publishing my Web Api to Azure when i try to hit the api i get the following error.

Here\'s a link to api

WRN: Assembly binding lo         


        
5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 20:56

    I have reproduce this type issue. Here is my reproduce process:

    1) Create web App api with Microsoft.ApplicationInsights.Web installed.
    2) Then deploy the App to Azure Web app.
    

    Here is the web API worked screenshot:

    Then I open KUDU tool, delete Microsoft.AI.Web in Bin folder, and run the site again. I get the same error with you, here is the screenshot:

    So I can ensure that, this error is caused by the assembly Microsoft.AI.Web is missing. Please set the copy local as true as following screenshot, then redeploy to Azure web App:

提交回复
热议问题