Asp.net “这是什么不祥之兆?”;系统图纸“;警告是什么意思?

Asp.net “这是什么不祥之兆?”;系统图纸“;警告是什么意思?,asp.net,imaging,Asp.net,Imaging,我正在为ASP.NET网站开发一些图像处理代码,这些代码最终将作为web服务公开 在系统底部。绘图命名空间文档: 这是一个不祥的警告: Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application typ

我正在为ASP.NET网站开发一些图像处理代码,这些代码最终将作为web服务公开

在系统底部。绘图命名空间文档:

这是一个不祥的警告:

Classes within the System.Drawing namespace are not supported for use 
within a Windows or ASP.NET service. Attempting to use these classes from 
within one of these application types may produce unexpected problems, such 
as diminished service performance and run-time exceptions. For a supported 
alternative, see Windows Imaging Components.
“ASP.NET服务”是指web服务吗?我不认为“Windows图像组件”是为了完成我对图像的处理而设计的


System.Drawing命名空间对于ASP.NET web服务中的图像处理是否安全?

该语句表示任何ASP.NET应用程序,包括WebForms、MVC、web API和Signal

绘图仅为在正常用户会话中运行的WinForms或控制台应用程序设计


其他人可能会声称这是一个系统。在那些不受支持的场景中,绘图可以为他们工作,但这根本不受Microsoft支持。

天哪,我完全不知道。我们有一些基于System.Drawing的代码,可以为我们使用多年的上传图像生成缩略图。我可能需要重温一下…@n8wrl那么你真是太幸运了。一些硬件/软件可能运行得很好,但GitHub的corefx repo正在讨论适合服务器场景的库。这方面可能会有好消息。看来CoreFX可能还有很长的路要走。您能推荐一个支持服务器端的库吗?@n8wrl这样的讨论表明还没有合适的库,将来可能会有新的东西出现。