Error opening documents in 2011

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Sometimes when opening documents in Inventor 2011 I get this error:
[2904] Return argument has an invalid type.
[2904] at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
[2904] at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
[2904] at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
[2904] at Inventor.Documents.Open(String FullDocumentName, Boolean OpenVisible)
I tried opening one of these documents myself from Inventor application and it opens successfully. After that Inventor does not throw the above error in api even for other files.
Thanks