没有做过OFFICE开发,不清楚。你看编译后,是否有对应的CONFIG文件一起?比如Application.DLL.Config

解决方案 »

  1.   

    编译后没有自动生成对应的config文件,我手动放进去也没有用
      

  2.   

    normally, add-in is an assembly, you cannot read configuration that way, but hey, it is an xml file, as long as you know the (relative) path of the file, you can read it through classes in System.Xml, or use someone's class library to read ithttp://staff.develop.com/woodring/dotnet/#AssemblySettings
      

  3.   

    解决了,如果做的是word 的插件,把配置文件命名为WINWORD.EXE.config放到Word的安装目录下就可以了,还是要谢谢大家