Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 21st, 2005, 09:34 AM
Registered User
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Executing External Applications(.net)

Executing External Applications(.net)

i have made an exe using windows application. i want to call it through web

application(through aspx page). i m using System.Diagnostics.Process.Start to call the exe.

     Process myProcess = new Process();
     myProcess.StartInfo.FileName = @"c:\myexe.exe";
     myProcess.StartInfo.Arguments = @"c:\rp.html";
     myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
     myProcess.StartInfo.UseShellExecute = false;

But each time it gives JIT debugging error mentioning that an exception

'system.unauthorisedaccessexception' has occured in myexe.exe.
although my exe and one more process vs7jit.exe get listed in windows task manager

processes when i call this exe and at the same time JIT debugging error comes.
But through asp page i am able to call that exe through shell command like this

   Set objShell = Server.CreateObject("wscript.shell")

   HtmlToPdfRtf = objShell.run("C:\class\myexe.exe" , false)

i have used a dll in making my exe but only exe comes in release folder and it works well

independently. my exe will do some work on server with the button hit by the client.please

advice how can i call this exe through aspx web page .

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running external applications from access thisgent Access VBA 2 July 9th, 2007 05:03 PM
executing external command from XSLT kapy_kal XSLT 4 June 9th, 2006 11:26 AM
How to Work on applications executing in another rramtrs VB How-To 3 May 19th, 2005 08:55 AM
Executing and monitoring external programs jacob C# 3 February 24th, 2004 04:09 PM
Executing an external program. saint VB.NET 2002/2003 Basics 3 July 22nd, 2003 08:30 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.