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