Could not load file or assembly Microsoft.CodeAnalysis

前端 未结 6 1384
庸人自扰
庸人自扰 2021-01-01 08:50

I have a webproject I am trying to host, but when the server tries to compile it, I get the following error:

Unhandled Exception: System.IO.FileLoadE

6条回答
  •  旧时难觅i
    2021-01-01 09:29

    I resolved this issue but ensuring that the version numbers of the assemblies in my web.config were correct.

    Edit:

    I hit this problem as well and some may wonder how the Web.Config can become incorrect. In my case I am using Web.Config Transforms so the Web.Config file gets overwritten:

    Changing the version number in Web.Configs compiler (in the Web.Template.Config) to the number matches the NuGet version does solve the issue:

    
                                                            
提交回复
热议问题