简体   繁体   English

获取内部服务器错误500

[英]Getting Internal Server Error 500

is I'm Getting generic internal server error 500 while trying to access my Asp.net(4.5) Start page(login.aspx) 尝试访问我的Asp.net(4.5)起始页(login.aspx)时出现通用内部服务器错误500

The reason is the following code cause the error 原因是以下代码导致错误

<rewrite>
            <rules>
                <rule name="ff">
                    <match url="supportedhousing/login.aspx" />
                    <action type="Rewrite" url="supportedhousing/" />
                </rule>
            </rules>
        </rewrite>

If I remove above code no error. 如果我删除上面的代码没有错误。

This question is NOT about above code. 这个问题与上面的代码无关。 Question is how I can see the real error message. 问题是我如何才能看到真正的错误消息。

I tried the following: 我尝试了以下方法:

 <system.web>
        <customErrors mode="Off"> </customErrors>
     <compilation debug="true" targetFramework="4.5" />
</system.web>

and also 并且

 <system.webServer>
   <httpErrors errorMode="Detailed" />
    <asp scriptErrorSentToBrowser="true"/>
 </system.webServer>

Still I'm getting same generic error internal server error 500. 我仍然收到相同的一般错误,内部服务器错误500。

I checked Event logs but no error there. 我检查了事件日志,但那里没有错误。

Interestingly If I try to browse the page directly on web server I get error 500.19 but that is also cryptic. 有趣的是,如果我尝试直接在Web服务器上浏览页面,则会收到错误500.19,但这也很神秘。

There is a lot of problem like this. 这样有很多问题。 There is no error log. 没有错误日志。 Did you install iis rewrite module? 您是否安装了iis重写模块? Also this config not working in iis express for debuging. 另外,此配置在iis express中无法进行调试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM