无法加载文件或程序集“System.Web.Helpers,IIS 8 上的错误" [英] Could not load file or assembly 'System.Web.Helpers, error on IIS 8

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

问题描述

我有一个 MVC4 Web 应用程序,它使用本地 IIS Express 服务器在 Visual Studio 2012 上运行良好.当我将应用程序发布到在 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))

我得到如下图所示的错误:
(来源:usf.edu)

I get the error shown in the figure below:
(source: usf.edu)

推荐答案

听起来好像服务器上没有安装 MVC.

Sounds as though MVC has not been installed on the server.

这篇关于无法加载文件或程序集“System.Web.Helpers,IIS 8 上的错误"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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