473,499 Members | 1,614 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to run an external process

I am attempting to run an external process from within my web service, but
nothing happens. No errors are thrown, nor are any eventlog messages
written. If I call the same classes directly from a WinForms app (not
through the web service), it works fine. I realise that the difference is
that the webservice runs under the ASPNET user and WinForms is running under
the interactive user (I have checked, and this is the case). Both are local
admins. Because there are no errors, I don't know where to go next.

Can anyone help?

This is the call:
System.Diagnostics.Process process =
System.Diagnostics.Process.Start(printAppPath, args);

Thanks,
Peter

Nov 18 '05 #1
2 1312
no errors are returned because most likely, the call succeeded. you realize
that you are tring to print on the server and not on the client right? which
is why the windows forms version will succeed and the webversion will not.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Peter Wood" <Pe*******@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
I am attempting to run an external process from within my web service, but
nothing happens. No errors are thrown, nor are any eventlog messages
written. If I call the same classes directly from a WinForms app (not
through the web service), it works fine. I realise that the difference is
that the webservice runs under the ASPNET user and WinForms is running
under
the interactive user (I have checked, and this is the case). Both are
local
admins. Because there are no errors, I don't know where to go next.

Can anyone help?

This is the call:
System.Diagnostics.Process process =
System.Diagnostics.Process.Start(printAppPath, args);

Thanks,
Peter

Nov 18 '05 #2
I wish it were that simple. Everything is running locally on my workstation
at this stage.

I agree that if no errors are thrown the call may be working, but why is
nothing coming out of the printer? More likely, I think, is that the call is
being blocked when running under the ASPNET identity used by the Web Service
(or some other webservice related limitation). I would expect this to throw
a security exception, and it doesn't. Hence my post.

Regards,
Peter

"Alvin Bruney [MVP]" wrote:
no errors are returned because most likely, the call succeeded. you realize
that you are tring to print on the server and not on the client right? which
is why the windows forms version will succeed and the webversion will not.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Peter Wood" <Pe*******@discussions.microsoft.com> wrote in message
news:72**********************************@microsof t.com...
I am attempting to run an external process from within my web service, but
nothing happens. No errors are thrown, nor are any eventlog messages
written. If I call the same classes directly from a WinForms app (not
through the web service), it works fine. I realise that the difference is
that the webservice runs under the ASPNET user and WinForms is running
under
the interactive user (I have checked, and this is the case). Both are
local
admins. Because there are no errors, I don't know where to go next.

Can anyone help?

This is the call:
System.Diagnostics.Process process =
System.Diagnostics.Process.Start(printAppPath, args);

Thanks,
Peter


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
20105
by: My SQL | last post by:
Hi Can I trigger an external program to run when a new record is added to the mysql table? The external program is in C and instead of scanning the table continuously for new insertions, it...
0
1339
by: lcifers | last post by:
I have written an application and tested it as a Windows executable. It works fine. The application uses an external COM application to process some existing files. But I can't seem to start that...
5
3609
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
0
755
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
11998
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
3
4154
by: lookaround | last post by:
Hi everyone, I need some help... I call an external exe (a command-line tool) with Process.Start through this code: try { p = new Process(); p.StartInfo.UseShellExecute = false;...
1
2302
by: =?Utf-8?B?Q3JhaWc=?= | last post by:
Hi Guys, I am trying to caputre the output for an external application. The idea is to use the System.Diagnostics.Process to run the exe in a process and redirect the output to a string. When...
2
5050
by: =?Utf-8?B?SXJmYW4=?= | last post by:
Hello, It may be a repeated question but I don't find the solution to the situation that I encounter in it. My application is monitoring another application that is built in VB6. The...
1
5654
by: Benedict Verheyen | last post by:
Hi, i get an "Unable to relay for" when trying to send an email from within my network to an email address not on my domain. I don't understand why it says "relaying" as i'm sending from an...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.