sql server - Quartz.NET : running PHP cmd line results in ACCESS DENIED on php_mssql.dll? -


i have windows service implementing quartz.net scheduling reads scheduled job information xml file, parses cmd line run, , creates scheduled job parsed parameters.

i'm using php command line scripts test command line execution of scheduler, , seems kicking off jobs fine, , complete successfully, showing script output in eventlog...

the problem every time runs, warning popup displays error:

"php startup: unable load dynamic library 'c:\php5\php_mssql.dll' - access denied"

if respond ok warning, script seems run fine, if remains on screen, further scheduled php scripts run completion, output empty (i assume held paused job running prior it.)...

how can prevent access denied message programmatically?

the quartz.net job execution script runs parsed cmd line follows:

public void execute(jobexecutioncontext context)     {         eventlog eventlog = new eventlog();         eventlog.source = "schedulerservicesource";         eventlog.log = "schedulerservice";           jobdatamap datamap = context.mergedjobdatamap;  // contanis information job parsed xml file.         string jobname = datamap.getstring("name");         string execute = datamap.getstring("execute");         string args = datamap.getstring("arguments");          //string logmsg = "jobrunner executing=============\n"; // written event log after job execution         //logmsg += "jobname: " + jobname + "\n";         //logmsg += "executing: " + execute + "\n";         // eventlog.writeentry(logmsg); // write job's details log          try         {             process p = new process(); // start child process.             // redirect output stream of child process.             p.startinfo.useshellexecute = false;             p.startinfo.redirectstandardoutput = true;             p.startinfo.filename = execute;             p.startinfo.arguments = args;             p.start();             // not wait child process exit before             // reading end of redirected stream.             // p.waitforexit();             // read output stream first , wait.             string output = p.standardoutput.readtoend();             p.waitforexit();             eventlog.writeentry(jobname + "\nexecuted:\n---------------\n" + execute + " " + args + "\n---------------\nresults:\n===============\n" + output + "\n===============");         }         catch (exception ex)         {             eventlog.writeentry(jobname + "\nattempted execute:\n---------------\n" + execute + " " + args + "\n---------------\n...failed:\n===============\n" + ex.message + "\n===============", eventlogentrytype.error);         }     } 

thanks in advance!

edit: php script i'm running simple hello world not interact database, have feeling if did run 1 used db functionality, fail due access denied msg... unacceptable, , must able use php in full capacity project!

edit2: have service installed using windows localservice account.

try (copied forum on site)

copy following files in system32 directory 1. libmysql.dll 2. msql.dll

copy following files in php\ext directory 1. msql.dll . file should copied when extract php 5 zip file, not

restart webserver


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -