« Running Language Code and More Exporters | Main | Creating an Opening »

July 11, 2012

Comments

Jeremy,
As usual very useful blog post and congratulations for your 800th post. Well done! Thanks very much for taking time and sharing your knowledge with the community.

:-)

Hi Jeremy,

I am trying to create a dll that contains various things like license checking ie. things non specific to Revit.

When I reference the dll into my Revit app and start it up it always fails with "could not load file or assembly etc.". I have tried numerous approaches with copy local true and false, setting full paths, etc. I'm out of ideas.

Do you have any suggestions about what I may be doing wrong or what I need to do to make sure it will load?

Dear Andreas,

Nope, sorry, nothing comes to mind off-hand. Google? :-)

Of course you must check the assembly dependencies.

Ah, I think I know what I would try: open your assembly in Reflector. It should complain in exactly the same way as Revit does, once you have loaded and opened RevitAPI.dll and RevitAPIUI.dll in it.

http://thebuildingcoder.typepad.com/blog/2010/02/kean-on-reflector.html

http://thebuildingcoder.typepad.com/blog/2010/11/project-vasari-api.html

Good luck!

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource