我想使用外部登录,所以我通过包管理器安装了OAuth:
PM> Install-Package Microsoft.AspNet.WebPages.OAuth
然后我在安装后出现了这个错误,然后我安装了razor:
PM> Install-Package Microsoft.AspNet.Razor
但我还是有这个例外.此外,我的应用程序是ASP.NET应用程序,而不是MVC应用程序.谢谢你的帮助.
[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