Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: wwDotnetBridge not loaded

$
0
0
Re: wwDotnetBridge not loaded
West Wind Client Tools
Re: wwDotnetBridge not loaded
04/18/2012
01:47:11 PM
3HD0TJS5K Show this entire thread in new window
Gratar Image based on email address
From:
Marco Sommacal
To:
Attachments:
None
Rick,
I'm really sorry but I had to leave the office.
To answer your question: yes the fail is before and exactly when I try to create the object
loBridge=CREATEOBJECT("wwDotNetBridge","V4")
I used the debugger, wich shows up the wwDotNetBridge.prg (see below)
*** Fail creation if the object couldn't be created
IF ISNULL(this.Load())
ERROR "Unable to load wwDotNetBridge: " + this.cErrorMsg <--------
RETURN .F.
ENDIF

and highlights the error row. Unable to find wwDotNetBridge.dll?

Marco


Hmmm... Marco I'm not sure what might be happening. Can you step through the code and tell me exactly what's blowing up inside of wwDotNetBridge?

It's failing before you load your .NET assembly right, so this is happening before you get loBridge instantiated?

+++ Rick ---



I used Options to define search path and default directory path. wwIPStuff.dll and wwDotNetBridge.dll are both in the default directory of the proj. I checked .NET 4 is installed and precisely: Microsoft .NET Framework 4 Extended ver. 4.0.30319.
Also Microsoft .NET Framework 4 Client Profile is installed.
Marco


Are you sure that:


  • .NET 4.0 is loaded (since you're referencing .NET 4.0 runtime
  • wwIPStuff.dll and wwDotNetBridge.dll are in your FoxPro path

+++ Rick ---


I just downloaded the WWclient tools pck. to test it. I set up few lines prg (copying from docs):
#INCLUDE WCONNECT.H
CLEAR
*** Load libraries
DO wwDotNetBridge
*** Create instance and use .NET 4.0
LOCAL loBridge as wwDotNetBridge
loBridge=CREATEOBJECT("wwDotNetBridge","V4")
*** Load known assembly
? loBridge.LoadAssembly("PDFSignDll")
? loSign = loBridge.CreateInstance("PDFSign")
RETURN

When prg tryes to execute createobject an error is generated ""Unable to load wwDotNetBridge: " Simply that. What to do?

Marco








Viewing all articles
Browse latest Browse all 10393

Trending Articles