Detach Attachment

Hi,I have a service(made by vb .net) running on a domino server. I use InitializeUsingNotesUserName to connect to the database to read emails. The problem is when i try to detach a file calling the method ExtractFile as below

attachedfile =docEmail.GetAttachment(item.Values(0).ToString)

           attachedfile.ExtractFile(Path.Combine(pathnameToStoreAttachment, attachedfile.Name))

i get a NotesException “disk I/O is a restricted failure” .

Is there a solution to this problem ??

Is there another way to detach a file from email?