我在C#应用程序中使用第三方库(C#),这个应用程序下使用Microsoft。此应用程序将powerpoint演示文稿转换为html文件。
在本地环境中,这种方法工作得很好。在远程服务器上,我收到以下错误:
2015-07-30 11:46:00,584 10错误Mintra.Publisher.DocumentConverter.Core.Presentation.Conversion.HtmlConversion.Convert(:0) (null) - System.Exception:将文件'\VIRT-PUB-STAGIN\converter_shared\ppt\Beerenberg_manual0_CellGlassCutting.ppt‘转换为输出位置'D:\converter_shared\converted\ppt\Beerenberg_manual0_CellGlassCutting’RETROWING的错误!-> System.Runtime.InteropServices.COMException:设备尚未准备好。-> System.IO.IOException:设备还没准备好。在System.IO.Directory.InternalCreateDirectory(String路径的System.IO.__Error.WinIOError(Int32 errorCode,String maybeFullPath),System.IO.Directory.InternalCreateDirectoryHelper(String路径上的字符串路径,对象dirSecurityObj,布尔checkHost,( DigitalOfficePro.Html5PointSdk.PresentationConverter.c1234c1700677d6aa7d432fdb965c78bb(String c7fc9d9edb8de5e2eb0df0a4b94c9b98d的System.IO.Directory.CreateDirectory(String path) at DigitalOfficePro.Html5PointSdk.PresentationConverter.Convert(String outputFileNameWithPath) -内部异常堆栈跟踪- DigitalOfficePro.Html5PointSdk.PresentationConverter.Convert(String outputFileNameWithPath- Mintra.Publisher.DocumentConverter.Core.Presentation.Conversion.HtmlConversion.Convert(String pptInputFileName,String htmlOutputFileName) -内部异常堆栈跟踪的结束
知道有什么问题吗?
我的本地环境细节:
Windows 7极限版(64x)
Microsoft 2007
开放XMLSDKV2.5
远程环境详细信息:
Windows 2008 R2 (64x)
微软PowerPoint 2010
开放XMLSDKV2.5
发布于 2015-07-30 12:09:24
对我来说,你的设备(逻辑驱动器) D:似乎还没有准备好。
var driveInfo = new DriveInfo("D"); // or "D:\"
if (driveInfo.IsReady)
{
// do your stuff..
}
else
{
// loggin, show to the user or throw an exception..
}https://stackoverflow.com/questions/31720594
复制相似问题