AppDomain.CurrentDomain.SetupInformation.ConfigurationFile无法正常工作

时间:2012-03-28 06:46:10

标签: c# .net ms-word

我有一个单词加载项,我使用AppDomain.CurrentDomain.SetupInformation.ConfigurationFile来获取配置文件。

上述API给出的结果与.net 1.1和.net 2.0不同,这给我带来了问题。

知道为什么会这样吗?

1 个答案:

答案 0 :(得分:1)

你也应该尝试

ConfigurationManager.OpenExeConfiguration( ConfigurationUserLevel.None ).FilePath;

查看问题What is the difference between using AppDomain and ConfigurationManager when getting the path to a configuration file?的回复。

相关问题