Application Domain and Outlook.Exe.Config

  • Thread starter Thread starter Suman Grandhi via OfficeKB.com
  • Start date Start date
S

Suman Grandhi via OfficeKB.com

I am using Web Services Extensions 2.0 (wse) to create an Outlook Addin
that will sync appointments, and contacts via a web service. WSE uses that
configuration file Outlook.exe.config which must be placed into
C:\Program Files\Microsoft Office\OFFICE11\

I am concerned that this may be an issue. I was wondering how to make wse
use another configuration file that can be stored in a separate folder (C:\
Program Files\MyNetworkSync\..) outside of the outlook folder.

I tried looking into App Domains, but I can change the configuration file
in the GetCurrentDomain properly. SOmeone also suggested Com Shims?

Any ideas on how to do this?
 
clarification: i can change the Configuration File property, but I don't
know how to force WSE to use it.

AppDomain myDomain = AppDomain.CreateDomain("haha");
myDomain.BaseDirectory = "C:\Program Files\MyNetworkSync";
myDomain.SetupInformation.ConfigurationFile = "app.config";
 
Back
Top