<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>2 May 2019 11:09:35 Z</lastBuildDate><pubDate>13 May 2010 23:27:50 Z</pubDate><description>I'am testing WinDev 12 Express with .Net assemblies&#13;
&#13;
When I try to add a W-language eventhandler to a .Net event, compilation is OK but when I run the code, an error occurs on the add_Event call.&#13;
&#13;
THe error is very strange because it suggests that WinDev runtime tries to load a .Net assembly with the name of the application directory.&#13;
&#13;
Thanks for any suggestion.&#13;
&#13;
Wilfried&#13;
&#13;
The code:&#13;
&#13;
dlg is object VCmdCallbackEventHandler dynamic = DotNetDelegate("VCmdCallback", "VivaUtils.VCmdCallbackEventHandler")&#13;
cb is object VCmdCallback dynamic = new VCmdCallback()&#13;
cb:add_Event(dlg)&#13;
&#13;
The error&#13;
&#13;
Error at line 52 of Click Days process.&#13;
Unable to create &lt;CWLDelegate_void_VCmdCallbackEventHandler_object_VIVA03_D_VI_TagList&gt; object (&lt;&gt; assembly)&#13;
Unable to open &lt;F:\WinDev Projects\EXPRESS_My_Project\Exe\&gt; assembly&#13;
Error returned by .NET Framework: &#13;
System.IO.FileNotFoundException: Could not load file or assembly 'file:///F:\WinDev Projects\EXPRESS_My_Project\Exe\' or one of its dependencies. The system cannot find the file specified.&#13;
File name: 'file:///F:\WinDev Projects\EXPRESS_My_Project\Exe\'&#13;
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)&#13;
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)&#13;
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#13;
   at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark&amp; stackMark)&#13;
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)&#13;
   at CDotNetLoader.vpiLoadAssembly(CDotNetLoader* , SByte* pszFileName, CXError* pclErreur)&#13;
&#13;
=== Pre-bind state information ===&#13;
LOG: User = DEMOS\User&#13;
LOG: Where-ref bind. Location = F:\WinDev Projects\EXPRESS_My_Project\Exe\&#13;
LOG: Appbase = file:///F:/WinDev 12 Express/Programs/&#13;
LOG: Initial PrivatePath = NULL&#13;
Calling assembly : (Unknown).&#13;
===&#13;
LOG: This bind starts in LoadFrom load context.&#13;
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().&#13;
LOG: No application configuration file found.&#13;
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&#13;
LOG: Attempting download of new URL file:///F:/WinDev Projects/EXPRESS_My_Project/Exe/.&#13;
ERR: Failed to complete setup of assembly (hr = 0x80070002). Probing terminated.&#13;
&#13;
&#13;
Technical Information&#13;
&#13;
Project : EXPRESS_test3&#13;
&#13;
Dump error of module &lt;WD120NET2.DLL&gt; &lt;12.00Be&gt;.&#13;
&#13;
- WL Call:&#13;
Processing &lt;EXPRESS_Window1.Days&gt;, line &lt;52&gt;, thread &lt;0&gt;&#13;
&#13;
- Level: fatal error (EL_FATAL)&#13;
&#13;
- Error Code: 200007&#13;
&#13;
- WD55 Error Code: 0&#13;
&#13;
- No system error code&#13;
&#13;
- No system error message&#13;
&#13;
- What happened?&#13;
Unable to create &lt;CWLDelegate_void_VCmdCallbackEventHandler_object_VIVA03_D_VI_TagList&gt; object (&lt;&gt; assembly)&#13;
Unable to open &lt;F:\WinDev Projects\EXPRESS_My_Project\Exe\&gt; assembly&#13;
Error returned by .NET Framework: &#13;
System.IO.FileNotFoundException: Could not load file or assembly 'file:///F:\WinDev Projects\EXPRESS_My_Project\Exe\' or one of its dependencies. The system cannot find the file specified.&#13;
File name: 'file:///F:\WinDev Projects\EXPRESS_My_Project\Exe\'&#13;
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)&#13;
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)&#13;
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#13;
   at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark&amp; stackMark)&#13;
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)&#13;
   at CDotNetLoader.vpiLoadAssembly(CDotNetLoader* , SByte* pszFileName, CXError* pclErreur)&#13;
