Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

CS 2.3 error "Unable to load DLL 'xxxxxx'"

$
0
0

CS 2.3 w/ Hotfix #1 installed on Windows Server 2008 R2.  VC 2.3 for VS 2013 w/ Hotfix #1 installed on Windows 7 PC.

We are trying to call a native COBOL DLL from an ASPX/C# program using:

[DllImport("WYP46P", EntryPoint = "WYP46P", SetLastError = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]

It worked on the PC from the VS IDE.  But from the server we get:

Unable to load DLL 'WYP46P': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

We've tried compiling the DLL as Console and 32-bit/64-bit/Any-PC, Dynamic Link with and without Binding, with and without System Programs.

"Frand" started a forum post "C# calling NE cobol" on 30 Oct 2015 for this exact same error but in Net Express.  That thread never was concluded/answered.

In our case the web application is executing under a "service account" that has admin rights to the hosting server, and the application and CS are installed on the same server.

What did we miss?


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>