Questions tagged «form-authentication»

14
401未经授权:由于凭据无效而拒绝访问
我正在使用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对请求的响应为error 401。 有什么线索吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.