WIC CreateDe coderFromStream返回0x88982F50后服务器迁移 [英] WIC CreateDecoderFromStream returning 0x88982F50 post server migration

查看:576
本文介绍了WIC CreateDe coderFromStream返回0x88982F50后服务器迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我创建使用WIC的.net应用程序的缩略图生成程序。它一直工作正常,在过去的一年,但我们只是迁移到新的服务器。

I have a thumbnail generation routine that I created using WIC for a .NET app. It has been working fine for the past year, but we just migrated to a new server.

旧服务器是W2K8 R2企业SP1 新的服务器是W2K8标准SP1

Old Server was W2k8 R2 Enterprise SP1 New Server is W2k8 Standard SP1

这里的code,它是失败的。

Here's the code that is failing

    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

我已经检查和图象数据是有效的数据。完全相同的图像工作正常,如果我运行旧服务器上的code。

I have checked and the picture data is valid data. The exact same picture works fine if I run the code on the old server.

推荐答案

问题是,我是运行Server 2008 SP1。如这个问题,你需要应用平台更新到Windows Server 2008(后SP2)WIC之前是可用的。 (它可以在本地R2)

The problem was that I was running Server 2008 SP1. As described in this question, you need to apply a platform update to Server 2008 (post SP2) before WIC is available. (It is available natively in R2)

这篇关于WIC CreateDe coderFromStream返回0x88982F50后服务器迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