Revit Add-in File Load Exception

Back from my vacation in Andalusia, and now moving full speed ahead towards

Autodesk University
,
my lecture and hands-on lab on the

Revit extensible storage API
and all the other exciting goodies there.

Meanwhile, here is one little issue that immediately arose with the

Revit String Search
utility
published last week:

Probably the most common problem that people keep running into with add-ins on Windows Vista, both in Revit and other environments, is the need to unblock the zip file.

If you are impatient, the

solution is easy and available
with no need to read any further.

If you are interested in other aspects, here goes with another take on this:

Zach Kron had an issue on some non-XP machines trying to run Daren Thomas’

RevitPythonShell
.

It was not installing properly and displaying the following message:

FileLoadException running RevitPythonTool

The error message says:

<

p style=”color:darkblue”>Revit cannot run the external application “RevitPythonShell”.
Contact the provider for assistance.
Information they provided to Revit about their identity: asdf.

<

p style=”color:darkblue”>System.IO.FileLoadException

<

p style=”color:darkblue”>Could not load file or assembly
‘file:///C:\addins\Daren Thomas\RevitPythonShell\RevitPythonShell.dll’
or one of its dependencies.
Operation is not supported (Exception from HRESULT: 0X80131515)

Zach figured out the solution, which has already been documented by Gregory Mertens of

mertens3d.com
in
the

hatch22-2012 installation guide
,
who in turn picked it up from joseguia in this

revitforum.org thread
:

The issue is due to the security option.
You can right click on RevitPythonShell.dll in Win 7 and select Properties > General to obtain access to the Unblock button for setting it:

Win 7 security option

Many thanks to Zach for pointing this out, and to Gregory for running into, solving, and providing the problem solution in the first place!
Hopefully this will be a helpful hint for anyone running into a similar issue installing some other Revit add-in.

We later discovered that

Kean Walmsley
also
provided a comprehensive explanation of this issue to

unblock ZIP files before installing Plugins of the Month
on
Autodesk Labs.


Comments

2 responses to “Revit Add-in File Load Exception”

  1. Wow I had this exact issue today which I thought was because the dll was located on the server (dev drive). Moved it to the c drive and was all ok. Going to try this tomorrow.

  2. Dear Nathan,
    Well, I’m glad I was able to reach you with my just-in-time blogging then :-)
    Good luck!
    Cheers, Jeremy.

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading