Home All Groups Group Topic Archive Search About
Author
13 Aug 2010 10:42 AM
Harsha
Hello there,

I have a problem in client - server application.
My server is windows 2003.
Problem is whenever I try to send collection as an argument to the
remote method I get error saying
Runtime error 462. The remote server does not exists or is
unavailable.

It was working till recent days. Not sure whether I changed some
security settings.
Please help me to get thia resolved. It is taking lot of time.

Thanks
Harsha

Author
13 Aug 2010 10:52 AM
Dee Earley
On 13/08/2010 11:42, Harsha wrote:
> Hello there,
>
> I have a problem in client - server application.
> My server is windows 2003.
> Problem is whenever I try to send collection as an argument to the
> remote method I get error saying
> Runtime error 462. The remote server does not exists or is
> unavailable.
>
> It was working till recent days. Not sure whether I changed some
> security settings.
> Please help me to get thia resolved. It is taking lot of time.

This normally means it crashed inside that method (Or the call before).
Usual debugging methods apply such as logging, error handling, etc.

--
Dee Earley (dee.ear***@icode.co.uk)
i-Catcher Development Team

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)
Author
13 Aug 2010 11:39 AM
Harsha
On Aug 13, 11:52 am, Dee Earley <dee.ear***@icode.co.uk> wrote:
Show quoteHide quote
> On 13/08/2010 11:42, Harsha wrote:
>
> > Hello there,
>
> > I have a problem in client - server application.
> > My server is windows 2003.
> > Problem is whenever I try to send collection as an argument to the
> > remote method I get error saying
> > Runtime error 462. The remote server does not exists or is
> > unavailable.
>
> > It was working till recent days. Not sure whether I changed some
> > security settings.
> > Please help me to get thia resolved. It is taking lot of time.
>
> This normally means it crashed inside that method (Or the call before).
> Usual debugging methods apply such as logging, error handling, etc.
>
> --
> Dee Earley (dee.ear***@icode.co.uk)
> i-Catcher Development Team
>
> iCode Systems
>
> (Replies direct to my email address will be ignored.
> Please reply to the group.)

Hi Dee,

I have put debugging message as first line inside remote method.
apparently even that is not logging. So I am clue less what is wrong.

Any suggestions will be appreciated.
Thanks
Harsha
Author
13 Aug 2010 11:55 AM
Schmidt
"Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitrag
news:50bbe51d-3da2-4327-962d-bd54ad98d9ed@x21g2000yqa.googlegroups.com...

[Collection Type as Parameter in DCOM-RPCs]
> I have put debugging message as first line inside
> remote method.
> apparently even that is not logging.
> So I am clue less what is wrong.

What happens, when you change:
Public Sub MyRemoteMethod(MyCol As Collection)

to:
Public Sub MyRemoteMethod(MyCol As Variant)

And then try to call that remotely (passing your
clientside Collection to the "untyped" Variant-
Parameter as before)?

Olaf
Author
13 Aug 2010 12:14 PM
Harsha
Show quote Hide quote
On Aug 13, 12:55 pm, "Schmidt" <s***@online.de> wrote:
> "Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitragnews:50bbe51d-3da2-4327-962d-bd54ad98d***@x21g2000yqa.googlegroups.com...
>
> [Collection Type as Parameter in DCOM-RPCs]
>
> > I have put debugging message as first line inside
> > remote method.
> > apparently even that is not logging.
> > So I am clue less what is wrong.
>
> What happens, when you change:
> Public Sub MyRemoteMethod(MyCol As Collection)
>
> to:
> Public Sub MyRemoteMethod(MyCol As Variant)
>
> And then try to call that remotely (passing your
> clientside Collection to the "untyped" Variant-
> Parameter as before)?
>
> Olaf

No Luck!

It is still the same issue. It is not able to call the method. My
first line of debussing message is not getting logged.

I doubt it is something to do with security settings inside server.
Any ideas?

Thanks for replies so far.
Author
13 Aug 2010 12:41 PM
phil hunt
I have not done this for a while. But you may have to set the end point of
the DCOM from the client to invoke the com remotely. Seems like you are even
getting there.

