收到“该页面无法显示” (操作已取消)重定向到另一个页面时出错
我们在装有 Windows Server 2003 R2 (Service Pack 2) 的服务器上运行 ASP.Net (1.1)。我们有一个应用程序(http://newserver.yourdomain.com/someapp),它执行一个相对基本的过程,即获取用户输入的输入并将数据填充到数据库中。如果 INSERT/UPDATE 出现问题,TRY...CATCH 块将捕获错误并将用户重定向到集中式“错误处理程序”应用程序 (http://newserver.yourdomain.com/ErrorHandler),该应用程序显示更加用户友好的错误屏幕并记录所有相关信息。错误处理程序驻留在同一服务器上并运行 ASP.Net (1.1)。
此方法已运行多年,但我们正在升级服务器并将所有相同的应用程序从旧服务器 (http://oldserver.yourdomain.com) 复制到新服务器。由于某种原因,现在当应用程序尝试将用户重定向到错误处理程序(通过 Response.Redirect)时,我们遇到了“页面无法显示”错误(又名“操作取消”错误)。我认为这是一个配置设置,但我想不出它可能是什么。
更奇怪的是,这种情况发生在 IE6 和 IE7 中,但在 Chrome 12 中不会。此外,我们可以直接导航错误处理程序 URL,不会出现问题。问题似乎集中在需要重定向到该位置。
另外,如果我将旧服务器(http://oldserver.yourdomain.com)设置为指向新的错误处理程序(http://newserver.yourdomain.com/ErrorHandler),它工作正常。重定向似乎只是这个新服务器上的问题。
您能想到可能存在什么问题吗?
We're running ASP.Net (1.1) on a server with Windows Server 2003 R2 (Service Pack 2). We have an application (http://newserver.yourdomain.com/someapp) that performs a relatively basic process of taking the user-entered input and populates the data into the database. If there is a problem with the INSERT/UPDATE, a TRY...CATCH block will trap the error and redirect the user to a centralized "Error Handler" application (http://newserver.yourdomain.com/ErrorHandler) that displays a more user-friendly error screen and log all the relevant information. The Error Handler resides on the same server and runs ASP.Net (1.1) as well.
This has been working for years, but we're upgrading the servers and replicating all the same applications from the old server (http://oldserver.yourdomain.com) to the new server. For some reason, now when the application is attempting to redirect the user to the Error handler (via Response.Redirect), we're running into a "The page cannot be displayed" error (aka "Action Cancelled" error). I assume it's a configuration setting, but I can't think of what it might be.
To make things stranger, this happens in IE6 and IE7, but not in Chrome 12. Also, we can avigate directly the Error Handler URL without a problem. The issue seems to center around the need to redirect to that location.
Also, if I set up the old server (http://oldserver.yourdomain.com) to point to the new Error Handler (http://newserver.yourdomain.com/ErrorHandler), it works fine. The redirection seems to only be an issue on this new server.
Can you think of what the issue(s) might be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论