
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I use to call the revit api from external application and was working around 2 years before but if I use the same call its failing .
Exception is .....
System.BadImageFormatException was unhandled
FileName=RevitAPIUI.dll
FusionLog=""
HResult=-2147023898
Message=Could not load file or assembly 'RevitAPIUI.dll' or one of its dependencies. Invalid access to memory location. (Exception from HRESULT: 0x800703E6)
Source=COMPAS_BIM
StackTrace:
at COMPAS_BIM.Drawing3D.Genearate3DDrawings()
at COMPAS_BIM_Client.Program.Main(String[] args) in D:\Revit\COMPAS_BIM_Client\Program.cs:line 15
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Solved! Go to Solution.