Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLS HELP : CoCreateInstance on IE object failed on XP/SP2

Status
Not open for further replies.

senpuppy

Programmer
Sep 27, 2004
3
0
0
US
Hi,

Here is the part of the EXE code:

if (FAILED (CoInitialize (NULL)))
{
return FALSE;
}
...
...
HRESULT hr;
IWebBrowser2* pWebBrowser = NULL;
hr = CoCreateInstance (CLSID_InternetExplorer, NULL,
CLSCTX_LOCAL_SERVER, IID_IWebBrowser2,
(LPVOID*)&pWebBrowser);

====> hr is 0x80070005 - Access is denied.

This is happening only with Windows XP/SP2. On the same PC with SP1, it works fine also it works fine on W2K.

Can someone PLEASE help me to solve this issue?

Regards
SenPuppy
 
Hi, don't know if you are still trying to resolve this problem but we were having a similar problem (ie, 0x80070005 Access is denied).

We found there are a couple of settings in Local Security Policy on the XP box (Administrative Tools > Local Security Policy > Local Policies > Security Options).

There are two DCOM settings - we allowed the Everyone Group to have "Remote Launch" and "Remote Activation" for both settings and this resolved the issue (obviously you can probably nail this down to a specific user/group as required).

Regards
Alan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top