Could not load file or assembly System.Web.Http.WebHost after published to Azure web site

后端 未结 15 1752
半阙折子戏
半阙折子戏 2020-12-07 10:39

I created a web project and it runs well in Visual studio. However, I got the following error after published it to azurewebsites. What can cause the issue?

15条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 11:14

    For me worked adding the following section to web.config file:

    
    ...
        
        ...
            
                
                
            
        ...
        
    ...
    
    

    This example stands for MVC 5.1. Hope it will help someone to resolve such issue.

提交回复
热议问题