我正在尝试运行从TFS源代码控制中检索的Asp.net MVC项目.我添加了所有程序集引用,我能够成功构建和编译,没有任何错误或警告.
但是我在浏览器中收到以下错误:
找不到路径'C:\ B8akWorkspace\B8akProject\B8akSolution\B8AK.Portal\bin\roslyn\csc.exe'的一部分.
以下是错误页面的完整屏幕截图.
经过几天的研究,我了解Roslyn是.Net编译器平台,提供高级编译功能.但是,我不明白为什么我的构建试图找到\ bin\roslyn\csc.exe,因为我没有配置任何与Roslyn相关的东西,也没打算在我的项目中使用Roslyn.
我在我的应用程序中使用MVC 5,WCF和Unity框架.
运行WCF服务时出现以下错误:
Server Error in '/' Application.
Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The …Run Code Online (Sandbox Code Playgroud) 我通过NuGet修改了我的ASP.NET MVC4包,现在System.Web.WebPages.Razor v3无法加载.有时其他包也不会加载.
我的同事运行解决方案没有任何麻烦,所以问题肯定是我的开发系统上的配置(而不是任何已经检查过的).
我已经尝试了各种SOF和其他论坛的建议,包括:
以及从那里链接的建议.我还检查了控制面板,发现没有安装程序引用MVC.(如果重要的话,我正在运行MS Win 7 SP 1.)
我愿意接受任何建议.
这是我的核心转储信息:
'/'应用程序中的服务器错误.
无法加载文件或程序集'System.Web.WebPages.Razor,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一.该系统找不到指定的文件.
描述:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息.
异常详细信息:System.IO.FileNotFoundException:无法加载文件或程序集'System.Web.WebPages.Razor,Version = 3.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一.该系统找不到指定的文件.
Run Code Online (Sandbox Code Playgroud)Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of可以使用下面的异常堆栈跟踪来识别异常.
Run Code Online (Sandbox Code Playgroud)Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.WebPages.Razor,无法加载版本= 3.0.0.0,Culture = …