Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Error intitializing DotNetDelegate (2 replies)

$
0
0
Hi,

I'm trying to deploy some code that I have working on my local dev machine but when I run it on the production server. I get this error:

Error at line 24 of Global Procedure GP_MagTekOpenDevice process.
DotNetDelegate function called.
Unable to create WL.CWLDelegate_void_OnCardRequestCompleteEvent_string> object (C:\My Projects\Tourcube22 - Clean\Exe\Tourcube\Tourcube.dll assembly)
Unable to open E:\TourcubeRoot\Heritage\EXE\Tourcube.dll assembly

Error returned by .NET Framework:
Could not load file or assembly 'file:///E:\TourcubeRoot\Heritage\EXE\Tourcube.dll' or one of its dependencies. The system cannot find the file specified.
Unable to open <Tourcube> assembly

If you look at the bolded section windev is trying for some reason to use the local path from my dev machine to create the DotNetDelegate.

Here is code that intitializes the delegate


// declare delegate

CardRequestCompleted is OnCardRequestCompleteEvent dynamic
CardRequestCompleted = DotNetDelegate(GP_MyRequestCompleted,"OnCardRequestCompleteEvent")

//register delegate

clMagtek.add_onCardRequestComplete(CardRequestCompleted)



Any idea what I'm doing wrong? How to get around this?

Thanks!

Viewing all articles
Browse latest Browse all 1914

Trending Articles



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