Web Service Proxy Generator
wwDotNetBridge Version?
Gravatar is a globally recognized avatar based on your email address. wwDotNetBridge Version?
  CHARLES MICHAEL WERNER
  All
  Feb 8, 2024 @ 11:12am

I have a VFP app that connects to a webservice that recently disabled access using TLS 1.0. Since I see on the forum that the newer versions of wwWebServiceGenerator / wwDotNetBridge now use TLS 1.2 by default, I just purchased a new license and installed version 1.62. I am getting the following error when trying to run the new generated interfaceadapterproxy.prg:

Unable to load wwDotNetBridge: Unable to load Clr Instance. The assembly is built by a runtime newer than the currently loaded runtime, and cannot be loaded.

Error=; 1098 Program: init Line*: 139

I suspect that it's trying to load an incompatible wwDotNetBridge.dll. What version should I be using?

Gravatar is a globally recognized avatar based on your email address. re: .Net Runtime Version?
  CHARLES MICHAEL WERNER
  CHARLES MICHAEL WERNER
  Feb 8, 2024 @ 02:44pm

I have a VFP app that connects to a webservice that recently disabled access using TLS 1.0. Since I see on the forum that the newer versions of wwWebServiceGenerator / wwDotNetBridge now use TLS 1.2 by default, I just purchased a new license and installed version 1.62. I am getting the following error when trying to run the new generated interfaceadapterproxy.prg:

Unable to load wwDotNetBridge: Unable to load Clr Instance. The assembly is built by a runtime newer than the currently loaded runtime, and cannot be loaded.

Error=; 1098 Program: init Line*: 139

I suspect that it's trying to load an incompatible wwDotNetBridge.dll. What version should I be using?

Gravatar is a globally recognized avatar based on your email address. re: .Net Runtime Version?
  CHARLES MICHAEL WERNER
  CHARLES MICHAEL WERNER
  Feb 8, 2024 @ 02:50pm

OK, I discovered that I now need to pass [V4] to

CreateObject([InterfaceAdapterProxy],[V4])

This works to load wwDotNetBridge

Continuing to work through discovering the other changes that my old code needs to contend with.

Gravatar is a globally recognized avatar based on your email address. re: .Net Runtime Version?
  Rick Strahl
  CHARLES MICHAEL WERNER
  Feb 9, 2024 @ 02:46pm

Hmmm... V4 should be the default, unless there's something else loading a different version of the .NET runtime into the FoxPro process before.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: .Net Runtime Version?
  CHARLES MICHAEL WERNER
  Rick Strahl
  Feb 9, 2024 @ 05:00pm

In the older InternetAdapterProxy I used up to upgrading this week, there was no version# parameter.

Gravatar is a globally recognized avatar based on your email address. re: .Net Runtime Version?
  Rick Strahl
  CHARLES MICHAEL WERNER
  Feb 9, 2024 @ 05:24pm

It almost seems like you're using an older version. Can you check where you are loading wwDotnetBridge from and what the default for the version number is? It should be 4.0. Also check the generated class - it might have generated a different default version for some reason?

+++ Rick ---

© 1996-2024