access-denied

mysql “access denied for user” (only happens when connecting via php)

♀尐吖头ヾ 提交于 2019-12-10 10:57:25
问题 I created user dashboard and granted it various privileges (such as SHOW DATABASES ). I initially set the Host=[private ip of web-server], but kept getting access denied errors returned from php's mysql_connect , so I set Host=192.168.% so any machine on our network can access it. I can successfully connect to the mysql Db on the Db server from my Mac using MySQLWorkbench (and successfully ran SHOW DATABASES; ), but when I just try to connect via php on our webserver, I just get: Access

After COM API call, getting EOSError Exceptions (access denied) but only when switching users or Locking the station on Windows 7

我与影子孤独终老i 提交于 2019-12-10 10:36:06
问题 I have a Delphi 6 application that is getting an EOSError Exception, code 5, access denied but only when I switch away to another Windows 7 user account, or I Lock the station. I am printing out a stack trace but the error appears to be coming straight from the Application.Run() statement with Application.ProcessMessages() immediately beneath it on the stack. The rest of the stack is my Exception handling code. During operation the code does make calls to ShellExecuteEx() and accesses a COM

Access to the path 'C:\Users\xxx\Desktop' is denied

空扰寡人 提交于 2019-12-09 02:07:30
问题 I have thoroughly searched the entire access denied questions and did't find any question related to access to windows form on my own system all the questions are related to web app. public partial class Form2 : Form { public Form2() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { byte[] imgdata; FileStream fsrw; string fname; openFileDialog1.Filter = "Sai Files(*.JPG;*.GIF)|*.jpg;*.gif|All files (*.*)|*.*"; openFileDialog1.ShowDialog();//opens the dialog

PerformanceCounterCategory.GetCategories() throws exception ArgumentException - Invalid value '' for parameter 'categoryName'

大憨熊 提交于 2019-12-08 15:59:16
问题 When I try to run this code: var categories = System.Diagnostics.PerformanceCounterCategory.GetCategories(); I get an ArgumentException exception. I already tried the following with no luck: How to manually rebuild Performance Counter Library http://support.microsoft.com/kb/300956 lodctr /R Logged in as a local administrator. Disabled User Access Control (UAC) Made my user member of the Performance Monitor Users group. I get the same result whether I run Visual Studio 2008, 2010 or 2012, on a

Checking the permissions of a shared folder on another Windows failed with access denied?

一个人想着一个人 提交于 2019-12-08 13:01:48
问题 i'm writting some c++ code retrieving the permissions of shared folds in another computer, by "permissions" i mean something like which user or group is permitted or denied to this folder. Here's the function to get the NTFS security descriptor of a shared folder(named strFileName) in a certain remote machine(named strServerName whose ip is strServerIP).The question is when i delete the "Everyone" account in the "Share" tab of the folder, the GetNamedSecurityInfo function would fail with

Windows Server 2016 IIS hosted website failed to load dll on a remote file share with remote server's user/password

时光怂恿深爱的人放手 提交于 2019-12-08 09:12:10
问题 An extended topic of this question: Windows Server 2016 IIS hosted website failed to load dll on a remote file share on AlibabaCloud I have tried to put the IIS website on a remote file share on Windows Server 2012/2016 machine B, and load this IIS website on a Windows Server 2016 machine A. A can access B's file share. However, if A's IIS loads B's file share's website with B's administrator name and password, A's IIS fails to load dlls of the website. It shows access denied when loading

Issues about files or folders in use: get the name of another Process that use file or folder

瘦欲@ 提交于 2019-12-08 08:48:57
问题 I using C# .NET , vs 2008 , .net 3.5 For me, is difficult, but I need sample code in C# for this: Check if a file or a folder is in use If file or a folder is in use, the name of Process that use it For example, in my issue. I try delete file, and I get "The process cannot access the file 'XYZ' because it is being used by another process." Exception. File.Delete(infoFichero.Ruta); I want check if a file is in use, and the name of Process that use it. I need sample code, source code, please. I

Website DLL Access Denied

只愿长相守 提交于 2019-12-08 07:53:37
问题 I just recently inherited a website and while there are errors in the build (its missing import Microsoft.VisualBasic in a few places and i have fixed these) There was no solution files with this website so i have just added my own and imported the website, what i am finding now is that when i build the website i get Error 1 Could not load file or assembly 'ActiveReports.Chart, Version=6.2.3681.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' or one of its dependencies. Access is denied.

Permission to provision new site collection through workflow

有些话、适合烂在心里 提交于 2019-12-08 07:38:56
问题 I am stuck onto a very strange situation. I have a workflow that i use to provision new site on my web application. This workflow uses one custom workflow activity to provision the site using followoing statement. ---other code omited for clarity---- SPSiteCollection.Add() This statement is throwing followign exception when my applicaiton pool account is not same as Central Admin applicaiton pool account. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at Microsoft

I can't access unc path from C#. Getting access is denied

妖精的绣舞 提交于 2019-12-08 06:33:55
问题 I'm using Windows Server 2008 and IIS 7.5 I'm trying to access a file this way: \server\C$\temp\testFile.log from C# code running on another server. My username is an admin on both servers. The code is running under that account. The temp folder has been set to full rights for (my user) and ASP.NET. Why can't I access it? I can't do a shared folder; against the rules. I am already running under full account; therefore, I don't need to do impersonation, right? 回答1: Is this a web app? Are you