ASP.NET不见了FUBAR生产机​​器上

编程入门 行业动态 更新时间:2024-10-26 04:24:16
本文介绍了ASP.NET不见了FUBAR生产机​​器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

今天,我们试图把一个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.

推荐答案

我会检查以下内容:

  • 是一个虚拟应用程序中的应用程序或其自己的网站,而不是只是一个虚拟目录?
  • 应用程序是否有它自己的应用程序池?如果它不那么是应用在不同的.NET版本的共享应用程序池。
  • 是应用程序的.NET版本正确的? 1.1或2.0?
  • 请在文件系统中的文件具有正确的权限通过IIS来访问?
  • 您是否执行IIS重置?
  • 创建您的文件夹内的一个独立的页面Test.aspx文件,只是显示的日期/时间,并检查它的作品。
  • 请这单Test.aspx的页面执行异常(如被零除),看看结果是什么。
  • 更多推荐

    ASP.NET不见了FUBAR生产机​​器上

    本文发布于:2023-11-16 18:53:27,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1606916.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:不见了   器上   ASP   NET   FUBAR

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!