Error un register/unregister in visStudio2017

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

Error un register/unregister in visStudio2017
 
BerndH




Posts: 99
Joined: 2014-09-23
In my project, if I click register / unregister addinexpress I get an exception:

<LogEntry Date="2021-10-07 09:44:50" Severity="Exception" Source="AddinExpress.Projects.Common.Registrator.dteBuildEvents_OnBuildProjConfigDone" ProcessId="11632">
<Exception Type="System.Exception" Source="AddinExpress.Projects.Common.Registrator.dteBuildEvents_OnBuildProjConfigDone">
<Message>The 'RegisterAssembly' function failed.</Message>
<Exception Type="System.Reflection.TargetInvocationException" Source="mscorlib">
<Message>Ein Aufrufziel hat einen Ausnahmefehler verursacht.</Message>
<Exception Type="System.ArgumentException" Source="mscorlib">
<Message>Der Pfad hat ein ung?ltiges Format.</Message>
<StackTrace> bei System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
bei System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
...

I deinstalled and installed add-in-express new. Can you help me ?
Posted 07 Oct, 2021 03:19:26 Top
Andrei Smolin


Add-in Express team


Posts: 18791
Joined: 2006-05-11
Hello Bernd,

Is it possible that there?Â?Ð?és an initializer of a complex-type variable declared on the class level in the add-in module? If so, I suggest that you 1) delete such all such initializers, and 2) initialize these variables in the AddinStartupComplete or OnRibbonBeforeCreate event of the add-in module (whatever occurs first).

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 07 Oct, 2021 08:07:38 Top
BerndH




Posts: 99
Joined: 2014-09-23
Thanks,

this tip helped me

:-)
Posted 07 Oct, 2021 08:27:16 Top
Andrei Smolin


Add-in Express team


Posts: 18791
Joined: 2006-05-11
It's great!

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 08 Oct, 2021 02:42:33 Top