我正在使用 IIS Express 部署 MVC4 应用程序。该网站在同一台计算机上完美运行。但在 Lan 它给了我错误 401。
<authentication mode="Forms">
<forms loginUrl="~/" slidingExpiration="true" timeout="20">
</forms>
</authentication>
在家庭控制器
[HttpPost]
[AllowAnonymous]
public ActionResult Index(LoginModel model, string returnUrl)
{
}
我在管理员模式下从命令提示符启动 IIS 服务器。IIS 以错误响应请求401
。
有什么线索吗?