sorry, but version is ok ?
Marco
I downloaded wwclient.zip from your site on 17/04/2012.
The version of wwIPStuff.dll is 5.62.0.0 that is the same of wwDotNetBridge.dll.
Marco
Yeah, I'm just not sure why this isn't working for you.
The only thing I can think of is that you have a bad version of wwIPStuff.dll? What's the version of the DLL? And where did you get this version from - what tool?
You should grab a copy of West WInd Client Tools which should have the latest.
+++ Rick ---
What address, thisone rstrahl@west-wind.com?
Marco
I don't know then.
Can you send me the assembly you're trying to acess and I can try it here and maybe get some additional debugging information as I can step into the low level source code in the CLR instantiation.
THe odd thing is that all code paths out of these should create error messages of some sort. It's just very strange you get -1 result but no error message.
+++ Rick ---
These are the reesults.
FULLPATH("wwipstuff.dll") ="D:\WORK\CODE\VFP\GEDEL\COMPRJ\WWIPSTUFF.DLL"
FULLPATH("wwdotnetbridge.dll")="D:\WORK\CODE\VFP\GEDEL\COMPRJ\WWDOTNETBRIDGE.DLL"
I doublechecked the two DLL are there.
During declaration of ClrCreateInstanceFrom IN WWC_CLR_HOSTDLL (=WWIPSTUFF.DLL) no errors.
During debugging I verified, in the Command window, the declared DLL using DISPLAY DLLS and the result was:
Declared DLLs:
ClrCreateInstanceFrom
SetClrVersion
The DLL paths are on the local HDD (no network)
Marco
Ok... so two things.
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.
+++ Rick ---
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