[英]Elmah not working on IIS7 server
I have Elmah running on my MVC 3 site, and have everything working on my local development machine. 我让Elmah在我的MVC 3网站上运行,并且让所有东西都在我的本地开发机器上运行。
However, now that I've moved my site to my production server, Elmah is not working. 但是,现在我已将我的网站移动到我的生产服务器,Elmah无法正常工作。 I am using the same SQL account (and connection string) on my live server as I'm using on my local machine.
我在我的实时服务器上使用相同的SQL帐户(和连接字符串),就像我在本地计算机上使用的那样。 The EF4 connection (same as Elmah) works just fine.
EF4连接(与Elmah相同)工作得很好。
I don't see anything in the Even Logs or in SQL Profiler. 我在偶数日志或SQL事件探查器中看不到任何内容。 I don't see any errors in the SQL logs either.
我也没有在SQL日志中看到任何错误。
Any ideas on what could be happening, or how I could troubleshoot this? 关于可能发生的事情的任何想法,或者我如何解决这个问题?
Thanks in advance. 提前致谢。
ELMAH is using a HttpModule to log errors. ELMAH正在使用HttpModule来记录错误。 For IIS6, HttpModules are registered under System.Web in the web.config file.
对于IIS6,HttpModules在web.config文件中的System.Web下注册。 However, for IIS7+, HttpModules should be registered under the system.webserver namespace.
但是,对于IIS7 +,HttpModules应该在system.webserver命名空间下注册。 The embedded development web server will use the IIS6 config.
嵌入式开发Web服务器将使用IIS6配置。
IIS6: IIS6:
<system.web>
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
</httpModules>
</system.web>
IIS7: IIS7:
<system.webServer>
<modules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
</modules>
</system.webServer>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.