高手请进!!!!
大虾们:
我在Exception Management Application Block模块中设定配置文件来设置Customer Pulishers时,程序还是使用默认的即default Publisher,我在ExceptionManager.cs中设置断点查看,发现是:
if (ConfigurationSettings.GetConfig(EXCEPTIONMANAGEMENT_CONFIG_SECTION) == null)
{
// Publish the exception and additional information to the default publisher if no settings are present.
//使用默认的publisher
PublishToDefaultPublisher(exception, additionalInfo);
}
else
{
//进入在配制文件中设定的publisher
.....
}
程序没有找到配置文件或者是配置文件的格式有问题,我的配置文件名是appName.exe.config其中appName是应用程序名,放在应用程序目录下,对了这个程序是基于windows的,我怀疑是配置文件的放置不对,实际调用它的位置在Block模块中,尽管他们是在同一个进程中,请大虾们解答,谢谢!