Rebuild as last resort

Autodesk.Inventor.Interop.dll is the essential Primary Interop Assembly (PIA) that acts as a bridge between .NET-based applications (C#, VB.NET) and the Autodesk Inventor COM API Technical Review Core Purpose

: It is a best practice to set "Embed Interop Types" to True in the property window. This allows your application to run on different versions of Inventor without needing the exact DLL version on the user's machine.

System.Runtime.InteropServices.Marshal.ReleaseComObject(partDoc); GC.Collect(); GC.WaitForPendingFinalizers();