[英]Cannot login after I publish my asp.net web application in IIS7
I published it succesfully in IIS. 我在IIS中成功发布了它。 The problem is that this application run , but when I try to login , it remain in the same page , so I cant log in ,cant go inside my application.
问题是该应用程序正在运行,但是当我尝试登录时,它仍保留在同一页面上,因此我无法登录,无法进入我的应用程序。 It seems like the server redirect the browser in the same content page.
好像服务器在同一内容页面中重定向了浏览器。
What logic you have implemented in the Login Button.. ? 您在“登录”按钮中实现了什么逻辑?
Are you redirecting the same page after login ? 登录后是否要重定向同一页面?
Ensure you are not redirecting the non authenticated user in the login page PageLoad Method.. 确保您未在登录页面PageLoad方法中重定向未经身份验证的用户。
protected void LogIn(object o, EventArgs e)
{
if(validateCredentials())
{
Response.Redirect("Menu.aspx",false);
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.