无法加载文件或程序集“System.Web.WebPages.Razor,版本= 3.0.0.0 [英] Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0

查看:200
本文介绍了无法加载文件或程序集“System.Web.WebPages.Razor,版本= 3.0.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用外部登录,所以我用包管理器安装的Oauth:

  PM>安装封装Microsoft.AspNet.WebPages.OAuth

然后,我得到这个错误,安装完成后,然后我装剃刀:

  PM>安装封装Microsoft.AspNet.Razor

但我仍然有此异常。进一步我的应用程序是一个asp.net应用程序,而不是一个MVC应用程序。感谢您的帮助。

  [FileNotFoundException异常:未能加载文件或程序集System.Web.WebPages.Razor,版本= 3.0.0.0,文化=中性公钥= 31bf3856ad364e35或它的一个依赖。该系统找不到指定的文件。]
   Microsoft.Web.WebPages.OAuth。preApplicationStart code.Start()+ 0


解决方案

您已经升级到剃刀3.请记住,VS 12(直到更新4)不支持它。安装剃刀从3或的NuGet通过这些步骤降级

<一个href=\"http://geekswithblogs.net/anirugu/archive/2013/11/04/how-to-downgrade-razor-3-and-fix-the-issue-that.aspx\">geekswithblogs.net/anirugu/archive/2013/11/04/how-to-downgrade-razor-3-and-fix-the-issue-that.aspx

I want using external logins so I installed Oauth by package manager:

 PM> Install-Package Microsoft.AspNet.WebPages.OAuth

Then I got this error after installed it then I install razor:

PM> Install-Package Microsoft.AspNet.Razor

But I still have this exception. Further more my application is an asp.net application and not a MVC application. Thanks for help.

[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 system cannot find the file specified.]
   Microsoft.Web.WebPages.OAuth.PreApplicationStartCode.Start() +0

解决方案

You have upgraded to Razor 3. Remember that VS 12 (until update 4) doesn't support it. Install The Razor 3 from nuget or downgrade it through these step

geekswithblogs.net/anirugu/archive/2013/11/04/how-to-downgrade-razor-3-and-fix-the-issue-that.aspx

这篇关于无法加载文件或程序集“System.Web.WebPages.Razor,版本= 3.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