Error message/exception when access to a certain resource or system is denied due to insufficient privileges. If asking a question about solving this error, please include other relevant tags such as the platform or system the error is being encountered on.
Questions tagged [access-denied]
1031 questions
532
votes
45 answers
MySQL ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES)
First let me mention that I've gone through many suggested questions and found no relevent answer. Here is what I'm doing.
I'm connected to my Amazon EC2 instance. I can login with MySQL root with this command:
mysql -u root -p
Then I created a new…

Ali
- 7,810
- 12
- 42
- 65
267
votes
47 answers
Unable to copy file - access to the path is denied
I am using Visual Studio 2005. After taking code from version control first,
the c#.net application runs correctly. But, after doing some modifications, when I build I am getting the following error:
Error 383 Unable to copy file…

ricky
- 2,771
- 2
- 16
- 15
182
votes
25 answers
Cannot open backup device. Operating System error 5
Below is the query that I am using to backup (create a .bak) my database.
However, whenever I run it, I always get this error message:
Msg 3201, Level 16, State 1, Line 1
Cannot open backup device 'C:\Users\Me\Desktop\Backup\MyDB.Bak'. Operating…

Smiley
- 3,207
- 13
- 49
- 66
164
votes
21 answers
pip install access denied on Windows
I am trying to run pip install mitmproxy on Windows, but I keep getting access denied, even with cmd and PowerShell using the Run as Administrator option.
WindowsError: [Error 5] Access is denied:…

Bruno Klein
- 3,217
- 5
- 29
- 39
140
votes
19 answers
Hosting ASP.NET in IIS7 gives Access is denied?
I have setup a application in my IIS7 that uses .NET Framework 4.0 (runned by NetworkService) but when browsing the site I get this:
Access is denied.
Description: An error occurred while accessing the resources required to serve this request.…

Banshee
- 15,376
- 38
- 128
- 219
111
votes
15 answers
IIS Express gives Access Denied error when debugging ASP.NET MVC
I have created an ASP.NET MVC 3 project, and am using IIS Express as the web server when developing. When I try to debug, I get the error message below.
How can this be solved?
Server Error in '/' Application.
Access is denied.
Description: An…

TheBoubou
- 19,487
- 54
- 148
- 236
80
votes
19 answers
PSEXEC, access denied errors
While I'm using PSEXEC.exe getting 'Access denied' error for remote systems.
Any idea about how to solve this?
Pax
80
votes
7 answers
Getting "java.nio.file.AccessDeniedException" when trying to write to a folder
For some reason I keep getting java.nio.file.AccessDeniedException every time I try to write to a folder on my computer using a java webapp on Tomcat. This folder has permissions set to full control for everyone on my computer (Windows). Does…

OneTwo
- 2,291
- 6
- 33
- 55
79
votes
32 answers
mysqldump Error 1045 Access denied despite correct passwords etc
This is a tricky one, I have the following output:
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect
When attempting to export my database with mysqldump on Windows XP. The username…

DdlyHeadshot
- 791
- 1
- 5
- 4
76
votes
10 answers
Access restriction: Is not accessible due to restriction on required library ..\jre\lib\rt.jar
I am trying to modify some legacy code from while back and getting the following kind of errors:
Access restriction: The method create(JAXBRIContext, Object) from the type Headers is not accessible due to restriction on required library…

user567602
- 909
- 1
- 9
- 15
67
votes
16 answers
TFS 2012 Build "Access to Path Denied"
I’m using TFS 2012 Build and running into an error
Access to the path is denied
The solution being built contains about 15 projects of which a number are using the Castle.Components.Validator.2.5.0 assembly. I have seen other posts that talk…

Nimblejoe
- 1,219
- 2
- 12
- 15
65
votes
8 answers
Access to the path denied error in C#
I have read a similar post, but i just cant figure out the problem.
I have changed the windows permissions and changed routes.
When i try to save a file it throws me the exception:
Access to the path **** denied.
string route="D:\\";
FileStream…

aerojun
- 1,206
- 3
- 15
- 28
65
votes
11 answers
"Connect failed: Access denied for user 'root'@'localhost' (using password: YES)" from php function
I wrote some function used by a php webpage, in order to interact with a mysql database. When I test them on my server I get this error:
"Connect failed: Access denied for user 'root'@'localhost' (using password: YES)"
I am able to use them on my…

gc5
- 9,468
- 24
- 90
- 151
54
votes
6 answers
java.io.FileNotFoundException: (Access is denied)
I am trying to read the files inside a folder, but when I run the program it throws this exception. I tried with some other folders also. It throws the same exception.
Exception in thread "main" java.io.FileNotFoundException: C:\backup (Access is…

John
- 2,682
- 5
- 23
- 24
53
votes
8 answers
Access Denied for localstorage in IE10
Yesterday I installed Windows 8 and am now trying to understand why I am getting an "Access Denied" message when accessing localstorage. The page is being served on the same PC with the browser (http://localhost). My feeling is that one of the…

Clint Brown
- 629
- 1
- 6
- 12