.NETアプリ用にWICを使用して作成したサムネイル生成ルーチンがあります。過去1年間は正常に機能していましたが、新しいサーバーに移行したばかりです。
古いサーバーはW2k8R2EnterpriseSP1でした新しいサーバーはW2k8StandardSP1です
これが失敗しているコードです
Public Sub New(ByVal PictureData As Byte())
Me.WICFactory = New WICImagingFactory()
Dim InputStream As IWICStream = WICFactory.CreateStream()
InputStream.InitializeFromMemory(PictureData, PictureData.Length)
InputDecoder = WICFactory.CreateDecoderFromStream(InputStream, Nothing, WICDecodeOptions.WICDecodeMetadataCacheOnDemand)
'^===== This line throws the HRESULT 0x88982F50
確認しましたが、画像データは有効なデータです。古いサーバーでコードを実行すると、まったく同じ画像が正常に機能します。