Ask a Question related to ASP.NET Security, Design and Development.
-
EJS #1
"Access Denied" using public static Process Start(string, string);
We are using Network Associates VirusScan to check files uploaded from a web
page for viruses.
The code below worked fine using .Net 1.1 on Win2000. The ASP.Net user
account was given permissions to run the EXE and access to the files being
scanned.
When we migrated to Win2003 we ran into problems. ASP.Net now runs under the
Network Services account. So we gave this account the same privilages but
the code throws an System.ComponentModel.Win32Exception "Access is Denied"
If we add the Network Services account to the "Administrators" group the
code executes WITHOUT error.
Any help would be greatly appreciated
Thanks in advance.
Ed
CODE:
//Run Virus Scan
oCmd = Process.Start(sScanExe, sFilePath); <---- ERROR
//Wait for iScanTimeOut mSec
//If OS exited the procees true is returned if timed out false is returned
bNormalExit = oCmd.WaitForExit(iScanTimeOut);
iErrorCode = oCmd.ExitCode;
oCmd.Close();
Error Log:
; Source: System
; Description: Access is denied
; Stack: 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)
EJS Guest
-
"Error Creating Control" and "Cast from String"
I'm creating a custom date control. In appearance, it's just a textbox and a button. It has three custom properties: CalDate, CalDateType and... -
#26292 [Opn->Bgs]: substr returns "0" for any offset on the string "0"
ID: 26292 Updated by: sniper@php.net Reported By: ravacholp at hotmail dot com -Status: Open +Status: ... -
#25763 [Opn->WFx]: Why the string "1.10" is equal to the string "1.1"?
ID: 25763 Updated by: pollita@php.net Reported By: jparneodo at yahoo dot fr -Status: Open +Status: ... -
#25763 [NEW]: Why the string "1.10" is equal to the string "1.1"?
From: jparneodo at yahoo dot fr Operating system: RH7.2 PHP version: 4.3.3 PHP Bug Type: Strings related Bug description: ... -
convert visual basic "string" data type to DB2 "blob"
Does anyone know if a visual basic string data type can be converted to DB2 blob datatype? I have all data in XML files and I use Visual Basic to...



Reply With Quote

