user8253046
user8253046

Reputation:

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

Upvotes: 0

Views: 644

Answers (1)

Kaushal Kumar Panday
Kaushal Kumar Panday

Reputation: 2467

@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.

Upvotes: 1

Related Questions