简体   繁体   中英

System.Diagnostics.Process.Start not work from on asp.net using IIS

I Have Asp.Net server, when I run it as debug on local its work fine. But when I try to run it on IIS and get it from browser it does not work

For example line : System.Diagnostics.Process.Start(@"c:\\Program Files (x86)\\Microsoft Office\\Office12\\excel.exe");

I have tried System.Diagnostics.Process.Start not work from an IIS And does not helped me

Thanks a lot

@Thomas is right. you shouldn't try to launch another process from an unmonitored process like w3wp.exe. This is against best practices.

There are code samples available online which provide ways to read/write excel files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM