Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

ProcessStartInfo - launching external .exe on server from ASP.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fruber Malcome - 06 Feb 2008 00:48 GMT
I have a button on a web page that launches an .exe on the web server to
perform some basic file handling tasks.

this application works fine on Win2k IIS5, but doesn't work on 2003 Server
IIS6.

there are no exceptions or error messages when trying to launch the
process - just nothing.

Does anyone have any ideas / suggestions on this?

What is the best approach to handling this - short of porting the .exe to a
.dll and making an API call?

thanks - Fruber
Peter Bromberg [C# MVP] - 06 Feb 2008 01:01 GMT
A good alternative would be to convert the exe into a .NET class library that
handles whatever you need to do. Then, you can set a .NET reference to your
class library and be able to debug through all the code and ensure that it
works properly.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com 

> I have a button on a web page that launches an .exe on the web server to
> perform some basic file handling tasks.
[quoted text clipped - 11 lines]
>
> thanks - Fruber
Fruber Malcome - 06 Feb 2008 02:35 GMT
I do plan to port the code - it's not quite as easy right now because most
of the code is c++ (native).  So to-do this properly, it should be ported to
.NET.
In the meantime - I need something to work, are there any known issues
between 2003 server versus Win2K - that would allow this web application to
shellexecute with no problems in 2k but not within 2003 (IIS6)?

thanks - Fruber

>A good alternative would be to convert the exe into a .NET class library
>that
[quoted text clipped - 24 lines]
>>
>> thanks - Fruber
Eliyahu Goldin - 06 Feb 2008 09:17 GMT
Most likely you are having security issues. Does the account for the web app
have enough rights to run the exe?

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

>I do plan to port the code - it's not quite as easy right now because most
>of the code is c++ (native).  So to-do this properly, it should be ported
[quoted text clipped - 34 lines]
>>>
>>> thanks - Fruber
Fruber Malcome - 06 Feb 2008 13:17 GMT
since I only used the default config (created the app - then nothing else) -
it may still be using NetworkService and it's default properties.
Sounds like that may be my problem, what is the standard approach to fix
this?

thanks - bill

> Most likely you are having security issues. Does the account for the web
> app have enough rights to run the exe?
[quoted text clipped - 38 lines]
>>>>
>>>> thanks - Fruber
Eliyahu Goldin - 06 Feb 2008 13:34 GMT
You can impersonate the app to run under another account with sufficient
rights.

Start from here:
http://msdn2.microsoft.com/en-us/library/aa292118.aspx

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> since I only used the default config (created the app - then nothing
> else) - it may still be using NetworkService and it's default properties.
[quoted text clipped - 45 lines]
>>>>>
>>>>> thanks - Fruber

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
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



©2008 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.