Hey Guys and thanks for this community it has helped me quite a bit so far :)
However I ran into a problem that I couldn't find described anywhere so I go to you in hope of some help.
I have a webpage that has to scan some files that users post through this website. To do this I first save the file i a temporary folder where I scan using Symantec Scan Engine's (SSE) Command Line Scanner, which is simply an exe file that you can run with some parameters.
I have had it all to work beautifully, but I as booted up my computer this morning' to continue yesterdays work, all of the sudden there was an access denied on the exe file. I haven't touched the permissions to the file since when I set it up with ASPNET, IUSR and NETWORK SERVICE rights, so it really wonders me what could have gone wrong.
I therefore tried executing other exe files (ie. notepad) however this doesn't work either anymore, something which I also could prior to this morning.
I'm running two different machines to do this task, since the SSE requires a server solution. So where I'm developing the website is an XP Pro and the server is W2K3 server. If I copy my DLL to the server the thing still works beautifully, but on my workstation it constantly fails. I have tried copying the exe file around to different locations, but this hasn't yielded anything either.
I'm using
- System.Diagnostics.Process.Start(@"E:\\Inetpub\\wwwroot\\test\\ssecls.exe", "-server oxygen21:1344 -log " + logLoc+ " " + tempFileLoc);
Where logLoc is the location of where the logfile is written and the tempFileLoc is the location of the file to be scanned.
And even
- System.Diagnostics.Process.Start(@"E:\\Windows\\notepad.exe);
Fails to start now, which is really weird.
The error for the whole shebang is
- System.ComponentModel.Win32Exception: Access Denied at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start(String fileName, String arguments) at Test.Test.Upload(Object sender, EventArgs e) in e:\inetpub\wwwroot\test\test.aspx.cs:line 61
I hope someone has a clue, since I have no clue at all :)
Thanks in advance,
--Michael