Could not load type from assembly

Could not load type from assembly

Anonymous
Not applicable
5,765 Views
9 Replies
Message 1 of 10

Could not load type from assembly

Anonymous
Not applicable

I am experiencing the following issue when debugging:

 

The problematic call:

 

ExternalDefinitonCreationOptions options = new ExternalDefinitonCreationOptions("test", Autodesk.Revit.DB.ParameterType.Number);

Throws the following error:

 

 

Could not load type 'Autodesk.Revit.DB.ExternalDefinitonCreationOptions' from assembly 'RevitAPI, Version=16.0.0.0, Culture=neutral, PublicKeyToken=null'.

 

0 Likes
Accepted solutions (3)
5,766 Views
9 Replies
Replies (9)
Message 2 of 10

jeremytammik
Autodesk
Autodesk
Accepted solution

Ensure that you have set Copy Local to false on the Revit API assemblies:

 

http://thebuildingcoder.typepad.com/blog/2011/08/set-copy-local-to-false.html

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 10

Anonymous
Not applicable

No did not help it.

 

Would it have something to do with a plugin thats using 2015 API, but im debugging it in 2016?

0 Likes
Message 4 of 10

Anonymous
Not applicable
Ok, so debugging this adding with Revit 2015 did not trigger the error. So this has to do with 2016... Any suggestions? Till this point everything in 2016 worked with the 2015 api
0 Likes
Message 6 of 10

Anonymous
Not applicable
Accepted solution
Message 7 of 10

jeremytammik
Autodesk
Autodesk

Oh, so trivial.

 

Sorry about that  🙂

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 8 of 10

Anonymous
Not applicable
😉

No problem thanks for all your awesome work regarding to blogs and information.

We chose not to keep BC since all our team are now working with 2016. Maybe from 2016 to 2017 we'll have to look into it. Thanks again.
0 Likes
Message 9 of 10

jeremytammik
Autodesk
Autodesk

BC = backwards compatibility?

 

Never heard that one before...

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 10 of 10

Anonymous
Not applicable
Correct. It's a pretty common term. So we all learned something today 😉
0 Likes