Running cscript with System.Diagnostics.Process within asp.net  
Author Message
echeeze





PostPosted: Common Language Runtime, Running cscript with System.Diagnostics.Process within asp.net Top

I am calling a wsf file ,using cscript, from the System.Diagnostics.Process. When I set up impersonation=false in my web.config file the cscript runs under the aspnet machine account and runs properly.

My problem occurrs when I try to run cscript with impersonation=true (usernam/psswd is an machine admin account). The cscript errors out with the following message ... CScript Error: Execution of the Windows Script Host failed. (Class not registered ).

Any ideas why this would happen Any ideas on who the process runs as when I set impersonation=true

FYI ... I can run the cscript under the machine admin account from the command line with no issues.

Thanks in advance for your help.



.NET Development32