المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : The process cannot access the file '' because it is being used by another process



C# Programming
05-06-2009, 01:17 PM
Hi all,

I am using windows application in C#.
Sometimes i am getting the below exception,

{"The process cannot access the file 'C:\\Documents and Settings\\suq31399\\Local Settings\\Temp\\IHSPublisher\\d954cc77-2722-41c3-9efa-3b20e11003cf.txt'
because it is being used by another process."}
[System.IO.IOException]: {"The process cannot access the file
'C:\\Documents and Settings\\suq31399\\Local Settings\\Temp\\IHSPublisher\\d954cc77-2722-41c3-9efa-3b20e11003cf.txt'
because it is being used by another process."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: null
Message: "The process cannot access the file
'C:\\Documents and Settings\\suq31399\\Local Settings\\Temp\\IHSPublisher\\d954cc77-2722-41c3-9efa-3b20e11003cf.txt'
because it is being used by another process."
Source: "IHSPublisher"
StackTrace: "
at IHSPublisher.Publisher.p_GetDocumentByFileIdentifierCompleted(Object sender, GetDocumentByFileIdentifierCompletedEventArgs e) in D:\\Ashok\\Projects\\PCN2.3\\newpublisher_080808\\IHSPublisher\\Publisher.cs:line 319\r\n
at IHSPublisher.PCNAlert.Service.Publishing.Publisher.OnGetDocumentByFileIdentifierOperationCompleted(O bject arg) in D:\\Ashok\\Projects\\PCN2.3\\newpublisher_080808\\IHSPublisher\\Web References\\PCNAlert.Service.Publishing\\Reference.cs:line 486"
TargetSite: {Void p_GetDocumentByFileIdentifierCompleted(System.Object, IHSPublisher.PCNAlert.Service.Publishing.GetDocumentByFileIdentifierCompletedEventArgs)}

Can anyone help me to solve this exception.

Thanks,
Ashok