如何在不使用似乎在Azure Web Apps中无法使用的“MetaFile类”的情况下将emf(image / x-emf)文件转换为png。它适用于自托管站点。
我似乎没有找到任何替代方案。
以下是似乎有类似错误的人: Calling Chart.SaveImage() in Azure WebApp results in GDI+ Exception for ChartImageFormat.EMF only
答案 0 :(得分:1)
Azure Web App在沙箱中运行,某些GDI +组件没有权限。有关Azure Web App沙箱的详细信息,请参阅this article。对于这种情况,请尝试使用云服务或azure VM。