Show quoteHide quote
"Harsha" <sriharsha.ga***@gmail.com> wrote in message
news:aef77068-1183-4c33-a3b5-7cf60922b26f@x21g2000yqa.googlegroups.com...
On Aug 13, 12:55 pm, "Schmidt" <s***@online.de> wrote:
> "Harsha" <sriharsha.ga***@gmail.com> schrieb im
> Newsbeitragnews:50bbe51d-3da2-4327-962d-bd54ad98d***@x21g2000yqa.googlegroups.com...
>
> [Collection Type as Parameter in DCOM-RPCs]
>
> > I have put debugging message as first line inside
> > remote method.
> > apparently even that is not logging.
> > So I am clue less what is wrong.
>
> What happens, when you change:
> Public Sub MyRemoteMethod(MyCol As Collection)
>
> to:
> Public Sub MyRemoteMethod(MyCol As Variant)
>
> And then try to call that remotely (passing your
> clientside Collection to the "untyped" Variant-
> Parameter as before)?
>
> Olaf

No Luck!

It is still the same issue. It is not able to call the method. My
first line of debussing message is not getting logged.

I doubt it is something to do with security settings inside server.
Any ideas?

Thanks for replies so far.
Author
13 Aug 2010 1:04 PM
Harsha
Show quote Hide quote
On Aug 13, 1:41 pm, "phil hunt" <a***@abc.com> wrote:
> I have not done this for a while. But you may have to set the end point of
> the DCOM from the client to invoke the com remotely. Seems like you are even
> getting there.
>
> "Harsha" <sriharsha.ga***@gmail.com> wrote in message
>
> news:aef77068-1183-4c33-a3b5-7cf60922b26f@x21g2000yqa.googlegroups.com...
> On Aug 13, 12:55 pm, "Schmidt" <s***@online.de> wrote:
>
>
>
>
>
> > "Harsha" <sriharsha.ga***@gmail.com> schrieb im
> > Newsbeitragnews:50bbe51d-3da2-4327-962d-bd54ad98d***@x21g2000yqa.googlegroups.com...
>
> > [Collection Type as Parameter in DCOM-RPCs]
>
> > > I have put debugging message as first line inside
> > > remote method.
> > > apparently even that is not logging.
> > > So I am clue less what is wrong.
>
> > What happens, when you change:
> > Public Sub MyRemoteMethod(MyCol As Collection)
>
> > to:
> > Public Sub MyRemoteMethod(MyCol As Variant)
>
> > And then try to call that remotely (passing your
> > clientside Collection to the "untyped" Variant-
> > Parameter as before)?
>
> > Olaf
>
> No Luck!
>
> It is still the same issue. It is not able to call the method. My
> first line of debussing message is not getting logged.
>
> I doubt it is something to do with security settings inside server.
> Any ideas?
>
> Thanks for replies so far.- Hide quoted text -
>
> - Show quoted text -

Hi Phil, thanks for your reply. I did not understand your point right.
Could you please explain what I have to try in step-by-step approach?
Thanks
Harsha
Author
13 Aug 2010 1:36 PM
phil hunt
Like I said, it's been a while.
IIRC, you have to install the DCOM on your client using some DCOM utility.
That utility let you specify where the server(endpoint) is. Select the rest
of the choice to default.


Show quoteHide quote
"Harsha" <sriharsha.ga***@gmail.com> wrote in message
news:a6f46403-50e1-486f-a5d8-a9b2a9b71a72@l6g2000yqb.googlegroups.com...
On Aug 13, 1:41 pm, "phil hunt" <a***@abc.com> wrote:
> I have not done this for a while. But you may have to set the end point of
> the DCOM from the client to invoke the com remotely. Seems like you are
> even
> getting there.
>
> "Harsha" <sriharsha.ga***@gmail.com> wrote in message
>
> news:aef77068-1183-4c33-a3b5-7cf60922b26f@x21g2000yqa.googlegroups.com...
> On Aug 13, 12:55 pm, "Schmidt" <s***@online.de> wrote:
>
>
>
>
>
> > "Harsha" <sriharsha.ga***@gmail.com> schrieb im
> > Newsbeitragnews:50bbe51d-3da2-4327-962d-bd54ad98d***@x21g2000yqa.googlegroups.com...
>
> > [Collection Type as Parameter in DCOM-RPCs]
>
> > > I have put debugging message as first line inside
> > > remote method.
> > > apparently even that is not logging.
> > > So I am clue less what is wrong.
>
> > What happens, when you change:
> > Public Sub MyRemoteMethod(MyCol As Collection)
>
> > to:
> > Public Sub MyRemoteMethod(MyCol As Variant)
>
> > And then try to call that remotely (passing your
> > clientside Collection to the "untyped" Variant-
> > Parameter as before)?
>
> > Olaf
>
> No Luck!
>
> It is still the same issue. It is not able to call the method. My
> first line of debussing message is not getting logged.
>
> I doubt it is something to do with security settings inside server.
> Any ideas?
>
> Thanks for replies so far.- Hide quoted text -
>
> - Show quoted text -

