Graphics.CopyFromScreen from Web = The handle is invalid

五迷三道 提交于 2020-01-25 00:45:40

问题


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.



来源:https://stackoverflow.com/questions/1450022/graphics-copyfromscreen-from-web-the-handle-is-invalid

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!