ELMAH:你能不能将它设置为仅远程电子邮件错误? [英] ELMAH: Can you set it up to email errors only remotely?

查看:124
本文介绍了ELMAH:你能不能将它设置为仅远程电子邮件错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本地调试我的解决方案,我想不会收到ELMAH错误电子邮件。我只希望接受他们当应用程序在远程机器上托管。这可能吗?

While debugging my solution locally, I would like to not receive ELMAH error emails. I'd only like to receive them when the application is hosted on a remote machine. Is this possible?

推荐答案

我发现了一个解决方案,就是使用与配置VS 2010转换,我从我的基地web.config中删除标记,然后将它添加到我的Web.Qa.配置和Web.Release.Config与变换标签。当我发布,它允许远程机器发送这些电子邮件,而他们是在本地pssed苏$ P $。我最终会走这条路,但我会让你的答案得到一些更多upvotes并将其标记为基于答案。

I found a solution which is to use config transforms with VS 2010. I remove the tag from my base web.config then added it to my Web.Qa.Config and Web.Release.Config with transform tags. When I publish, it allows the remote machines to send out the emails while they are supressed locally. I will end up going this route, but I will let your answer get a few more upvotes and mark it as answer based on that.

这篇关于ELMAH:你能不能将它设置为仅远程电子邮件错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