System.Runtime.InteropServices.COMException: 设备未就绪

System.Runtime.InteropServices.COMException: The device is not ready

我在 C# 应用程序中使用第三方库 (DigitalOfficePro),它在后台使用 Microsoft Interop。此应用程序将 powerpoint 演示文稿转换为 html 个文件。
在本地环境中,这工作正常。在远程服务器上,我收到以下错误:

2015-07-30 11:46:00,584 [10] ERROR Mintra.Publisher.DocumentConverter.Core.Presentation.Conversion.HtmlConversion.Convert(:0) (null) - System.Exception: Error durign conversion of file '\VIRT-PUB-STAGIN\converter_shared\ppt\Beerenberg_manual0_CellGlassCutting.ppt' to output location 'D:\converter_shared\converted\ppt\Beerenberg_manual0_CellGlassCutting' RETROWING! ---> System.Runtime.InteropServices.COMException: The device is not ready. ---> System.IO.IOException: The device is not ready. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) at System.IO.Directory.CreateDirectory(String path) at DigitalOfficePro.Html5PointSdk.PresentationConverter.c1234c1700677d6aa7d432fdb965c78bb(String c7fc9d9edb8de5e2eb0df0a4b94c9b98d) at DigitalOfficePro.Html5PointSdk.PresentationConverter.Convert(String outputFileNameWithPath) --- End of inner exception stack trace --- at DigitalOfficePro.Html5PointSdk.PresentationConverter.Convert(String outputFileNameWithPath) at Mintra.Publisher.DocumentConverter.Core.Presentation.Conversion.HtmlConversion.Convert(String pptInputFileName, String htmlOutputFileName) --- End of inner exception stack trace ---

知道可能是什么问题吗?

我的本地环境详细信息:
Windows 7 终极 (64x)
微软 Office PowerPoint 2007
打开XML SDK V2.5

远程环境详细信息:
Windows 服务器 2008 R2 (64x)
微软 PowerPoint 2010
打开XML SDK V2.5

我看来你的设备(逻辑驱动器)D: 还没有准备好。

            var driveInfo = new DriveInfo("D"); // or "D:\"

            if (driveInfo.IsReady)
            {
                // do your stuff..
            }
            else
            {
                // loggin, show to the user or throw an exception..
            }