' ImageFormat'在命名空间中是模棱两可的。
我刚刚升级了一个ASP.NET系统中的Aspose软件包,并偶然发现了一个怪异的问题 - 几个模棱两可的参考样式错误,本能地,我试图解决完全资格参考的问题...但是它仍然没有似乎已经修复了它。
一个实例是此特定的如果
块:
If converter.HasNextImage() Then
converter.GetNextImage(Path.GetDirectoryName(fileToConvert) & "\" & Path.GetFileNameWithoutExtension(fileToConvert) & "_small" & suffix, System.Drawing.Imaging.ImageFormat.Jpeg, newWidth, newHeight, 75)
End If
其中ImageFormat
据称是模棱两可的。我怀疑这与aspose.imaging
dll有关,但我不确定如何解决。
除了汇总aspose.imaging
dll外,还有其他人得到的解决方案吗?
更新:系统地删除可疑的DLL后,似乎是aspose.drawing
dll,这是问题
I've just upgraded the Aspose packages within one of our ASP.Net systems and stumbled across a weird issue - a couple of ambiguous reference style errors, instinctively I attempted the fix of fully qualifying the reference...but it still doesn't seem to have fixed it.
One instance is this particular if
block:
If converter.HasNextImage() Then
converter.GetNextImage(Path.GetDirectoryName(fileToConvert) & "\" & Path.GetFileNameWithoutExtension(fileToConvert) & "_small" & suffix, System.Drawing.Imaging.ImageFormat.Jpeg, newWidth, newHeight, 75)
End If
Where ImageFormat
is supposedly ambiguous. I suspect it's something to do with the Aspose.Imaging
DLL, but I'm not sure how to resolve it.
Has anyone else got a solution other than just binning the Aspose.Imaging
DLL?
UPDATE: After systematically removing the suspected DLLs it seems to be the Aspose.Drawing
DLL that is the problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论