&#13;
=== Pre-bind state information ===&#13;
LOG: User = DEMOS\User&#13;
LOG: Where-ref bind. Location = F:\WinDev Projects\EXPRESS_My_Project\Exe\&#13;
LOG: Appbase = file:///F:/WinDev 12 Express/Programs/&#13;
LOG: Initial PrivatePath = NULL&#13;
Calling assembly : (Unknown).&#13;
===&#13;
LOG: This bind starts in LoadFrom load context.&#13;
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().&#13;
LOG: No application configuration file found.&#13;
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.&#13;
LOG: Attempting download of new URL file:///F:/WinDev Projects/EXPRESS_My_Project/Exe/.&#13;
ERR: Failed to complete setup of assembly (hr = 0x80070002). Probing terminated.&#13;
&#13;
&#13;
- No debug information&#13;
&#13;
- Attached Information:&#13;
EIT_PILEWL :&#13;
Click Days (EXPRESS_Window1.Days), ligne 52&#13;
EIT_COMPOSANT :&#13;
&#13;
EIT_DATEHEURE : 13/05/2010 14:42:29&#13;
&#13;
- Identifier in .err: 200007&#13;
&#13;
&#13;
-------------------------------------- Sub-error #1 --------------------------------------&#13;
&#13;
Dump error of module &lt;WD120NET2.DLL&gt; &lt;12.00Be&gt;.&#13;
&#13;
- Level: fatal error (EL_FATAL)&#13;
&#13;
- Error Code: 200007&#13;
&#13;
- WD55 Error Code: 0&#13;
&#13;
- No system error code&#13;
&#13;
- No system error message&#13;
&#13;
- What happened?&#13;
Unable to open &lt;&gt; assembly&#13;
Error returned by .NET Framework: &#13;
System.ArgumentException: String cannot have zero length.&#13;
   at System.Reflection.AssemblyName..ctor(String assemblyName)&#13;
   at System.Reflection.Assembly.LoadWithPartialNameInternal(String partialName, Evidence securityEvidence, StackCrawlMark&amp; stackMark)&#13;
   at System.Reflection.Assembly.LoadWithPartialName(String partialName)&#13;
   at CDotNetLoader.vpiLoadAssemblyFromGAC(CDotNetLoader* , SByte* pszFileName, CXError* pclErreur)&#13;
&#13;
- No debug information&#13;
&#13;
- No attached information&#13;
&#13;
- Identifier in .err: 200007&#13;
&#13;
&#13;
&#13;
-------------------------------------- Sub-error #2 --------------------------------------&#13;
&#13;
Dump error of module &lt;WD120NET2.DLL&gt; &lt;12.00Be&gt;.&#13;
&#13;
- Level: fatal error (EL_FATAL)&#13;
&#13;
- Error Code: 200007&#13;
&#13;
- WD55 Error Code: 0&#13;
&#13;
- No system error code&#13;
&#13;
- No system error message&#13;
&#13;
- What happened?&#13;
Unable to open &lt;&gt; assembly&#13;
Error returned by .NET Framework: &#13;
System.ArgumentException: String cannot have zero length.&#13;
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)&#13;
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)&#13;
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark&amp; stackMark, Boolean forIntrospection)&#13;
   at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark&amp; stackMark)&#13;
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)&#13;
   at CDotNetLoader.vpiLoadAssemblyWithFullPath(CDotNetLoader* , SByte* pszFileName, CXError* pclErreur)&#13;
&#13;
- No debug information&#13;
&#13;
- No attached information&#13;
&#13;
- Identifier in .err: 200007&#13;
&#13;
&#13;
&#13;
-------------------------------------- Sub-error #3 --------------------------------------&#13;
&#13;
Dump error of module &lt;WD120NET2.DLL&gt; &lt;12.00Be&gt;.&#13;
&#13;
- Level: fatal error (EL_FATAL)&#13;
&#13;
- Error Code: 200007&#13;
&#13;
- WD55 Error Code: 0&#13;
&#13;
- No system error code&#13;
&#13;
- No system error message&#13;
&#13;
- What happened?&#13;
Unable to open &lt;&gt; assembly&#13;
Error returned by .NET Framework: &#13;
System.ArgumentException: String cannot have zero length.&#13;
   at System.Reflection.AssemblyName..ctor(String assemblyName)&#13;
   at System.Reflection.Assembly.LoadWithPartialNameInternal(String partialName, Evidence securityEvidence, StackCrawlMark&amp; stackMark)&#13;
   at System.Reflection.Assembly.LoadWithPartialName(String partialName)&#13;
   at CDotNetLoader.vpiLoadAssemblyFromGAC(CDotNetLoader* , SByte* pszFileName, CXError* pclErreur)&#13;
&#13;
- No debug information&#13;
&#13;
- No attached information&#13;
&#13;
- Identifier in .err: 200007</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate/read.awp</link><title>DotNetDelegate</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Rene HEUVEN</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-67042/read.awp</comments><pubDate>2 May 2019 11:09:35 Z</pubDate><description>Problem solved: In Visual Studio when creating a class library one should opt to create a .NET Framework Class Library - not .NE…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-67042/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-67042/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate/read.awp">DotNetDelegate</source><title>Re: DotNetDelegate</title></item><item><author>Rene HEUVEN</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-67041/read.awp</comments><pubDate>1 May 2019 12:26:14 Z</pubDate><description>I have the same problem using WinDev 22. &#13;
&#13;
MyDelegate = DotNetDelegate(Glb_MsSqlJournalNotifications.WL_OnJournalChanged, "WLC…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-67041/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-67041/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate/read.awp">DotNetDelegate</source><title>Re: DotNetDelegate</title></item><item><author>andrei</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-35652/read.awp</comments><pubDate>30 Jan 2012 14:29:23 Z</pubDate><description>One more observation:&#13;
- When the cleint configuration is generated a .dll library with the same name as the executable is also …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-35652/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-35652/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate/read.awp">DotNetDelegate</source><title>Re: DotNetDelegate</title></item><item><author>andrei</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-35651/read.awp</comments><pubDate>30 Jan 2012 14:22:35 Z</pubDate><description>Same problem here just that it happens only in the project configuration for a Windows Service, the normal client configuration …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-35651/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate-35651/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/25647-dotnetdelegate/read.awp">DotNetDelegate</source><title>Re: DotNetDelegate</title></item></channel></rss>
