how do I make my application read the application config instead of machine.config?

后端 未结 3 1618
滥情空心
滥情空心 2021-01-06 01:16

I have an word add in application created in c# which is accessing a web service and is perfectly working if installed outside Program Files folder. the weird thing is that

3条回答
  •  情深已故
    2021-01-06 02:03

    If you are using VSTO 4 SP1, then you may be running into a problem described in this blog: http://msdnrss.thecoderblogs.com/2011/06/vsto-4-0-sp1-will-cause-a-vsto-addin-to-not-find-its-config-file/ The solution is to change your registry values for your office addin from:

    Manifest=”C:\Program Files\\WordAddIn.vsto|vstolocal”  
    

    to:

    Manifest=”file:///C:\Program Files\\WordAddIn.vsto|vstolocal“ 
    

提交回复
热议问题