Could not load file or assembly for my plugin

Could not load file or assembly for my plugin

floretti
Advocate Advocate
4,382 Views
5 Replies
Message 1 of 6

Could not load file or assembly for my plugin

floretti
Advocate
Advocate

First of all, let me start by saying that I did a search for similar issues and despite finding some (list below), they were slightly different to my case, hence my post.

 

https://forums.autodesk.com/t5/revit-api-forum/could-not-load-file-or-assembly-system-text-json/m-p/...

https://forums.autodesk.com/t5/revit-api-forum/could-not-load-file-or-assembly-from-nuget-package/m-...

https://forums.autodesk.com/t5/revit-api-forum/fails-to-load-dependencies/m-p/8227232#M33045

 

So, in my case it seems my plugin's main DLL could not be loaded on our external drafters' computers however, they seem to work perfectly on our computers and even my personal computer (refer to error message below). Any ideas of what could be causing these?

 

Note I hid some specifics from the image below, hence the white patches.

 

DependencyError.png

0 Likes
Accepted solutions (1)
4,383 Views
5 Replies
Replies (5)
Message 2 of 6

jeremy_tammik
Alumni
Alumni

Maybe fuslogv will help explore the issue as described here?

 

https://thebuildingcoder.typepad.com/blog/2021/05/revitlookup-update-fuslogvw-and-override-joins.htm...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 6

floretti
Advocate
Advocate
Thanks, Jeremy. I'll definitely explore the option.
0 Likes
Message 4 of 6

floretti
Advocate
Advocate

It seems fuslogv needs to be run on the developer's computer (mine) however, the issue is not happening on my computer. Is it fair to say that fuslogv is unlikely to pick up anything wrong?

0 Likes
Message 5 of 6

RPTHOMAS108
Mentor
Mentor

Are they loading a dependant assembly from a remote network location? Tempting to do that for multiple PCs.

 

Ordinarily you would need to add something in Revit.exe.config for that.

 

That is the usual error associated with 0x80131515, it may be that they don't have code execution rights set for that user data location (Read & execute).

0 Likes
Message 6 of 6

floretti
Advocate
Advocate
Accepted solution

@RPTHOMAS108 Thanks for the answer but no, the files are local.

 

I found the solution though thanks to @RPTHOMAS108. I simply googled the error code and pretty much the first result had the answer in it.

 

The fact that the installation files were being sent to our external drafters meant that Windows was blocking the files from use by Revit. In order to fix that we had to right click on the files (or the zipped file containing all of them), go to Properties and tick the Unblock option.

 

FabioLorettiOliveira_0-1637795425904.png