''ImageFormat' is ambiguous in the namespace 'System.Drawing.Imaging'
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|