Groups | Blog | Home
all groups > asp.net security > july 2005 >

asp.net security : Executing EXE



Yoshitha
7/4/2005 12:00:00 AM
It is not displaying any error, it is executing that line but not invoking
the exe file and then executing the remaining lines of the code.

But we gave the same code to the client and he also using the windows server
2003 and he is getting the error like "Security Exception"

[quoted text, click to view]

Yoshitha
7/4/2005 12:00:00 AM
Hi
I wrote the following code to run the exe file in my web application

System.Diagnostics.Process.Start("E:\Projects\Encrypt-Decrypt\bin\WindowsApp
lication1.exe")

and it is running successfully in windows 2000 professional , but the same
code is not working in windows server 2003.

can anybody tell me how to solve this problem.

Thanx in advance

Nicole Calinoiu
7/4/2005 10:51:35 AM
What do you mean by "is not working"? Is an exception being thrown and, if
so, could you please provide the full exception details as output by its
ToString method?


[quoted text, click to view]

Nicole Calinoiu
7/5/2005 7:17:37 AM
Since the client's Windows 2003 machine may be using a different CAS policy
or ASP.NET trust level than either your Windows 2000 or 2003 machines,
there's no a prior reason to expect that their SecurityException stems from
the same cause as your apparently silent failure. Because of this,
resolving the problems on your machine and the client's machine may require
two entirely separate troubleshooting efforts. Which one would you like to
tackle first?



[quoted text, click to view]

Yoshitha
7/6/2005 10:51:22 AM
First I would like to track in my system.

-------------------------------------------------------
[quoted text, click to view]

Nicole Calinoiu
7/6/2005 3:24:14 PM
Then the first priority should be detecting why the exe doesn't run. Are
both applications currently capable of logging all exceptions? If not,
enabling exception logging and/or display should be your first step in
attempting to diagnose the problem. Also, if the target exe is a .NET
assembly, you might want to try running fuslogvw.exe
(http://msdn.microsoft.com/library/en-us/cptools/html/cpgrfFusionLogViewerFuslogvwexe.asp)
to see if there's a problem loading the exe or any of its dependencies.




[quoted text, click to view]

AddThis Social Bookmark Button