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

Re: netbridge error.

$
0
0
Re: netbridge error.
West Wind Client Tools
Re: netbridge error.
02/01/2012
07:29:25 PM
3F815RWBW Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None
Hello Rick! First let me apologize for letting this linger so long without a response. Priorities got shuffled and things moved around, but it is back to the forefront now! I finally got the updates put into place, rebuilt and distributed to the client who is having the problem. With the updates everything runs just fine on their 2007 server and their 2003 server (no errors). But they are getting an error on both of their Windows 7 workstations. I tried to reinstall the .Net 2.0 and SOAP v. 3 just for the heck of it, made no difference. They are both set up as administrators on their respective systems and the UAC is down at its lowest level (Windows 7 version of "off").

The error is happening on this line within the LoadService function (in the PRG that was generated by the proxy generator):


THIS.oBridge = CREATEOBJECT("wwDotNetBridge",lcDotNetVersion)

I am getting an error about there being no PARAMETER. I am assuming that this is because there is no PARAMETER statement at the top of the wwDotNetBridge.Prg file. I went ahead and modified it to remove the second parameter on the call and got past that initial error. So now when the LoadService function runs, it just fails, not sure where it is failing at within that Function exactly. The Init function within the PRG is what is calling the LoadService function here is the Init code:


IF !llNoLoad
IF !this.LoadService(lcDotNetVersion)
ERROR this.cErrorMsg
ENDIF
ENDIF

When the failure occurs, an error occurs with the reference of the ERROR line. So after some checking, figured out that was because the "this.cErrorMsg" value is blank. In other words, the LoadService function is not assigning anything to the error, it just fails. I am not sure what else to look at. I am hoping you can offer some ideas - hopefully this all make sense but if not, I would be happy to clarify anything. And again, thank you SO much for your assistance, this is kicking my butt!

Jeff

Hi Jeff,

Yes I released an update a couple of days ago.

You can re-download your REGISTERED version (from the URL provided originally) and install that. You can just install ontop of any installation and it will be updated.

+++ Rick ---


Greetings! Been away from this for a while, but am back now. I regenerated everything but had exactly the same results. So then I went to see if there was a new version of the generator. I had upgraded to the 1.18 version when the email came out a while back. I went to your website though and saw that there was a new version released on 11/18, so I downloaded it and uninstalled the old one. I regenerated with that version and it may have solved the problem - BUT, now it is asking me to register that version. Is that a new release that I need to purchase again or will the current license I have carry through?


Make sure the service was generated with a recent version of the generator. The DLL should match the PRG. It looks to me like your PRG is newer than the DLL/CS files are.

I'd say re-generate. If you did that maybe try again with the latest version of the download. There was some buggy flux a few versions back related to the code gen being out of sync. It's possible you got one of those unstable builds that was out for a few hours before I caught the problem.

+++ Rick ---


Sorry for the delay in getting back to you (travelling!). Maybe it would be good for you to see the code I am using. Here is the code:

FUNCTION LoadService() LOCAL loBridge as wwDotNetBridge THIS.oBridge = CREATEOBJECT("wwDotNetBridge") this.oBridge.Loadassembly(this.cAssemblyPath) this.oService = this.oBridge.Createinstance("CCWebService.CCWebService") *** For some reason accessing URL directly doesnt work - use indirect referencing *this.oService.Url = this.cServiceUrl this.oBridge.SetProperty(this.oService,"Url",this.cServiceUrl) ENDFUNC

The line where it is setting the property of the service url is the line that causes the aforementioned error.

Ideas?

Jeff


SetProperty accesses the property collection and tries to find the property you're trying to reference. It looks like you're referencing a property that isn't there (or named differently) or isn't accessible from VFP. Make sure you get the case correct - case matters. Try reading from the property as well and see if that works.

What type is the target property?

+++ Rick ---


I double checked the date/time stamps and size of files between this client and two others and it is the same. I even copied the files off of one server and overwrote the files onto the server that was failing, got the same results.

Do you know what the "set properties" is doing that it would generate an error about an array?

BTW, really appreciate your time and attention!

Jeff


But are you sure you're distributing exactly the same files and there's not some old version of your code out there? This error in particular sounds like an out of date generated assembly.

+++ Rick ---


Maybe...I was hesitant to go there for fear of "breaking" it for the other several hundred clients that are not having a problem. That is what is strange - there are so many other offices running the same OS's that it works for.



Make sure you have the right version of the generated proxy class on the machine. The URL migration to the service object was something that was recent - so maybe you have an older version of the generated assembly on the client?

+++ Rick ---


It is basically exactly like the error from the previous poster. My line of code (VFP9) in the LoadService function is:

this.oBridge.SetProperty(this.oService,"Url",this.cServiceUrl)

Error is:

OLE IDispatch exception code 0 from wwDotNetbridge; Index was outside the bounds of the array.

As I mentioned, in the past, it has indicated that either the .NET library 2.0 wasn't there or that SOAP wasn't installed. But in this case, I have a client that in their office, they have 2 2003 servers and many Windows XP client workstations. One 2003 server works and the other server + workstations return that error on that line of code. Would appreciate some direction - and appreciate you getting back to me!



Whats the error and what is the code you're running?

+++ Rick ---


I just came across this post today in researching my own challenge. I realize this was well over a year ago, but was wondering if you ever figured out what was causing this?

I have installed my code on countless servers and workstations. Any time I have gotten that error, I have installed .NET 2.0 and the SOAP kit and it has solved that problem. However, I have one client now, that is having this error no matter if those are installed or not. It happens on a Windows XP workstation and on a Windows 2003 server.

Would appreciate any ideas!

Jeff

I am testing our application using the wsdl proxy generator while we wait for purchasing to approve the 2 licenses we are getting, But I'm getting this error when I try to run our application
whether I run it in the VFP 8 or VFP 9 environment. Any ideas ?

OLE IDispatch exception code 0 from wwDotNetbridge; Index was outside the bounds of the array.

I'm calling

DO RRDLHKWebserviceProxy.prg loRRDLHKService = CREATEOBJECT("rrdlhkwebserviceproxy")


and the error is occuring in the wwDotNetBridge.prg on this line

FUNCTION SetProperty(loInstance, lcProperty, lvValue) this.oDotNetBridge.SetProperty(loInstance, lcProperty, lvValue) ENDFUNC










Viewing all articles
Browse latest Browse all 10393

Trending Articles