Could not load file or assembly System.Web.WebPages.Razor, , Version=3.0.0.0 or one of its dependencies

后端 未结 3 1961
眼角桃花
眼角桃花 2020-12-09 15:56

I am using MVC 5, WCF and Unity framework in my application.

I am getting below error when I run WCF service:

Server Error in \'/\' Application.

Co         


        
3条回答
  •  青春惊慌失措
    2020-12-09 16:29

    I had same issue where WCF was showing error of unrelated MVC assembly (I have multiple MVC projects in solution which are using System.Web.WebPages.Razor, Version=3.0.0.0). I installed Microsoft.AspNet.WebPages package in the WCF project , ran WCF proj and It worked. After that I had uninstalled all Microsoft.AspNet.WebPages related packages. It worked fine.

提交回复
热议问题