Hi Phil, thanks for your reply. I did not understand your point right.
Could you please explain what I have to try in step-by-step approach?
Thanks
Harsha
Author
13 Aug 2010 2:15 PM
Nobody
"phil hunt" <a@abc.com> wrote in message
news:i43hpa$rr1$1@speranza.aioe.org...
> Like I said, it's been a while.
> IIRC, you have to install the DCOM on your client using some DCOM utility.
> That utility let you specify where the server(endpoint) is. Select the
> rest of the choice to default.

I think you mean DCOMcnfg, but I think that the client can specify which
server to use in the second parameter of CreateObject().

It has been a while for me too.
Author
13 Aug 2010 10:24 PM
Schmidt
Show quote Hide quote
"Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitrag
news:aef77068-1183-4c33-a3b5-7cf60922b26f@x21g2000yqa.googlegroups.com...

>> What happens, when you change:
>> Public Sub MyRemoteMethod(MyCol As Collection)
>>
>> to:
>> Public Sub MyRemoteMethod(MyCol As Variant)

>No Luck!

>It is still the same issue. It is not able to call the method.
>My first line of debussing message is not getting logged.

>I doubt it is something to do with security settings inside
> server. Any ideas?

Can you deliver more background-info?

What I thought to have understood so far was, that
(from the same client, against the same server-machine)
some calls do work - and only a few calls (those with
Collection-Params in it) do not (anymore).

If that is yet the case, please say so - and please
mention also, (for the yet working calls), if these
are within the same Public Class - and within the same
serverside Binary (the AX-Dll or AX-Exe) which
contains the non-working methods.

Or is the problem, that "no calls at all" go through?

Olaf
Author
16 Aug 2010 3:55 AM
Harsha
Show quote Hide quote
On Aug 13, 11:24 pm, "Schmidt" <s***@online.de> wrote:
> "Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitragnews:aef77068-1183-4c33-a3b5-7cf60922b***@x21g2000yqa.googlegroups.com...
>
> >> What happens, when you change:
> >> Public Sub MyRemoteMethod(MyCol As Collection)
>
> >> to:
> >> Public Sub MyRemoteMethod(MyCol As Variant)
> >No Luck!
> >It is still the same issue. It is not able to call the method.
> >My first line of debussing message is not getting logged.
> >I doubt it is something to do with security settings inside
> > server. Any ideas?
>
> Can you deliver more background-info?
>
> What I thought to have understood so far was, that
> (from the same client, against the same server-machine)
> some calls do work - and only a few calls (those with
> Collection-Params in it) do not (anymore).
>
> If that is yet the case, please say so - and please
> mention also, (for the yet working calls), if these
> are within the same Public Class - and within the same
> serverside Binary (the AX-Dll or AX-Exe) which
> contains the non-working methods.
>
> Or is the problem, that "no calls at all" go through?
>
> Olaf

Hi Olaf,
Let me give you clear background of this issue.
My client is Windows XP and server is Windows server 2003. You are
right saying in the same public class some method works. But the
method with collection as argument of the method is not working.
All working and non-working methods are in same class.

Hope that gives you clear understanding. Please let me know if you
need more inputs.
Thanks
Harsha
Author
16 Aug 2010 2:47 PM
Schmidt
"Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitrag
news:e550c3d5-708f-4808-9b68-2d66cbca0c36@l14g2000yql.googlegroups.com...

> You are right saying in the same public class
> some method works. But the method with collection
> as argument of the method is not working.
> All working and non-working methods are in same class.

Then (together with your mentioning of breaking the
BinComp) - it's pretty clear IMO ...
As most others have already said, any change in
the Interface-Defs of your COMponent needs
to be followed by making this changed Interface
known on *both* sides (any Client and also the
Server) - by re-registering.

Olaf
Author
13 Aug 2010 3:15 PM
Paul Clement
On Fri, 13 Aug 2010 03:42:21 -0700 (PDT), Harsha <sriharsha.ga***@gmail.com> wrote:

¤ Hello there,
¤
¤ I have a problem in client - server application.
¤ My server is windows 2003.
¤ Problem is whenever I try to send collection as an argument to the
¤ remote method I get error saying
¤ Runtime error 462. The remote server does not exists or is
¤ unavailable.
¤
¤ It was working till recent days. Not sure whether I changed some
¤ security settings.
¤ Please help me to get thia resolved. It is taking lot of time.
¤
¤ Thanks
¤ Harsha

The following link might help you troubleshoot the issue. Make sure that you didn't break binary
compatibility (if you made any recent changes).

http://support.microsoft.com/kb/269330


