部署后,登录控制停止工作

发布于 2024-10-06 12:02:44 字数 244 浏览 0 评论 0原文

在我的开发环境中我可以很好地注册和登录。登录或注册后我会进行重定向。部署后,我注意到注册仍然有效,但页面会刷新。更奇怪的是,当我尝试登录时,它也会刷新。

所以基本上,一切正常 - 用户仍然可以注册,应用程序可以找到数据库,我可以查看公共页面等。仅仅通过登录(或注册)页面是行不通的。没有重定向,只是刷新...

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

池木 2024-10-13 12:02:44

如果没有更多信息,我最好的猜测是 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文