tags:

views:

86

answers:

2

Hi All,

I have built a simple word addin that interacts with a company intranet.

For some reason, I cant seem t get the addin to read appSettings from its config file.

Is there something fundamental that doesn't allow office addins to read config files like a normal .Net application?

cheers

A: 

In this case the config file needs to be associated with the winword.exe executable.

So for app settings to be read by an addin, even though the call to ConfigurationManager.AppSettings is in another dll, the setting must sit in winword.exe.config.

boz
Did it work for you? I have a Excel addin but my .config file named is based on the addin name and it works fine.
A9S6
A: 

I have a word addin and my config is the same as the dll for example somedAddin.dll.config