Graphics.CopyFromScreen from Web = The handle is i

2019-08-05 03:29发布

问题:

In an asp.net app, I try to get screenshot of server. Code works OK in VS.NET's web server but on IIS (even on local) I get the error. I've tried checking WWW Service's "Service Interacts with Desktop" property but didnt work. Any ideas?

回答1:

I think the IIS server runs as a service so there's no Desktop to get a handle to, im not sure how that would work.