access-denied

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

孤人 提交于 2019-12-06 06:30:58
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/ActiveX object, but only when the user explicitly clicks a button. This only happens on Windows 7, not

jQuery input file click method and access denied on IE

牧云@^-^@ 提交于 2019-12-06 06:19:38
I'm trying to use only a button as input file, it works fine in Firefox, Chrome, Safari but not in IE... I always get 'access denied' when submitting the form. The code: $('#input_file').click(); Is there a real fix for it? I wasted about 2 hours on google but I can't find it. I found a way around it. Wrap the button in label tags like this: <label for="fileinput"><div class="button">Upload file</div></label> <form> <input id="fileinput" name="file" type="file"> </form> Clicking the label will trigger the file input without invalidating the form in internet explorer (tested in IE9 & IE10) EDIT

Access Denied trying to purge printqueue in C#

那年仲夏 提交于 2019-12-06 01:11:34
问题 I'm trying to make a method in C# that empties all items in a print queue. Below is my code: LocalPrintServer localPrintServer = new LocalPrintServer(PrintSystemDesiredAccess.AdministratePrinter); PrintQueue printQueue = localPrintServer.GetPrintQueue(printerName); if (printQueue.NumberOfJobs > 0) { printQueue.Purge(); } When this code runs, on the localPrintServer constructor, the app throws this error: "An exception occurred while creating the PrintServer object. Win32 error: Access is

How can I copy/replace a DLL?

好久不见. 提交于 2019-12-05 22:13:27
问题 I have a utility which updates applications by simply copying/replacing the executables. Now, I have some DLL files which need to be updated as well. However, sometimes Windows will not let me replace it because something is using it, and sometimes there's so many things using the DLL that I cannot guarantee it will be unlocked for me to replace it. Currently, my only work-around is to re-name the existing DLL first, and then I can copy the new one in its place. But then the old DLL gets left

How to set current document.domain in WebBrowser Control to avoid “Access is denied”?

最后都变了- 提交于 2019-12-05 11:47:30
How can I set current document.domain in WebBrowser Control to avoid "Access is denied" in Cross-domain calls (XMLHTTP Requests or Iframe/frame access)? I've tried CurrentDocument = WebBrowserControl.Document CurrentDocument.domain = "example.com" Console.writeline("xx" & CurrentDocument.domain) This doesn't work, somehow it never reaches console.writeline Am I doing something wrong? Or should I use WebBrowserControl.ActiveXInstance ? What language are you writing this in? Are you accessing the property .Domain or the non-existant property .domain? 来源: https://stackoverflow.com/questions

cross domain XMLHttprequest

元气小坏坏 提交于 2019-12-05 10:38:57
Here is my situation: I have a Webserver machine, Client machine, and a third machine running some program that listens for XMLHttpRequests. Client accesses the Webserver from the Client machine, makes some changes, and then clicks on'Save'. At this point, data is being sent back to the Webserver and to the Third machine. All of this is being done using Javascript and XMLHttpRequest object. The post to the Webserver works fine, however post to the Third machine does not work, since it had a different IP/domain. How can I make this work? Client machine -> Third machine does not work, because

OpenProcess on x64 images from Win32 app

徘徊边缘 提交于 2019-12-05 09:09:31
This is weird. Earlier, running Windows 7 x64, I had trouble calling the Win32 OpenProcess against 64-bit processes. Googled around a bit, and came to the sinking conclusion this just wasn't gonna happen. Then a funny thing happened. I tried it against the process ID for explorer.exe, and holy carp , it worked! Started throwing other process IDs at it, and it's just a darned crapshoot. As it turns out, I can call OpenProcess against a good number of x64 processes -- explorer, itype, ipoint, taskhost, cmd, mstsc, ..., etc. And others pop a 5 (Access is denied) -- winlogon, csrss, services,

Access to the path … is denied

久未见 提交于 2019-12-05 09:09:10
I have created a .msi by using VS2008 setup project. My application frequently writes some value in a .txt file in the application directory (C:\Program Files\MyApp\MyFile.txt). After insalling it in Win7, it raises an exception "Access to the path .... is denied." But whenever I run it as administrator, no such exception occurs. Here is my sscce string FilePath=Application.StartupPath + @"\AppSettings\CurrentUserName.inf"; using (StreamWriter writer=new StreamWriter(FilePath,false)) { writer.Write(txtLoginName.Text.Trim()); } MainForm.ProcessLogIn(); this.DialogResult = DialogResult.OK; I don

Access denied for user 'username'@'localhost' (using password: YES) in C:\webdev\wamp\www\membershipSite\classes\Mysql.php on line 9

这一生的挚爱 提交于 2019-12-05 00:53:20
问题 I'm new to all of this but I do know a decent amount of HTML/CSS. I want to create a login server and I got most of the code from a video. If someone could help me and explain thoroughly so I can understand it would be greatly appreciated. If any other stuff is needed I will gladly post it. <?php require_once 'includes/constants.php'; class Mysql { private $conn; function _construct() { $this->conn = new mysqli(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME) or die('There was a problem connecting

Can't access a network share when executing a package from the SSIS Catalog

懵懂的女人 提交于 2019-12-05 00:35:32
问题 I'm currently having an issue where I can execute a package perfectly fine from SQL Server Data Tools but get the following error when trying to execute from within the SSIS Catalog: File System Task:Error: An error occurred with the following error message: "Access to the path '\xxxxxxxx\xxxx\' is denied.". " I'm logging in to SSMS and SSDT using the same log in details and was under the impression that when executing from the SSIS Catalog the credentials supplied when logging in to SSMS