[英]Configuring ELMAH in Machine.config - 404 on elmah.axd
I'm trying to get elmah up and running on my entire website.我正在尝试在我的整个网站上启动并运行 elmah。 I first configured it in the localhost website web.config using assembly references, as I put elmah in the gac, and made sure it all worked fine, and I get both an email and can access http://localhost/elmah.axd .
我首先使用程序集引用在 localhost 网站 web.config 中对其进行了配置,因为我将 elmah 放入 gac 中,并确保一切正常,我得到了 email 并且可以访问Z80791B3AE7002CB88C2467 。
Now, I copy all of the elmah sections of the config file to:现在,我将配置文件的所有 elmah 部分复制到:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config
And then I remove the web.config file of the website.然后我删除了网站的 web.config 文件。 Now when I go to localhost/elmah.axd I get a 404, but I also get the 404 in from elmah by mail?
现在,当我将 go 发送到 localhost/elmah.axd 时,我收到了 404,但我也通过邮件从 elmah 收到了 404?
What's wrong with the httphandler? httphandler 有什么问题? Or did I miss something?
还是我错过了什么?
The ELMAH HTTP handler configuration should be in the web.config
file. ELMAH HTTP 处理程序配置应在
web.config
文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.