Paul
~~~~
Microsoft MVP (Visual Basic)
Author
16 Aug 2010 9:14 AM
Harsha
On Aug 13, 4:15 pm, Paul Clement
<UseAdddressAtEndofMess***@swspectrum.com> wrote:
Show quoteHide quote
> On Fri, 13 Aug 2010 03:42:21 -0700 (PDT), Harsha <sriharsha.ga***@gmail.com> wrote:
>
> ¤ Hello there,
> ¤
> ¤ I have a problem in client - server application.
> ¤ My server is windows 2003.
> ¤ Problem is whenever I try to send collection as an argument to the
> ¤ remote method I get error saying
> ¤ Runtime error 462. The remote server does not exists or is
> ¤ unavailable.
> ¤
> ¤ It was working till recent days. Not sure whether I changed some
> ¤ security settings.
> ¤ Please help me to get thia resolved. It is taking lot of time.
> ¤
> ¤ Thanks
> ¤ Harsha
>
> The following link might help you troubleshoot the issue. Make sure that you didn't break binary
> compatibility (if you made any recent changes).
>
> http://support.microsoft.com/kb/269330
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)

Hi Paul,

I have changed the signature of the function so compatibility was
broaken. But it was not a problem earlier.

How to resolve the issue with compatibility?

Thanks
Harsha
Author
16 Aug 2010 12:30 PM
phil hunt
If there is a compatability problem, it could show up run the com locally. I
am saying this only because it may make you debugging easier.


"Harsha" <sriharsha.ga***@gmail.com> wrote in message
news:0f1218d3-fb0c-413e-8664-7fa01e46ef7f@z10g2000yqb.googlegroups.com...
On Aug 13, 4:15 pm, Paul Clement
<UseAdddressAtEndofMess***@swspectrum.com> wrote:
Show quoteHide quote
> On Fri, 13 Aug 2010 03:42:21 -0700 (PDT), Harsha
> <sriharsha.ga***@gmail.com> wrote:
>
> ¤ Hello there,
> ¤
> ¤ I have a problem in client - server application.
> ¤ My server is windows 2003.
> ¤ Problem is whenever I try to send collection as an argument to the
> ¤ remote method I get error saying
> ¤ Runtime error 462. The remote server does not exists or is
> ¤ unavailable.
> ¤
> ¤ It was working till recent days. Not sure whether I changed some
> ¤ security settings.
> ¤ Please help me to get thia resolved. It is taking lot of time.
> ¤
> ¤ Thanks
> ¤ Harsha
>
> The following link might help you troubleshoot the issue. Make sure that
> you didn't break binary
> compatibility (if you made any recent changes).
>
> http://support.microsoft.com/kb/269330
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)

Hi Paul,

I have changed the signature of the function so compatibility was
broaken. But it was not a problem earlier.

How to resolve the issue with compatibility?

Thanks
Harsha
Author
16 Aug 2010 1:44 PM
Nobody
"phil hunt" <a@abc.com> wrote in message
news:i4bb1a$uje$1@speranza.aioe.org...
> If there is a compatability problem, it could show up run the com locally.
> I am saying this only because it may make you debugging easier.

You need to unregister the older component, then register the new one, and
recompile the clients. See also this article:

PRB: DCOMCNFG Reports Multiple Copies of DCOM Server
http://support.microsoft.com/default.aspx?scid=kb;en-us;180525

Another thing that you can try if you have multiple duplicate entries in the
Registry is to delete the ActiveX file, run a registry cleaner(which will
find that the file is missing and delete related entries), then register the
new copy, and recompile the clients, or any software that use the component.
Author
16 Aug 2010 1:23 PM
Paul Clement
On Mon, 16 Aug 2010 02:14:50 -0700 (PDT), Harsha <sriharsha.ga***@gmail.com> wrote:

¤ > The following link might help you troubleshoot the issue. Make sure that you didn't break binary
¤ > compatibility (if you made any recent changes).
¤ >
¤ > http://support.microsoft.com/kb/269330
¤ >
¤ > Paul
¤ > ~~~~
¤ > Microsoft MVP (Visual Basic)
¤
¤ Hi Paul,
¤
¤ I have changed the signature of the function so compatibility was
¤ broaken. But it was not a problem earlier.
¤
¤ How to resolve the issue with compatibility?
¤
¤ Thanks
¤ Harsha

If you broke binary compatibility then you will need to re-register/configure the component on the
server. You might need to re-compile the clients as well if you are using early binding.


