Reputation: 41
I am trying to build a C# program with Visual Studio to use the ALM OTA API. I keep on having problems with the TDAPIOLELib library though, and I can't seem to find the reason why. I get the following error:
'dotnet.exe' (CoreCLR: clrhost): Loaded 'c:\users\[...]\source\repos\ALM API 2\ALM API 2\bin\Debug\netcoreapp2.0\Interop.TDAPIOLELib.dll'. Module was built without symbols.
An unhandled exception of type 'System.MissingMethodException' occurred in Unknown Module.
Method not found: 'TDAPIOLELib.TDConnection
I installed the "HP ALM Connectivity" and I did the "Register HP ALM" and the "Register HP ALM Site Administration".
In my project, I have a reference to the OTAClient.dll and Interop.TDAPIOLELib.dll withing the Debug folder, so that should be fine... Perhaps is it related to the "Module was built without symbols." part?
I also read somewhere that it could be related to the fact that the library is 32bit, so I change the Debug to x86, but then "dotnet has stopped working" and I get the following:
'dotnet.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.6\System.Private.CoreLib.dll'. Symbols loaded.
The program '[18248] dotnet.exe: Program Trace' has exited with code 0 (0x0).
The program '[18248] dotnet.exe' has exited with code -532462766 (0xe0434352).
Any idea on what I am missing?
Thanks.
Upvotes: 1
Views: 1869
Reputation: 41
I finally solved the problem. It looks like .NET Core was not only not advisable but just wrong. I was using a .NET Core project, but the OTAClient.dll is assembled for .NET Framework 4.0. I created a Framework project and it worked.
Anyways, thanks for your help, @Hans Passant
Upvotes: 2