无法加载在IIS 8文件或程序集System.Web.Helpers,错误 [英] Could not load file or assembly 'System.Web.Helpers, error on IIS 8
本文介绍了无法加载在IIS 8文件或程序集System.Web.Helpers,错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个MVC4 Web应用程序,基于Visual Studio 2012中,工作正常使用本地IIS防爆preSS服务器。当我发布应用程序在Windows 2012年,初始登录页面显示正常运行的IIS 8 Web服务器。但是,使用远程调试,我看到,当我使用下面的行检查凭据:
I have a MVC4 web application that works fine on Visual Studio 2012, using the local IIS Express Server. When I publish the application to an IIS 8 web server running on Windows 2012, the initial login page displays correctly. However, using remote debugging, I see that when I check the credentials using the following line:
if (ModelState.IsValid && WebSecurity.Login(model.UserName, model.Password, persistCookie: model.RememberMe))
我得到了如下图所示的错误:
I get the error shown in the figure below:
推荐答案
解决方案 - 复制参照当地
Solution - Copy reference to local
- 右键单击参考System.Web.Helpers并选择属性
- 更改复制本地设置为true。
- 生成解决方案
这篇关于无法加载在IIS 8文件或程序集System.Web.Helpers,错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文