Permission denied (Visual Basic)
Visual Studio 2012 Other Versions
This topic has not yet been rated An attempt was made to write to a write-protected disk or to access a locked file.
To correct this error
1. To open a write-protected file, change the write-protection attribute of the file. 2. Make sure that another process has not locked the file, and wait to open the file until the other process releases it. 3. To access the registry, check that your user permissions include this type of registry access.