It’s possibly a 32 – 64 bits mismatch.
If you’re running on a 64-bit OS, the Assembly RevitAPI may be compiled as 32-bit and your process as 64-bit or “Any CPU”.
Or, the RevitAPI is compiled as 64-bit and your process is compiled as 32-bit or “Any CPU” and running on a 32-bit OS.
More Related Contents:
- “An attempt was made to load a program with an incorrect format” even when the platforms are the same
- Difference between decimal, float and double in .NET?
- Why does WPF support binding to properties of an object, but not fields?
- What’s the difference between struct and class in .NET?
- How do you effectively model inheritance in a database?
- Why are multi-dimensional arrays in .NET slower than normal arrays?
- What’s the difference between ViewData and ViewBag?
- How to make modal dialog in WPF?
- Determine file type of an image
- How to get a Static property with Reflection
- Should I derive custom exceptions from Exception or ApplicationException in .NET?
- Questions every good .NET developer should be able to answer? [closed]
- Cannot attach the file *.mdf as database
- SqlDateTime.MinValue != DateTime.MinValue, why?
- How to get folder path for ClickOnce application
- memory allocation of value types and reference types in .net framework
- How to cancel a long-running Database operation?
- Identifying the client during a .NET remoting invocation
- ERROR : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
- What’s the difference between a dependency property and an attached property in WPF?
- Could not load type from assembly error
- Entity Framework 4 Single() vs First() vs FirstOrDefault()
- What are alternatives to generic collections for COM Interop?
- Is it bad practice to depend on the .NET automated garbage collector?
- How to fix DNX/DNVM in Visual Studio 2015?
- LinqToSql declare and instantiate DataContext best practice?
- Is “Code Access Security” of any real world use?
- Is it safe to call an RCW from a finalizer?
- Counting bits set in a .Net BitArray Class
- Is the CallerMemberName attribute in 4.5 “able to be faked”?