我们在IIS7服务器上部署MVC应用程序时发现问题:任何路由导航都会出现404错误.我在网上发现可以通过将应用程序池管理的管道模式设置为集成来解决问题,但现在我们有例外:
Request is not available in this context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
Line 19:
Line 20: public override void SetActiveUser(Guid userOid) {
Line 21: FormsAuthentication.SignOut();
Line 22: HttpContext.Current.Items[Key] = userOid.ToString();
Line 23: FormsAuthentication.RedirectFromLoginPage(userOid.ToString(), true);
Run Code Online (Sandbox Code Playgroud)
有人有什么想法吗?
大家.有人可以在ASP MVC应用程序,最佳缓存架构等方面共享有关后端缓存和片段缓存的文章的链接.任何有用的建议也将非常受欢迎.