<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>18 Oct 2017 19:20:00 Z</lastBuildDate><pubDate>17 Oct 2017 23:07:00 Z</pubDate><description>Hi,&#13;
&#13;
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:&#13;
&#13;
Error at line 24 of Global Procedure GP_MagTekOpenDevice process.&#13;
DotNetDelegate function called.&#13;
Unable to create WL.CWLDelegate_void_OnCardRequestCompleteEvent_string&gt; object (C:\My Projects\Tourcube22 - Clean\Exe\Tourcube\Tourcube.dll assembly)&#13;
Unable to open E:\TourcubeRoot\Heritage\EXE\Tourcube.dll assembly&#13;
Error returned by .NET Framework:&#13;
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.&#13;
Unable to open assembly&#13;
&#13;
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.&#13;
&#13;
Here is code that intitializes the delegate&#13;
&#13;
&#13;
// declare delegate&#13;
&#13;
CardRequestCompleted is OnCardRequestCompleteEvent dynamic&#13;
CardRequestCompleted = DotNetDelegate(GP_MyRequestCompleted,"OnCardRequestCompleteEvent")&#13;
&#13;
//register delegate&#13;
&#13;
clMagtek.add_onCardRequestComplete(CardRequestCompleted)&#13;
&#13;
&#13;
Any idea what I'm doing wrong? How to get around this?&#13;
&#13;
Thanks!</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate/read.awp</link><title>Error intitializing DotNetDelegate</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate-62985/read.awp</comments><pubDate>18 Oct 2017 19:20:00 Z</pubDate><description>Thanks Arie, your suggestion was very helpful and I was able to get my code working but I do believe there is a bug in windev an…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate-62985/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate-62985/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate/read.awp">Error intitializing DotNetDelegate</source><title>Re: Error intitializing DotNetDelegate</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate-62979/read.awp</comments><pubDate>18 Oct 2017 09:47:00 Z</pubDate><description>Steve,&#13;
&#13;
I have seen this error when the version of .NET on the target machine differs from the one the assembly is compiled fo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate-62979/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate-62979/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate/read.awp">Error intitializing DotNetDelegate</source><title>Re: Error intitializing DotNetDelegate</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate-62977/read.awp</comments><pubDate>18 Oct 2017 01:39:00 Z</pubDate><description>All my DLL's are in the EXE directory on the production server and I can run the sample code for the device I am trying to commu…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate-62977/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate-62977/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62974-error-intitializing-dotnetdelegate/read.awp">Error intitializing DotNetDelegate</source><title>Re: Error intitializing DotNetDelegate</title></item></channel></rss>
