Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: Creating object in remote machine


Message #1 by "Shin Kyoun Choi" <shinkyoun@y...> on Mon, 2 Jul 2001 05:10:23

Hi!

I have COM component built in VC and ASP application but I have a problem 

in creating object in remote machine.

I created COM component in VC and I have web server( says A) and remote 

m/c for mainly all MTS component( says B).



First thing I tried is..

I installed my component in machine B then I exported the package

As you know, after exporting any package, one *.exe is created under 

the 'clients' folder for installing all component to any client m/c.



Then I installed the *.exe to the machine A(web server)

If I do like this, I do not have any problem in creating object.



But the second thing I tried is..

In the web server( machine A), I tried to create object remotely using 

CreateObject("....", "machine_B")



Then  I got the error - "Object Required"



Between m/c A and B, there is firewall but still in the same domain.

All security setting was same in the above two cases.



Welcome ... Any idea

Thanks.....



Shin Kyoun(Stanley) Choi







Message #2 by "Bruce J. Pezzlo" <bpezzlo@p...> on Mon, 2 Jul 2001 12:33:35 -0400
In the first example, you are using MTS and it works.  In the second

example, are you creating an object from a *.exe server, or are you

creating an object that exists within MTS of server B?  If on Server B

it is an exe and your doing DCOM, then it should work.  If your

attempting this through MTS on server B then I am not sure you can use

CreateObject (objectname, servername) in this case. 



Also, try using IP Address instead of the computer name and see if that

helps, or using an host file to resolve computer name to ip address.

I've seen that to be a problem on occasion, depending upon whats open

across the firewall.



Good luck,



---

Bruce Pezzlo

MCSD & MCDBA

President

PLUM Computer Consulting, Inc.

(617) 266 - 1942 x201

Fax: (617) 267 - 0895

bpezzlo@p...







-----Original Message-----

From: Shin Kyoun Choi [mailto:shinkyoun@y...]

Sent: Monday, July 02, 2001 1:10 AM

To: ASP components

Subject: [asp_components] Creating object in remote machine







Hi!

I have COM component built in VC and ASP application but I have a

problem

in creating object in remote machine.

I created COM component in VC and I have web server( says A) and remote

m/c for mainly all MTS component( says B).



First thing I tried is..

I installed my component in machine B then I exported the package

As you know, after exporting any package, one *.exe is created under

the 'clients' folder for installing all component to any client m/c.



Then I installed the *.exe to the machine A(web server)

If I do like this, I do not have any problem in creating object.



But the second thing I tried is..

In the web server( machine A), I tried to create object remotely using

CreateObject("....", "machine_B")



Then  I got the error - "Object Required"



Between m/c A and B, there is firewall but still in the same domain.

All security setting was same in the above two cases.



Welcome ... Any idea

Thanks.....



Shin Kyoun(Stanley) Choi








  Return to Index