今天,我们试图把一个ASP.NET应用程序我帮助开发的又一生产机器。但是,这一次,我们有一个非常奇怪的错误。
Today we tried to put an ASP.NET application I helped to develop on yet another production machine. But this time we got a very weird error.
首先,从所有的ASP.NET页面,只为Login.aspx是工作。其余的只显示黑屏时,他们应该重定向到的Login.aspx。 HTTP响应是200,但没有任何内容。
First of all, from all the ASP.NET pages, only Login.aspx was working. The rest just show a blank screen when they should have redirected to Login.aspx. The HTTP response is 200, but no content.
更糟糕的是 - 当我尝试输入一些不存在的ASPX页面的地址,我也得到HTTP 200!或者,当我在一些现有的ASPX页面code。输入胡言乱语(这应该是没有登录访问),我也得到HTTP 200。
Even worse - when I try to enter the address of some inexistent ASPX page, I also get HTTP 200! Or, when I enter gibberish in some existing ASPX page code (which should have been accessible without login) I also get HTTP 200.
如果我输入一些不存在的资源(如asdasd.jpg)的名字,我得到预期的404。
If I enter the name of some inexistent resource (like asdasd.jpg), I get the expected 404.
到登录页面重定向在Global.asax中手工编写。这是因为应用程序需要使用验证的一些其他方法一样,所以我不能只使用窗体身份验证。我会怀疑Global.asax中失败,如果不是因为工作的登录页面。
The redirect to login page is written manually in Global.asax. That's because the application has to use some alternate methods of authentication as well, so I can't just use Forms Authentication. I would suspect that Global.asax is failing, if not for the working Login page.
值得注意的事实是也,这台机器既是域控制器,并在其上安装了SharePoint。虽然在相关网站列在SharePoint的例外列表中。
Noteworthy facts are also that this machine is both a Domain Controller and has SharePoint installed on it. Although the website in question is listed in SharePoint's exception list.
推荐答案我会检查以下内容:
更多推荐
ASP.NET不见了FUBAR生产机器上
发布评论