Can you check what FULLPATH("wwipstuff.dll") and FULLPATH("wwdotnetbridge.dll") are? Are these valid and the files can be found?
Where are these? Is wwDotnetBridge.dll on a network share - there are configuration issues with that.
Done.
In Load()
*** Load by filename - assumes the wwDotNetBridge.dll is in the Fox path
DECLARE Integer ClrCreateInstanceFrom IN WWC_CLR_HOSTDLL string, string, string@, integer@
lcError = SPACE(2048)
lnSize = 0
lnDispHandle = ClrCreateInstanceFrom(FULLPATH("wwDotNetBridge.dll"),;
"Westwind.WebConnection.wwDotNetBridge",@lcError,@lnSize)
Here I receive lnDispHandle=-1 then no instantiation of wwDotNetBridge.dll. The Dll is not in FoxPro directory, but you use FULLPATH the it should be ok.
The control return to wwDotNetBridge.prg to the row I have sent to you with this.cErrorMsg=""
Marco
Can you step into the Load() please and see what's happening in there and where it's failing and returning from?
Did you get an error message?
+++ Rick --
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