Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / July 2003



Tip: Looking for answers? Try searching our database.

running exe on server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ram Baruch - 28 Jul 2003 06:53 GMT
I tried to follow the client/server DCOM tutorial
(Q266717) and it worked fine.
Then, I changed the server applicatrion so it will call
an exe file (that exists on the SERVER drive) by using
the shell command:
Shell "C:\app.exe"
But, it searched for the file on the CLIENT station and
not on the server.
Does someone knows How can I call an exe file on the
server and run it on the server?
Ashok Gupta (sujashi) - 28 Jul 2003 14:48 GMT
Seems like the esport of the DLL package is not proper. Check the com
package export. Client must be using the local DLL not the one on the
server.

Signature

Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no rights.

> I tried to follow the client/server DCOM tutorial
> (Q266717) and it worked fine.
[quoted text clipped - 6 lines]
> Does someone knows How can I call an exe file on the
> server and run it on the server?
Peter Huang [MSFT] - 29 Jul 2003 11:20 GMT
Hi Ashok,

You may check the location option follow the steps.

1. On the client computer, click the Start button, and then select Run. In
the Run dialog box, type "Dcomcnfg" (without the quotation marks), and then
click OK. You need to have Administrator rights to be able to run Dcomcnfg.

2. Navigate to My Computer¨¤DCOM Config¨¤ <Application name>, then open the
properties dialog pressing the mouse right button on the item.

3. Select the Location tab.

4. Check the ¡°Run application on the following computer, and input the
name of your server computer

5. Press OK to save the setting, and run you client program to see if it
works.

I look forward to hearing from you.

Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
--------------------
>Content-Class: urn:content-classes:message
>From: "Ram Baruch" <info@metalix-cad-cam.com>
[quoted text clipped - 26 lines]
>Does someone knows How can I call an exe file on the
>server and run it on the server?
Peter Huang [MSFT] - 30 Jul 2003 02:34 GMT
Hi Ashok,

Here I am going to follow up my step by step instructions.
You may configure the location where your DCOM server will run. To do that
you may check the location option follow the steps. [I test on a computer
running WinXP OS]

1. On the client computer, click the Start button, and then select Run. In
the Run dialog box, type "Dcomcnfg" (without the quotation marks), and then
click OK. You need to have Administrator rights to be able to run Dcomcnfg.

2. Navigate to Console Root-->Component Services-->Computers-->My
Computer-->DCOM Config--><Application name>, then open the properties
dialog pressing the mouse right button on the item.(<Application name>is
the name of your DCOM server)

3. Select the Location tab.

4. Check the "Run application on the following computer", and input the
name of your server computer, you may also browse the computer using the
browse button to input the computer name.

5. Press OK to save the setting, and run you client program to see if it
works.

I look forward to hearing from you.

Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
--------------------
>X-Tomcat-ID: 255742813
>References: <037901c354cc$a2ef28f0$a501280a@phx.gbl>
[quoted text clipped - 70 lines]
>>Does someone knows How can I call an exe file on the
>>server and run it on the server?
Ram Baruch - 30 Jul 2003 08:32 GMT
Hi,
The instuctions in the tutorial says that I should
install the server app on the computer that I want to run
the application on.
I did so, and then when I run dcomcnfg on this computer
(the server) I can see that it is registered as a remote
server.
On the CLIENT computer I didn't install the server app
(only the client app) hence it is not registered as a
remote server and thats why I cannot even see it when I
run dcomcnfg on the client computer.
On the server computer, I set the location (in dcomcnfg)
to 'Run Application on this computer'. Isn't it the same?
After I followed the tutorial instructions, it didn't
work.

>-----Original Message-----
>Hi Ashok,
[quoted text clipped - 95 lines]
>>>Path: cpmsftngxa06.phx.gbl
>>>Xref: cpmsftngxa06.phx.gbl
microsoft.public.vb.com:37859
>>>NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
>>>X-Tomcat-NG: microsoft.public.vb.com
[quoted text clipped - 11 lines]
>
>.
Peter Huang [MSFT] - 30 Jul 2003 15:36 GMT
Hi Ashok,

Did The app.exe you mention (Shell "C:\app.exe") have a GUI( like
notepad.exe)? If so, you may try to monitor the process in the windows task
manager( you may open it by press Ctrl+Alt+Del ,select tast manager) to see
if the app.exe exist.
If it exist, you may follow the steps below to modify the lauching user
option.

1. On the server computer, click the Start button, and then select Run. In
the Run dialog box, type Dcomcnfg, and then click OK. You need to have
Administrator rights to be able to run Dcomcnfg.

2. Navigate to Console Root-->Component Services-->Computers-->My
Computer-->DCOM Config--><Application name>, then open the properties
dialog pressing the mouse right button on the item.(<Application name>is
the name of your DCOM server)

3.Select the Identity tab, check the interactive user option, click OK to
close the Server's Properties dialog box, and then click OK again to close
Dcomcnfg. As you can see, the test server uses all of the default settings.
When deploying your own servers, you should define settings specific to
your application. All custom settings take precedence over the default ones.

5. Press OK to save the setting, and run you client program to see if it
works,i.e. if your GUI app.exe works.

I look forward to hearing from you.

Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
--------------------
>Content-Class: urn:content-classes:message
>From: "Ram Baruch" <info@metalix-cad-cam.com>
>Sender: "Ram Baruch" <info@metalix-cad-cam.com>
>References: <037901c354cc$a2ef28f0$a501280a@phx.gbl>
<PT$#BsbVDHA.2068@cpmsftngxa06.phx.gbl>
<7xPW#qjVDHA.2228@cpmsftngxa06.phx.gbl>
>Subject: RE: running exe on server
>Date: Wed, 30 Jul 2003 00:32:31 -0700
[quoted text clipped - 166 lines]
>>
>>.
Ram Baruch - 31 Jul 2003 12:03 GMT
Hi Peter!
Thank you for your help, it works!
Ram.

>-----Original Message-----
>Hi Ashok,
[quoted text clipped - 211 lines]
>
>.
Peter Huang [MSFT] - 31 Jul 2003 13:18 GMT
Hi Ram,

I am glad that it works for you. :)

Best regards
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided ?¡ãas is?¡À with no warranties and confers no
rights.
--------------------
>Content-Class: urn:content-classes:message
>From: "Ram Baruch" <info@metalis-cad-cam.com>
>Sender: "Ram Baruch" <info@metalis-cad-cam.com>
>References: <037901c354cc$a2ef28f0$a501280a@phx.gbl>
<PT$#BsbVDHA.2068@cpmsftngxa06.phx.gbl>
<7xPW#qjVDHA.2228@cpmsftngxa06.phx.gbl>
<090b01c3566c$bc6aabf0$a401280a@phx.gbl>
<9dQH2fqVDHA.2004@cpmsftngxa06.phx.gbl>
>Subject: RE: running exe on server
>Date: Thu, 31 Jul 2003 04:03:08 -0700
[quoted text clipped - 255 lines]
>>
>>.
Ashok Gupta (sujashi) - 30 Jul 2003 11:56 GMT
The original post was from Ram B. not me. Anyways I hope this wd help him.

Signature

Ashok Gupta - ashi
This posting is provided "AS IS" with no warranties, and confers no rights.

> Hi Ashok,
>
[quoted text clipped - 106 lines]
> >>Does someone knows How can I call an exe file on the
> >>server and run it on the server?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.