Configuration system failed to initialize because two addins are using the same file location

Add-in Express™ Support Service
That's what is more important than anything else

Configuration system failed to initialize because two addins are using the same file location
I can only have one add-in registered at a time 
Mike VE




Posts: 168
Joined: 2007-09-09
Hi

I have four add-ins in fairly continuous development. Recently I have developed a problem. If one add-in is registered it works OK but as soon as I register a second it gives a "Configuration system failed to initialize" the first time it calls on a user setting. It turns out that both add-ins are trying to use the same file path for their user.config - C:\Users\Mike\AppData\Local\Microsoft_Corporation\C__VS_Projects_Outlook_Ad_Path_n1uz4of1wqm1raru2xbg1ix44vfujobn.

The only way to solve it is to delete the settings folder, unregister the add-ins and then re-register the one I want to work on.

For various reasons I am using two, sometimes three versions of Visual Studio.

Is this something to do with the way ADX is registering the add-ins?
Posted 22 Apr, 2015 03:05:11 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Mike,

Their user.config? Are you talking about .config files deployed with your add-ins? If so it seems they are installed to the same folder. Can these be two versions of the same add-in? Do you deploy your add-ins via ClickOnce?


Andrei Smolin
Add-in Express Team Leader
Posted 22 Apr, 2015 04:43:19 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Hi Andrie

I'm talking about the user.config that stores the user's settings as defined in MySettings (VB). The file is not created until the user sets a value that is different to the app.congig values. The problem is on my dev machine rather than a deployed customer machine. No I do not use ClickOnce. I realise it may not be an ADX problem but thought it might be related to the way ADX registers the addins.

They are completely different add-ins (though they do share a project that contains utilities).
Posted 22 Apr, 2015 04:53:04 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Mike,

Basing on the information provided at https://msdn.microsoft.com/en-us/library/ms379611%28v=vs.80%29.aspx, I suppose you use the same .snk file for the add-ins. If so, try using separate .SNK files.


Andrei Smolin
Add-in Express Team Leader
Posted 22 Apr, 2015 07:50:19 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Hi Andrei

Each add-in has its own .SNK file.
Posted 23 Apr, 2015 02:45:18 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Posted 23 Apr, 2015 02:55:08 Top