Error: 0x80070005 - Access Denied in ComObjCreate...

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
tyyi
Posts: 84
Joined: 23 Dec 2015, 08:51

Error: 0x80070005 - Access Denied in ComObjCreate...

27 Apr 2017, 20:48

Dear All,

I really frustrated just now. :(
I have one script that I use at least for 2 years without any problem.

No changes in my script, actually I was using it a while ago.
I am sure no changes in my any program on windows 10.

Suddenly, when I run the script, I met the error as below;
------------------------------------------------------------------------
Error: 0x80070005 - Access Denied.

Line#
..
..
..
-> 030: wb := ComObjCreate("InternetExplorer.Application")
..
..
..

Continue running the script?
------------------------------------------------------------------------

To solve, I killed all IE from Task Manager firstly.
At that time, I thought this kind of errors are very easy to handle. ( I couldn't think I have to write this issue in this forum. )

My laptop environment is Windows 10 (64bit) / IE11

Could you please help me...it is very urgent thing to me. ( I really feel again that AHK is very very helpful for my works. )

Please.
tyyi
Posts: 84
Joined: 23 Dec 2015, 08:51

Re: Error: 0x80070005 - Access Denied in ComObjCreate...

28 Apr 2017, 00:31

Other scripts using IE Com make a same script error... :?

0x80070005 Access Denied
wb := ComObjCreate("InternetExplorer.Application")

Please help me.
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Error: 0x80070005 - Access Denied in ComObjCreate...

28 Apr 2017, 13:17

Have a look on the internet and try the suggested solutions, this is not an ahk issue!
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Error: 0x80070005 - Access Denied in ComObjCreate...

28 Apr 2017, 14:35

Possibly ending Explorer.exe (e.g. via Task Manager) and reopening (by doing 'File, New Task (Run...)' and typing explorer.exe) would work (do this at your own risk). Or restarting the computer. Sometimes my Explorer 'goes a bit funny', and COM things don't work.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
tyyi
Posts: 84
Joined: 23 Dec 2015, 08:51

Re: Error: 0x80070005 - Access Denied in ComObjCreate...

29 Apr 2017, 01:30

HotKeyIt wrote:Have a look on the internet and try the suggested solutions, this is not an ahk issue!
Thank you for your answer, I know it is not due to AHK.
So I did recover IE 11, but it didn't work.
When I ran my scripts, Network had no problem also.

Anyway, I had to recover my Windows 10, and now my scripts work well as before.

Thank you again.
tyyi
Posts: 84
Joined: 23 Dec 2015, 08:51

Re: Error: 0x80070005 - Access Denied in ComObjCreate...

29 Apr 2017, 01:31

jeeswg wrote:Possibly ending Explorer.exe (e.g. via Task Manager) and reopening (by doing 'File, New Task (Run...)' and typing explorer.exe) would work (do this at your own risk). Or restarting the computer. Sometimes my Explorer 'goes a bit funny', and COM things don't work.
Before seeing your post, I had recovered my Windows 10, now my scripts work well as before.

I don't want, but if this kind of issues are happen someday, I will try your recommendation first.

Thank you for your answer!
burque505
Posts: 1732
Joined: 22 Jan 2017, 19:37

Re: Error: 0x80070005 - Access Denied in ComObjCreate...

13 Jun 2017, 14:21

@tyyi, while HotKeyIt is right (it's not an AHK issue, or at least not JUST an AHK issue, as both PowerShell and AutoIt throw basically the same error), it's affecting my work with AHK too.

I personally haven't found a solution to the same problem (Win7 x64 here). And I've spent about twelve hours applying advice found on the Web, of which exactly zero has worked (Control Panel, gpedit.msc, subinacl.exe, changing ownership of Program Files). My problem also started in April 2017 after an update to IE 11. Most of the advice was directed at PowerShell and VBScript, and it didn't help. Exactly zero of it was directed at AHK, which is of course frustrating.
qwerty12
Posts: 468
Joined: 04 Mar 2016, 04:33
Contact:

Re: Error: 0x80070005 - Access Denied in ComObjCreate...

13 Jun 2017, 15:58

burque505 wrote:I personally haven't found a solution to the same problem (Win7 x64 here).
Do you use Sandboxie by any chance? As pointed out on the AutoIt forum, version 5.18 blocks InternetExplorer.Application even outside of a sandboxed process...
burque505
Posts: 1732
Joined: 22 Jan 2017, 19:37

Re: Error: 0x80070005 - Access Denied in ComObjCreate...

13 Jun 2017, 17:52

@qwerty12:

As usual, your advice is spot on. Sandboxie blocked script creation even though it wasn't running! Wild.
As soon as I uninstalled it the COM object could be created.
Also, the following PowerShell command now worked: $ie2 = New-Object -ComObject InternetExplorer.Application.
I'll try AutoIt also, but I'm sure it will work too if Powershell and AHK did.

Kudos to you again for your excellent advice and research.
I didn't even think to include AutoIt in my searches with 0x80070005, just Powershell, AHK and VBS.

@tyyi, do you have Sandboxie installed too? This worked like a charm for me.

Regards,
burque505

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 241 guests