部署后,登录控制停止工作
在我的开发环境中我可以很好地注册和登录。登录或注册后我会进行重定向。部署后,我注意到注册仍然有效,但页面会刷新。更奇怪的是,当我尝试登录时,它也会刷新。
所以基本上,一切正常 - 用户仍然可以注册,应用程序可以找到数据库,我可以查看公共页面等。仅仅通过登录(或注册)页面是行不通的。没有重定向,只是刷新...
我在 IIS 6.0、SQL Server 2008、asp.net 4.0 中运行。我使用 asp.net 提供的成员身份和角色。
In my development environment I can register and login just fine. After loging in or registering I do a redirect. Once deployed I noticed that the registering still works, but the page refreshes. Stranger still is the fact that when I try to log in, it also refreshes.
So basically, everything works - users still can register, the application can find the database, I can view public pages, etc. Just getting past the login (or register) page is not working. No redirect, just a refresh...
I run in IIS 6.0, SQL Server 2008, asp.net 4.0. I use membership and roles provided by asp.net.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有更多信息,我最好的猜测是 web.config 问题。确保将 defaultUrl 属性设置为 forms 元素 中的默认页面名称web.config。
Without more information, my best guess is a web.config problem. Make sure defaultUrl attribute set to your default page's name in the forms element of the web.config.