Paul
~~~~
Microsoft MVP (Visual Basic)
Author
19 Aug 2010 4:32 AM
Harsha
On Aug 16, 2:23 pm, Paul Clement
<UseAdddressAtEndofMess***@swspectrum.com> wrote:
Show quoteHide quote
> On Mon, 16 Aug 2010 02:14:50 -0700 (PDT), Harsha <sriharsha.ga***@gmail.com> wrote:
>
> ¤ > The following link might help you troubleshoot the issue. Make sure that you didn't break binary
> ¤ > compatibility (if you made any recent changes).
> ¤ >
> ¤ >http://support.microsoft.com/kb/269330
> ¤ >
> ¤ > Paul
> ¤ > ~~~~
> ¤ > Microsoft MVP (Visual Basic)
> ¤
> ¤ Hi Paul,
> ¤
> ¤ I have changed the signature of the function so compatibility was
> ¤ broaken. But it was not a problem earlier.
> ¤
> ¤ How to resolve the issue with compatibility?
> ¤
> ¤ Thanks
> ¤ Harsha
>
> If you broke binary compatibility then you will need to re-register/configure the component on the
> server. You might need to re-compile the clients as well if you are using early binding.
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)

Hi Paul,

I have re-registered the component and created new proxy. I have
installed it on my client. Even after that issue is not resolved.
Now I have converted collection object to Variant array. That is my
COM function argument is Variant array rather than a collection
object.

When Array is empty it has no issue. But if array has some value then
I get 'Runtime error 70. Permission denied' Error on invoking COM
public method.

please help me resolving this issue.

Thanks
Harsha

P.S. Anybody  faced this issue before?
Author
19 Aug 2010 11:26 PM
Schmidt
"Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitrag
news:203c5c7a-5499-404c-a899-1a844c9b6c07@v41g2000yqv.googlegroups.com...

> Now I have converted collection object to Variant array.
> That is my COM function argument is Variant array
> rather than a collection object.
>
> When Array is empty it has no issue. But if array has
> some value then I get 'Runtime error 70. Permission
> denied' Error on invoking COM public method.
Are (were) there any Object-Types within the
Array-Members (or the former Collection)?

> P.S. Anybody  faced this issue before?
Not exactly that one, but DCOM always made
problems to me in the past. It was neither really
"deployable" (without being "InHouse" at the
customers side, playing admin for a time) - and
as you experience now, it has its "specialities"
(mostly security-related).

If these are only a few Classes (with only a few methods
in them), maybe you want to check out my DCOM-
replacement-stuff - and decide if you want to copy
your Classes over and give it a try.

http://www.thecommon.net/8.html

Olaf
Author
20 Aug 2010 2:26 PM
Paul Clement
On Wed, 18 Aug 2010 21:32:20 -0700 (PDT), Harsha <sriharsha.ga***@gmail.com> wrote:


¤ I have re-registered the component and created new proxy. I have
¤ installed it on my client. Even after that issue is not resolved.
¤ Now I have converted collection object to Variant array. That is my
¤ COM function argument is Variant array rather than a collection
¤ object.
¤
¤ When Array is empty it has no issue. But if array has some value then
¤ I get 'Runtime error 70. Permission denied' Error on invoking COM
¤ public method.
¤
¤ please help me resolving this issue.
¤
¤ Thanks
¤ Harsha
¤
¤ P.S. Anybody  faced this issue before?

You might want to walk through the below article (make sure the client user has sufficient
permissions):

http://support.microsoft.com/kb/180384


Paul
~~~~
Microsoft MVP (Visual Basic)
Author
3 Sep 2010 11:20 AM
Harsha
On Aug 20, 3:26 pm, Paul Clement
<UseAdddressAtEndofMess***@swspectrum.com> wrote:
Show quoteHide quote
> On Wed, 18 Aug 2010 21:32:20 -0700 (PDT), Harsha <sriharsha.ga***@gmail.com> wrote:
>
> ¤ I have re-registered the component and created new proxy. I have
> ¤ installed it on my client. Even after that issue is not resolved.
> ¤ Now I have converted collection object to Variant array. That is my
> ¤ COM function argument is Variant array rather than a collection
> ¤ object.
> ¤
> ¤ When Array is empty it has no issue. But if array has some value then
> ¤ I get 'Runtime error 70. Permission denied' Error on invoking COM
> ¤ public method.
> ¤
> ¤ please help me resolving this issue.
> ¤
> ¤ Thanks
> ¤ Harsha
> ¤
> ¤ P.S. Anybody  faced this issue before?
>
> You might want to walk through the below article (make sure the client user has sufficient
> permissions):
>
> http://support.microsoft.com/kb/180384
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)

Hi All,

I replaced the collection parameter to XML. So, now I am passing
string rather that collection.

So everything is working fine.

Thanks
Harsha