2013-06-12 35 views
3

我有一個安裝ELMAH nuGet包的ASP.NET MVC 4應用程序,託管在Windows Azure上。當我訪問/本地主機上的elmah一切正常,但在生產服務器上,我現在得到請求超時錯誤。它也曾用於生產服務器。我對應用程序所做的最後更改是刪除了MiniProfiler和Glimpse包,並在Windows Azure網站上添加了New Relic性能分析包和加載項。 Elmah仍會記錄所有錯誤(我可以看到生成的xml文件),但我不知道爲什麼我不能再查看錯誤日誌。有任何想法嗎?爲什麼elmah日誌返回生產服務器上的超時請求?

以下是完整的錯誤消息:

Server Error in '/' Application. 
Request timed out. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.HttpException: Request timed out. 

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace: 


[HttpException (0x80004005): Request timed out.] 

這裏是web.config中:

<sectionGroup name="elmah"> 
     <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" /> 
     <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /> 
     <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" /> 
     <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" /> 
    </sectionGroup> 

    ... 

    <appSettings> 
    <add key="elmah.mvc.disableHandler" value="false" /> 
    <add key="elmah.mvc.disableHandleErrorFilter" value="false" /> 
    <add key="elmah.mvc.requiresAuthentication" value="true" /> 
    <add key="elmah.mvc.allowedRoles" value="admin" /> 
    <add key="elmah.mvc.route" value="elmah" /> 
    </appSettings> 

    ... 

    <system.web> 
    <httpModules> 
     <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" /> 
     <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" /> 
     <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" /> 
    </httpModules> 
    </system.web> 

    ... 

    <system.webServer> 
    <modules> 
     <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" /> 
     <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" /> 
     <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" /> 
    </modules> 
    </system.webServer> 

... 

    <elmah> 
    <security allowRemoteAccess="true" /> 
    <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data/elmah" /> 
    </elmah> 

更新:現在,我開始一個502錯誤

502 - Web server received an invalid response while acting as a gateway or proxy server. 
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server. 
+0

我也一樣,我安裝了New Relic Profiler。也許有關? – roryWoods

+0

這裏同樣的問題。在Azure上的Elmah加上NewRelic。 – CDeutsch

回答

1

這在FTPing in和手動刪除因爲Azure無法爲我創建新文件夾。

uninstall-package NewRelic.Azure.WebSites 
相關問題