469,315 Members | 1,795 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

CJM
I've built an application in VB6 does some processing - it's not really
important what it does...

The application consists of a single DLL which does all the hard work, and a
simple EXE which acts as the front-end.

I designed it this way in the hope that I could also build an intranet app
that controls the same component (DLL).

I'm building the intranet page now, but I get this error when I try to
instantiate the component. Rather than fiddle aimlessly with the
permissions, I thought I'd post here and find out what I am missing.

What permissions do I need to set up and where?

Thanks


Jul 19 '05 #1
9 38927
Start--Run--dcomcnfg

Select your component, pull up the properties, go to the security tab, and
give your IUSR account the rights to access and launch the component.

Ray at work
"CJM" <cj*******@newsgroups.nospam> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...
I've built an application in VB6 does some processing - it's not really
important what it does...

The application consists of a single DLL which does all the hard work, and
a
simple EXE which acts as the front-end.

I designed it this way in the hope that I could also build an intranet app
that controls the same component (DLL).

I'm building the intranet page now, but I get this error when I try to
instantiate the component. Rather than fiddle aimlessly with the
permissions, I thought I'd post here and find out what I am missing.

What permissions do I need to set up and where?

Thanks

Jul 19 '05 #2
CJM
Ray,

None of my components are listed!

I saw the previous post regarding this which pointed to this page:
http://support.microsoft.com/default...b;en-us;198432

I assumed that since my components weren't listed that it wasnt applicable
to me.

However, you seem to be offering the same advice... Have I missed something
out of the compilation stage?

Cheers

Chris
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OU**************@TK2MSFTNGP14.phx.gbl...
Start--Run--dcomcnfg

Select your component, pull up the properties, go to the security tab, and
give your IUSR account the rights to access and launch the component.

Ray at work
"CJM" <cj*******@newsgroups.nospam> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...
I've built an application in VB6 does some processing - it's not really
important what it does...

The application consists of a single DLL which does all the hard work, and a
simple EXE which acts as the front-end.

I designed it this way in the hope that I could also build an intranet app that controls the same component (DLL).

I'm building the intranet page now, but I get this error when I try to
instantiate the component. Rather than fiddle aimlessly with the
permissions, I thought I'd post here and find out what I am missing.

What permissions do I need to set up and where?

Thanks


Jul 19 '05 #3
I honestly don't know what makes it show up in that list. I thought that if
you regsvr32'ed it, it'd show up there, but honestly, this is beyond the
scope of my knowledge. If no one else chimes into this thread with ideas, I
suggest inquiring about how to get your component to show up in there in an
ActiveX group or a VB group perhaps.

Ray at work

"CJM" <cj*******@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Ray,

None of my components are listed!

I saw the previous post regarding this which pointed to this page:
http://support.microsoft.com/default...b;en-us;198432

I assumed that since my components weren't listed that it wasnt applicable
to me.

However, you seem to be offering the same advice... Have I missed
something
out of the compilation stage?

Cheers

Chris
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OU**************@TK2MSFTNGP14.phx.gbl...
Start--Run--dcomcnfg

Select your component, pull up the properties, go to the security tab,
and
give your IUSR account the rights to access and launch the component.

Ray at work
"CJM" <cj*******@newsgroups.nospam> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...
> I've built an application in VB6 does some processing - it's not really
> important what it does...
>
> The application consists of a single DLL which does all the hard work, and > a
> simple EXE which acts as the front-end.
>
> I designed it this way in the hope that I could also build an intranet app > that controls the same component (DLL).
>
> I'm building the intranet page now, but I get this error when I try to
> instantiate the component. Rather than fiddle aimlessly with the
> permissions, I thought I'd post here and find out what I am missing.
>
> What permissions do I need to set up and where?
>
> Thanks
>
>
>
>



Jul 19 '05 #4
CJM
Ok, thanks Ray.

I'll repost in vb.general, and I'll post the result back here...

Chris

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OM**************@TK2MSFTNGP12.phx.gbl...
I honestly don't know what makes it show up in that list. I thought that
if you regsvr32'ed it, it'd show up there, but honestly, this is beyond the
scope of my knowledge. If no one else chimes into this thread with ideas,
I suggest inquiring about how to get your component to show up in there in
an ActiveX group or a VB group perhaps.

Ray at work


Jul 19 '05 #5
Hello,

What is the type of your DLL file, an ActiveX DLL project? What is the OS'
version? If you temporarily add the IUser_ComputerName to local
administrator group, can this problem be resolved?

Luke

Jul 19 '05 #6
CJM
Luke,

Yes, the DLL is an ActiveX DLL (VB6). And I'm running on XPSP1.

I tried adding the IUSR user to the local admins group but that didnt make
any difference.

Any ideas why any of my components dont appear on the DCOM lists?

Cheers

Chris

"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:$i**************@cpmsftngxa06.phx.gbl...
Hello,

What is the type of your DLL file, an ActiveX DLL project? What is the OS'
version? If you temporarily add the IUser_ComputerName to local
administrator group, can this problem be resolved?

Luke

Jul 19 '05 #7
Hi Chris,

Since administrator also cannot invoke the component, it seemd be a COm
register issue. You may try following steps:

1. unregister the dll with "regsvr32 /u filaname.dll"
2. copy the DLL to the Windows\System32 folder
3. register it again with its new path

will this fix the problem?

Luke

Jul 19 '05 #8
CJM
Luke,

There are two objects from two DLLs that I want to instantiate.

After unregistering the DLLs and moving & re-registering in System32, I had
some partial success.

With the first (less important) one, I could create the object, but it didnt
seem to recognise its properties.

With the second ( & important) one, the move seemed to work. However this
meant that the windows version of the program no longer worked.

I rebooted, then recompiled , moved and re-registered the components, and
then tried again but this time nothing worked.

[30 min detour]

I've just installed the ASP code and the components on a development server,
and had much more success. Both components can be instantiated, and the I've
figured out the problem with the first component's properties being
recognised:

The VB application is using interfaces, but ASP can't handle interfaces.
Therefore, PropertyName will not be recognised, so instead I must refer to
it as Interface_PropertyName. This also appears to work.

I still have no idea why it doesnt work on my machine... Even though there
is the complication of it being the development machine, it should still
work. If you have any ideas why this might be I'd like to pursue this issue,
but at least I know I can finish the project on the seperate server...

Thanks

Chris

"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:n1*************@cpmsftngxa06.phx.gbl...
Hi Chris,

Since administrator also cannot invoke the component, it seemd be a COm
register issue. You may try following steps:

1. unregister the dll with "regsvr32 /u filaname.dll"
2. copy the DLL to the Windows\System32 folder
3. register it again with its new path

will this fix the problem?

Luke

Jul 19 '05 #9
Hi Chris,

Thank you for the information. I think the main reason for it worked on the
development server is the development is a clean computer for the COM
component. On your original computer, the component had been registered for
times and its inface may get changed for times. There may be some registry
errors. A possible soultion is create a new project with a new name and
copy all code to the new project. And we had better use binary
compatibility for the project.

Luke

Jul 19 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by geodev | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.