Could not load file or assembly 'Microsoft.Web.Infrastructure,

后端 未结 20 2030
走了就别回头了
走了就别回头了 2020-12-09 00:57

I tried to upload my web site to a server. It was working fine with my local host, so I uploaded everything in my localhost wwwroot folder to the server and cha

20条回答
  •  温柔的废话
    2020-12-09 01:23

    I had a similar problem. NuGet showed the package successfully installed, but the reference was not added to my project.

    Running Install-Package Microsoft.Web.InfraStructure also didn't help as the package manager kept saying it's already installed

    I finally added it manually by editing the csproj file and adding these lines:

     
      ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll
      True
    
    

    That solved the problem.

提交回复
热议问题