|
|
|
start date: Mon, 30 Jul 2007 22:55:50 -0000,
posted on: microsoft.public.dotnet.framework.interop
back
| Thread Index |
|
1
ak
|
|
2
Johannes Passing
|
|
3
Johannes Passing
|
|
4
ak
|
Accessing com+ object in a different machine from IIS
Hi Guys,
I need some help on the topic.
I am trying to access a com+ object located in a physical machine
(let's say machine A). In another physical machine (machine B), I have
a web application running on IIS that will access the com+ object in
machine A. CreateObject() procedure is called from machine B to create
com+ object in the machine A.
I have registered the assembly using regsvr32 <dll file in machine A>
from machine B. However, everytime I run the application, I received
'Cannot Create ActiveX component.
FYI, both machines are running Windows Server 2003.
Any help will be greatly appreciated.
Kind Regards,
Andie
Date:Mon, 30 Jul 2007 22:55:50 -0000
Author:
|
Re: Accessing com+ object in a different machine from IIS
Do you refer to COM+ objects written in VB, .Net (ES) or C/C++?
CreateObject sounds like VB. So for VB, first make sure that the DLL or
the TLB is registered on the client machine. Also, you may want to check
what the exact return value of CoCreateInstanceEx (rather than
CreateObject) is (create a test app in C/C++ or check it in the debugger
- CreateObject should finally end up calling CoCreateInstanceEx).
CreateObject wraps several error codes of CoCreateInstanceEx into the
generic 'Cannot Create ActiveX' error, so you may miss the precise error
code here.
--Johannes
ak wrote:
> Hi Guys,
>
> I need some help on the topic.
>
> I am trying to access a com+ object located in a physical machine
> (let's say machine A). In another physical machine (machine B), I have
> a web application running on IIS that will access the com+ object in
> machine A. CreateObject() procedure is called from machine B to create
> com+ object in the machine A.
>
> I have registered the assembly using regsvr32 <dll file in machine A>
> from machine B. However, everytime I run the application, I received
> 'Cannot Create ActiveX component.
>
> FYI, both machines are running Windows Server 2003.
>
> Any help will be greatly appreciated.
>
> Kind Regards,
> Andie
>
--
Johannes Passing - http://int3.de/
Date:Tue, 31 Jul 2007 20:29:09 +0200
Author:
|
Re: Accessing com+ object in a different machine from IIS
Hi Johannes,
It is COM+ object written in VB.
I've make sure that the DLL is registered in the client machine. I
created a small test Windows app that will call the CreateObject (e.g.
without going to IIS).
How do you call the CoCreateInstanceEx? I have difficulties finding
references on creating a test app for CoCreateInstanceEx. Will be
great if you have an example how to call it.
Kind Regards,
Andie
On Aug 1, 4:29 am, Johannes Passing
wrote:
> Do you refer to COM+ objects written in VB, .Net (ES) or C/C++?
> CreateObject sounds like VB. So for VB, first make sure that the DLL or
> the TLB is registered on the client machine. Also, you may want to check
> what the exact return value of CoCreateInstanceEx (rather than
> CreateObject) is (create a test app in C/C++ or check it in the debugger
> - CreateObject should finally end up calling CoCreateInstanceEx).
> CreateObject wraps several error codes of CoCreateInstanceEx into the
> generic 'Cannot Create ActiveX' error, so you may miss the precise error
> code here.
>
> --Johannes
>
>
>
> ak wrote:
> > Hi Guys,
>
> > I need some help on the topic.
>
> > I am trying to access a com+ object located in a physical machine
> > (let's say machine A). In another physical machine (machine B), I have
> > a web application running on IIS that will access the com+ object in
> > machine A. CreateObject() procedure is called from machine B to create
> > com+ object in the machine A.
>
> > I have registered the assembly using regsvr32 <dll file in machine A>
> > from machine B. However, everytime I run the application, I received
> > 'Cannot Create ActiveX component.
>
> > FYI, both machines are running Windows Server 2003.
>
> > Any help will be greatly appreciated.
>
> > Kind Regards,
> > Andie
>
> --
> Johannes Passing -http://int3.de/
Date:Tue, 07 Aug 2007 06:19:29 -0000
Author:
|
Re: Accessing com+ object in a different machine from IIS
Hi Andie,
have a look at http://support.microsoft.com/kb/180217.
--Johannes
ak wrote:
> Hi Johannes,
>
> It is COM+ object written in VB.
>
> I've make sure that the DLL is registered in the client machine. I
> created a small test Windows app that will call the CreateObject (e.g.
> without going to IIS).
>
> How do you call the CoCreateInstanceEx? I have difficulties finding
> references on creating a test app for CoCreateInstanceEx. Will be
> great if you have an example how to call it.
>
> Kind Regards,
> Andie
> On Aug 1, 4:29 am, Johannes Passing
> wrote:
>> Do you refer to COM+ objects written in VB, .Net (ES) or C/C++?
>> CreateObject sounds like VB. So for VB, first make sure that the DLL or
>> the TLB is registered on the client machine. Also, you may want to check
>> what the exact return value of CoCreateInstanceEx (rather than
>> CreateObject) is (create a test app in C/C++ or check it in the debugger
>> - CreateObject should finally end up calling CoCreateInstanceEx).
>> CreateObject wraps several error codes of CoCreateInstanceEx into the
>> generic 'Cannot Create ActiveX' error, so you may miss the precise error
>> code here.
>>
>> --Johannes
>>
>>
>>
>> ak wrote:
>>> Hi Guys,
>>> I need some help on the topic.
>>> I am trying to access a com+ object located in a physical machine
>>> (let's say machine A). In another physical machine (machine B), I have
>>> a web application running on IIS that will access the com+ object in
>>> machine A. CreateObject() procedure is called from machine B to create
>>> com+ object in the machine A.
>>> I have registered the assembly using regsvr32 <dll file in machine A>
>>> from machine B. However, everytime I run the application, I received
>>> 'Cannot Create ActiveX component.
>>> FYI, both machines are running Windows Server 2003.
>>> Any help will be greatly appreciated.
>>> Kind Regards,
>>> Andie
>> --
>> Johannes Passing -http://int3.de/
>
>
--
Johannes Passing - http://int3.de/
Date:Tue, 07 Aug 2007 13:15:45 +0200
Author:
|
|
|