Hi,
I throw myself on the mercy of the collective as I'm mainly a PHP programmer and though I use Windows I do not get IIS security at -all-. If this is the wrong place to ask, I apologise up front---perhaps someone can at least get me to the right place.
I've been asked to solve a problem on an ASP site that needs to execute a command line application via Windows Script Hosting. II6 Windows 2003 Server. The application works -fine- from the command line if executed @ the console. The app developer is -also- more of a Linux company and has been very little help in solving the problem.
Set wShell = Server.CreateObject("WScript.Shell")
'Run the FDFMerge command line.
iReturn = wShell.Run( sFdfMergeCmd, 10, True )
When this line executes, we get the following:
Microsoft VBScript runtimeerror '800a0046'
Permission denied
---I've tried to research this and I thought I had provided Script And Executable permission for the entire folder in which the application lives for the 'IUSER' in both IIS -and- in Windows Explorer, but that didn't help. I read somewhere else that one has to -also- provide the same 'Script And Executable' access for a file called ASP.DLL since -that- is what actually executes the command as a child process. But I don't get that part of it at all.
I installed a utility called 'ProcMon' and tried to monitor what was being 'denied' but though I can see an Event where the app is being 'denied' I don't see how this tells me what to do about it.
I then ran across this post: www.computerperformance.co.uk/.../code_800A0046.htm
...which recommends a product from Solar Winds. I downloaded the Permissions Analyzer and WMI Monitor and I don't have a -clue- as to how either of these will track down the problem... and then even if I determine that... what to -do- about it.
Can someone give me a starting point? I've searched a lot on the internet and I see -lots- of similar posts, but no solutions. Maybe everyone figures it out and then don't bother to post their solution. There are as many conflicting/contradictory posts about this very problem as there are days in the month.
OR, if there is another resource than one can recommend/purchase please do let me know. We're pretty stuck here.
Thanks,
---JC