1

AndroidアプリケーションのWebサービスリンクを介してPDFファイルリストを持っています.PDFを開いたときに、リストに戻った後、完全に機能しています.今、同じPDFファイルをクリックすると(2回目)、次のエラーが表示されます. ..助けてください..

エラー:

I/faultstringendElement(664): FaultStringSystem.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IO.IOException: The process cannot access the file 'D:\web\users\KnotBiz\c.knotbiz.com\000970\CON000970000016-1474.pdf' because it is being used by another process.
I/faultstringendElement(664):at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
I/faultstringendElement(664):at System.IO.File.InternalDelete(String path, Boolean checkHost)
I/faultstringendElement(664):at KnotBiz.Mobile.WebService.MobileService.PrintContract(Int64 UserId, Int64 eventId, Nullable`1 id)
I/faultstringendElement(664):--- End of inner exception stack trace ---
4

1 に答える 1

0

別のプロセスで使用されているため、すでにそのファイルにアクセスしています。埋め込みに応じて、ファイルを閉じるときにファイルを解放するか、ファイルがすでに開いているかどうかを確認する必要があります。

于 2013-01-30T05:36:45.407 に答える