c# - System.Runtime.InteropServices.COMException: The device is not ready -
i using third party library(digitalofficepro) in c# app under hood use microsoft interop. app converts powerpoint presentation html files.
in local environment works fine. on remote server receiving following error:
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' output location 'd:\converter_shared\converted\ppt\beerenberg_manual0_cellglasscutting' retrowing! ---> system.runtime.interopservices.comexception: device not ready. ---> system.io.ioexception: device not ready. @ system.io.__error.winioerror(int32 errorcode, string maybefullpath) @ system.io.directory.internalcreatedirectory(string fullpath, string path, object dirsecurityobj, boolean checkhost) @ system.io.directory.internalcreatedirectoryhelper(string path, boolean checkhost) @ system.io.directory.createdirectory(string path) @ digitalofficepro.html5pointsdk.presentationconverter.c1234c1700677d6aa7d432fdb965c78bb(string c7fc9d9edb8de5e2eb0df0a4b94c9b98d) @ digitalofficepro.html5pointsdk.presentationconverter.convert(string outputfilenamewithpath) --- end of inner exception stack trace --- @ digitalofficepro.html5pointsdk.presentationconverter.convert(string outputfilenamewithpath) @ mintra.publisher.documentconverter.core.presentation.conversion.htmlconversion.convert(string pptinputfilename, string htmloutputfilename) --- end of inner exception stack trace ---
any idea problem?
my local environment details:
windows 7 ultimate (64x)
microsoft office powerpoint 2007
open xml sdk v2.5
remote environment details:
windows server 2008 r2 (64x)
microsoft powerpoint 2010
open xml sdk v2.5
for me looks device (logical drive) d:
not ready.
var driveinfo = new driveinfo("d"); // or "d:\" if (driveinfo.isready) { // stuff.. } else { // loggin, show user or throw exception.. }
Comments
Post a Comment