Vault 2019 SDK build & runtime errors

Vault 2019 SDK build & runtime errors

Anonymous
Not applicable
653 Views
1 Reply
Message 1 of 2

Vault 2019 SDK build & runtime errors

Anonymous
Not applicable

I'm working on building an internal tool to help automate one of out internal processes using the Vault SDK. 

 

I prototyped my code using the VaultBrowserSample project. I started a new project using only the components I need.

 

When I try to build it into an .NET Core project I get the error when trying to run the login:

FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.

Autodesk.DataManagement.Client.Framework.Vault.Forms.Library..cctor()

TypeInitializationException: The type initializer for 'Autodesk.DataManagement.Client.Framework.Vault.Forms.Library' threw an exception.

Autodesk.DataManagement.Client.Framework.Vault.Forms.Library.Initialize()

I'm guessing this might have something to do with the mismatch between 32 & 64-bit?

 

I tried writing a simple console app that I could reference from my .NET Core project 

Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll

 

The error the app throws is 

"External component has thrown an exception."

"\r\nServer stack trace: \r\n at Autodesk.Connectivity.WebServices.ServiceBase`1.ServiceProxy`1.Invoke(MethodInfo methodInfo, Object[] args, TServiceInterface obj)\r\n at Autodesk.Connectivity.WebServices.RealProxy`1.Invoke(IMethodCallMessage methodCallMsg, MethodInfo methodInfo, InvokeDelegate invokeFunc)\r\n\r\nException rethrown at [0]: \r\n"

 

Any suggestions?

 

0 Likes
654 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

I eliminated my first issue..apparently you can't use the .dll's with a .net core project.

 

I narrowed down my issues on the second problem, but ended up switching to a .net web project

  • made sure I'm building the project as x64 and using the matching x64 .dlls
  • debugging on 64-bit version of IIS
  • added XCOPY for clmloader.dll
  • added app.config

still hitting the error

0 Likes