- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all!
Has anyone ever faced similar issue? Add-in fails to load certain type and TypeLoadException is thrown.
What makes this particular error quite strange is the fact that according to the exception details, the type is tried to be loaded from totally wrong assembly.
It says like this:
Could not load type 'namespaceXXX.ClassXXX' from assembly 'Autodesk.Bcg, Version=1.7.3.0, Culture=neutral, PublicKeyToken=d672471c03b2c408'
...and I can assure you that Autodesk.Bcg is not the assembly where it should find the type.
Also within same journal, a following error is logged:
System.TypeLoadException exception(Could not load type 'REX.ApplicationServices.RevitApplicationService' from assembly 'Autodesk.Bcg, Version=1.7.3.0, Culture=neutral, PublicKeyToken=d672471c03b2c408'.) was thrown from a handler of ApplicationInitialized event. The API event handler was registered by application AREXRevitStart (c0566ed7-4309-4082-b3ba-ea6b7b4d292a). Changes made by this handler are going to be discarded.
So something else also seems to be failing because of similar reason.
I'm suspecting that some 3rd party add-in has changed something and causing the behaviour. For example the Revit config file contains something related to Microsoft.Practices.Unity assemblies...not sure whether it has some effects.
This doesn't happen in my own machine, so that I could reproduce and test stuff...unfortunatelly.
Any ideas?
Solved! Go to Solution.