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

Re: An problem acess the application by shared folder

$
0
0
Re: An problem acess the application by shared folder
VFP and .NET Interop
Re: An problem acess the application by shared folder
Mar. 28, 2013
05:17 am
3QY0BCTFKShow this entire thread in new window
Gratar Image based on email address
From:Adriano Ament - IOBFolhamatic Group
To:Rick Strahl
This configuration did the app.config, but not resolved the problem.

The error occurs when It's instantiated the wwDotNetBridge object .

Follow in the code:
do wwdotnetbridge.prg
*do dotnetframework.prg
local loBridge
loBridge = createobject("wwDotNetBridge","V4") ** here occor the error.
on shutdown quit
quit

However when I set V3 It worked normally.

Adriano Ament

.NET requires special configuration to load assemblies from network/shared drives.

More info here:
wcdocs:_36e0qlogr.htm

+++ Rick ---


Good afternoon

I don´t speak english very well....

Emerson is my co-worker at IOBFolhamatic and he recommended you to me. I needed .Net components that works with VFP.

I have problems when it create an object of wwDotNetBridge class in the Framework.net 4.0.

The application was installed in the Windows XP SP3 it is used with server. I tried to acess the application by shared folder in the network and occured an error.

"Unable to load wwDotNetBridge.Unable to load Clr Instance"

Client is Windows 7.

Follow in the code:
do wwdotnetbridge.prg
*do dotnetframework.prg
local loBridge
loBridge = createobject("wwDotNetBridge","V4")
on shutdown quit
quit

However when I set V3 It worked normally.

Another question is the use of visual components. The message in the document is “ it doesn´t work very well “

I created a FORM in C# with Framework.net 3.5.

To call the FORM I created the LOADER class to call the FORM class

Follow in the code:

C#:

[ComVisible(true)]
[ClassInterface(ClassInterfaceType.AutoDual)]
[ProgId("Loader")]
public class Loader
{
public void doDownload()
{
Loader.View.FRMDownload download = new Loader.View.FRMDownload(); // this another assembly and It isn´t COM .
download.ShowDialog();
}
}

VFP:
local loBridge, lObjeto
do wwdotnetbridge.prg
loBridge = createobject("wwDotNetBridge","V2")
loBridge.LoadAssembly("LoadClass.dll")
lObjeto = loBridge.CreateInstance("Loader")
lObjeto.inicializarWebService()

Could I have some problems doing like that ?

Thank you.

Adriano Ament




Viewing all articles
Browse latest Browse all 10393

Trending Articles