Unable to Register Addin

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

Unable to Register Addin
MSBuild.exe locks Addin.dll 
Sebastian Bartsch




Posts: 2
Joined: 2015-03-02
Hi guys,

I wrote an Add-in which works fine until today, now I got the following error message from Addin-Express Registration (VS2013 Contextmenu "Register ADX")
I removed some sensitive information which I do not want in a public place.



Detailed technical information follows: 
---
(Inner Exception)
Date and Time:         19.03.2015 15:03:09
Machine Name:          DEV76
IP Address:            
Current User:          

Application Domain:    DefaultDomain
Assembly Codebase:     file:///C:/Program Files (x86)/Add-in Express/Add-in Express for .NET/Bin/Packages/VS2005/AddinExpress.Wizard.dll
Assembly Full Name:    AddinExpress.Wizard, Version=7.6.4084.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version:      7.6.4084.2005

Exception Source:      mscorlib
Exception Type:        System.IO.IOException
Exception Message:     Der Prozess kann nicht auf die Datei "D:projectinMailConnect.dll" zugreifen, da sie von einem anderen Prozess verwendet wird.
Exception Target Site: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

---- Stack Trace ----

Application Domain:    DefaultDomain
Assembly Codebase:     file:///C:/Program Files (x86)/Add-in Express/Add-in Express for .NET/Bin/Packages/VS2005/AddinExpress.Wizard.dll
Assembly Full Name:    AddinExpress.Wizard, Version=7.6.4084.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version:      7.6.4084.2005

Exception Source:      AddinExpress.Wizard
Exception Type:        System.Exception
Exception Message:     The 'RegisterAssembly' function failed.
Exception Target Site: DoAfterBuild

---- Stack Trace ----
   AddinExpress.Projects.Common.Registrator.DoAfterBuild(scope As vsBuildScope, action As vsBuildAction)
       AddinExpress.Wizard.dll: N 0669 (0x29D) IL 


The exception says: The file is used by another process. I can commit this. It is the MSBuild.exe started by VS2013. After killing the process I can build the solution again, but not Register ADX project. The error message above appears again.

I already did some research why MSBuild.exe keeps open and tried some workarounds, but nothing works. I also tested with another project, this one has no issues. Using SysInternals ProcessExplorer I could see how several applications are started and ended to complete the build process. For the ADX project the MSBuild.exe will stay open.

I don't know if this problem is known or related to ADX, but I got it only with it. Hopefully somebody has an idea.
Posted 19 Mar, 2015 09:22:21 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Sebastian,

Please check https://www.add-in-express.com/forum/read.php?FID=5&TID=11283.


Andrei Smolin
Add-in Express Team Leader
Posted 19 Mar, 2015 09:39:40 Top