"The invoked member is not supported in a dynamic assembly."

"The invoked member is not supported in a dynamic assembly."

StruSoft_Iwona
Contributor Contributor
1,705 Views
1 Reply
Message 1 of 2

"The invoked member is not supported in a dynamic assembly."

StruSoft_Iwona
Contributor
Contributor

Hi guys!

I have a perfectly working addin for Revit 2016. I started to make a new version for Revit 2017. I copied the new dll-s, I rewrote the obsolete method calls, and I set the .NET version to 4.5.2. The solution is compiled without problems. I want to launch my addin with the new Revit 2017 and I always get exceptions from mscorlib and after that the addin is not shown in Revit's menu. Do you have any idea why is this happens?

mscorlib.jpg

 

mscorlib2.jpg

0 Likes
1,706 Views
1 Reply
Reply (1)
Message 2 of 2

Mustafa.Salaheldin
Collaborator
Collaborator

Try to enable the unsafe debuging mode from Tools -> Options in VS

 

Unmanaged Code.PNG


¯\_(ツ)_/¯
Let it work like a charm.

Mustafa Salaheldin


EESignature




Digital Integration Manager, DuPod

Facebook | Twitter | LinkedIn

0 Likes