Word addin does not read appSetting

I created a simple addin word that interacts with a corporate intranet.

For some reason, I cannot get addin to read appSettings from its configuration file.

Is there something fundamental that prevents office add-ons from reading configuration files, for example, a regular .Net application?

amuses

+5
source share
3 answers

In this case, the configuration file must be associated with the winword.exe executable file.

So, for application parameters that need to be read using addin, even if the call to ConfigurationManager.AppSettings is in a different dll, the parameter must be in the file winword.exe.config.

+1

:

https://connect.microsoft.com/VisualStudio/feedback/details/653444/visual-studio-sp1-or-specifically-vsto-sp1-issue-with-config-file-location

, :

, .vsto .manifest. , , "". , "" "[TARGETDIR] ExcelAddIn.vsto | vstolocal": http://msdn.microsoft.com/en-us/vsto/ff937654.aspx. URI Fast Path, . ":///[TARGETDIR] ExcelAddIn.vsto | vstolocal"

+3

addin, , dll, somedAddin.dll.config

+1

All Articles