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
3
votes
1 answer
Access denied ajax request javascript
I want to make an ajax request in javascript to call WCF service, but I have an error : Access denied.
You can see the code below :
$("#test").on("click", function () {
$.ajax({
type: "GET",
url:…

El_Pepino
- 41
- 6
3
votes
8 answers
"Access is denied" message while deploying spring app in tomcat 6
While trying to deploy my spring app on tomcat 6 I get an error saying
java.util.logging.errormanager:4
java.io.filenotfoundexception: c:\program files\apache software foundation\tomcat 6.0\logs\catalina.2010.02.16.log
at…

Pratyusha
- 113
- 1
- 4
- 10
3
votes
0 answers
WMI remote connect in c# uses wrong username
I'm trying to create program in C#, that will retrieve some data from local or remote server. Local part is working great, remote connection does not at all. I'm getting access denied.
Here is the code
public void ConnectToWmi()
{
var options =…

Klimovsky
- 31
- 1
3
votes
1 answer
Access denied for user 'user'@'host' (using password: YES)
I have a created user in my MySQL database:
CREATE USER 'user'@'host' IDENTIFIED BY 'password';
I have granted that user full privileges:
GRANT ALL ON *.* to 'user'@'host';
Echoing the grant:
GRANT ALL PRIVILEGES ON *.* TO 'user'@'host'…

Roy Hinkley
- 10,111
- 21
- 80
- 120
3
votes
1 answer
Spring Security: forward to original page after login with admin user after access was denied
I use Spring security to authenticate users. If a user requests a secured page, he has to authenticate over a login page. If the user is always authenticated, he will be redirected to the requested page immediatly. Moreover some pages need special…

shylynx
- 597
- 1
- 7
- 25
3
votes
2 answers
How do I deal with cases when Process.Kill() yields "access denied" because the process is terminating?
In my code I need to call Process.Kill() that is declared in MSDN to throw Win32Exception when either of the following occurs
The associated process could not be terminated.
The process is terminating.
The associated process is a Win16…

sharptooth
- 167,383
- 100
- 513
- 979
3
votes
3 answers
How can I fix the MySQL 'access denied' errors after db restore?
I exported all databases of a MySQL server by:
mysqldump -u root -p --all-databases > /tmp/dbs.sql
Then I copied the file (by scp) on another server, which has the same MySQL version, and imported it with:
mysql -u root -p < dbs.sql
I can…

Oscar
- 457
- 1
- 4
- 14
3
votes
1 answer
ClickOnce error message 'Access to the path 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config' is denied'
Our ClickOnce application has been working fine. However, one of our users gets the following error:
+ Configuration system failed to initialize
+ An error occurred loading a configuration file: Access to the path…

PeterX
- 2,713
- 3
- 32
- 42
3
votes
6 answers
Requested registry access is not allowed #2
I've recently been writing an application that needs access to the following registry key :
HKLM\SOFTWARE\Wow6432Node\Classes\CLSID
For some odd reason, I'm not allowed access to this key on any system I've tested on. I'm using administrative…

TL10
- 31
- 1
- 1
- 3
3
votes
1 answer
Warning and fatal error when using git on windows?
When I want to get the current status or use any git command I will see these two lines of errors:
warning: unable to access 'C:/Program Files (x86)/Git': Permissio
fatal: cannot use C:/Program Files (x86)/Git as an exclude file
Where is the…

Soroush Khosravi
- 887
- 2
- 11
- 30
3
votes
2 answers
System.UnauthorizedAccessException with SPWebpartmanager
We are running SharePoint 2010 farm. I have removed all access to a sitecollection "Provider" from a user group. "Provider" is the default sitecollection that a user logs in to.
We have a custom access denied page that inherits from…

Rahul K Rathod
- 31
- 1
- 4
3
votes
0 answers
Why can't my code get MainModule of the current process?
I have the following code that is being run from under a local user that belongs to Users group:
String processName = System.Diagnostics.Process.GetCurrentProcess().MainModule.ModuleName;
that fails with System.ComponentModel.Win32Exception…

sharptooth
- 167,383
- 100
- 513
- 979
3
votes
1 answer
Where to see PHP error log if no access to /var/log/apache
My web host is running ubuntu 10.04 for our web server. I am trying to see my PHP error output that I usually would see in /var/log/apache2/error_log... but I have no access to /var/log/apache2/. I am getting an HTML 500 error, and usually I would…

jeffery_the_wind
- 17,048
- 34
- 98
- 160
3
votes
0 answers
How to troubleshoot UnauthorizedAccessException when calling ManagementScope.Connect()
I am looking for ideas to gather more information from the system about why a remote WMI call is failing.
The detailed steps in Which permissions/rights does a user need to have WMI access on remote machines? were helpful, but either I've…

Shannon Wagner
- 361
- 7
- 25
3
votes
3 answers
Access denied when creating registry key
I am trying to create a registry key at following location but I am getting access denied error:
HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\MyProgram
Here is the code:
RegistryKey reg;
reg =…

Ali
- 1,801
- 6
- 43
- 58