IOException was unhandled: A required privilege is not held by the client
I am creating code for my project, which includes file handling in vb.net and i am running the project in debugging mode. At that time when the breakpoint reaches the code which can save the file(i.e notepad) to the system drive, which is C: in my case. I have encountered with the following error.
System.IO.IOException: A required privilege is not held by the client.
Data: System.Collections.ListDictionaryInternal
Message: A required privilege is not held by the client
source: mscorlib
Stack trace: at Syste.IO._Error.WinIOError(Int32 error code, String maybeFullPath) at Systyem.IO.FileStream.init ..
Target site: Void WinIOError(Int32, System.String)
Declaring Type: Name="_Error" Full Name="System.IO._Error"
Module: common language runtime library
Name: WinIOError
Proof:
Solution:
Try to create new notepad or save file on the Location(i.e system drive- C:). Now,you can view the error code and message. Follow the steps given in the video to solve the error.
No comments :
Post a Comment