1

我通过我的android应用程序中的Web服务链接有PDF文件列表,当我打开我的PDF时,它在我返回我的列表后工作完美,现在我点击(第二次)相同的PDF文件它不是opem(工作)以下错误一致..请帮帮我..

错误:

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 回答