|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DCOM ErrorHello 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 On 13/08/2010 11:42, Harsha wrote:
> Hello there, This normally means it crashed inside that method (Or the call before).> > 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. 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.) 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: Hi Dee,> > > 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.) 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 "Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitrag [Collection Type as Parameter in DCOM-RPCs]news:50bbe51d-3da2-4327-962d-bd54ad98d9ed@x21g2000yqa.googlegroups.com... > I have put debugging message as first line inside What happens, when you change:> remote method. > apparently even that is not logging. > So I am clue less what is wrong. 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
Show quote
Hide quote
On Aug 13, 12:55 pm, "Schmidt" <s***@online.de> wrote: No Luck!> "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 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. 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 No Luck!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 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.
Show quote
Hide quote
On Aug 13, 1:41 pm, "phil hunt" <a***@abc.com> wrote: Hi Phil, thanks for your reply. I did not understand your point right.> 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 - Could you please explain what I have to try in step-by-step approach? Thanks Harsha 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 Hi Phil, thanks for your reply. I did not understand your point right.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 - Could you please explain what I have to try in step-by-step approach? Thanks Harsha "phil hunt" <a@abc.com> wrote in message I think you mean DCOMcnfg, but I think that the client can specify whichnews: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. server to use in the second parameter of CreateObject(). It has been a while for me too.
Show quote
Hide quote
"Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitrag Can you deliver more background-info?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? 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
Show quote
Hide quote
On Aug 13, 11:24 pm, "Schmidt" <s***@online.de> wrote: Hi Olaf,> "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 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 "Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitrag Then (together with your mentioning of breaking thenews: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. 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 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) 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: Hi Paul,> > ¤ 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) 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 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 On Aug 13, 4:15 pm, Paul Clementnews:0f1218d3-fb0c-413e-8664-7fa01e46ef7f@z10g2000yqb.googlegroups.com... <UseAdddressAtEndofMess***@swspectrum.com> wrote: Show quoteHide quote > On Fri, 13 Aug 2010 03:42:21 -0700 (PDT), Harsha Hi Paul,> <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) 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 "phil hunt" <a@abc.com> wrote in message You need to unregister the older component, then register the new one, and 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. 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. 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) 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: Hi Paul,> > ¤ > 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) 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? "Harsha" <sriharsha.ga***@gmail.com> schrieb im Newsbeitrag Are (were) there any Object-Types within thenews: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. Array-Members (or the former Collection)? > P.S. Anybody faced this issue before? Not exactly that one, but DCOM always madeproblems 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 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) 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: Hi All,> > ¤ 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) I replaced the collection parameter to XML. So, now I am passing string rather that collection. So everything is working fine. Thanks Harsha |
|||||||||||||||||||||||