Solved

COM+ Error 70: Permission denied

Posted on 2006-10-30
5
1,550 Views
Last Modified: 2007-12-19
Hi All,

 I wrote a COM+ server application and a client app, both in VB. When the component is installed on my computer (in component services) and I try to run my client app I get "Error 70: permission denied".

What can I do to resolve this problem?

Thanks in advance
0
Comment
Question by:negreteo
5 Comments
 
LVL 4

Accepted Solution

by:
JRCSystems earned 250 total points
Comment Utility
Not sure what OS you are using, but you probably need some version of DCOMCNFG ( win 2k / xp ).
In XP, you can still run the DCOMCNFG command, but its buried with Component Services.

Error 70 permission denied is without a doubt, the single largest paint DCOM/COM+ runs into.

You will probably also want to clear all event logs ( computer management ), and further inside Local Security Settings, Local Policies/Audit Policy, turn on logging for all failures so you can see what is failing.

That should help point you in the right direction.

Another Key: If the program works properly in development (i.e. start up VB twice, load the server and start it, then load the client, make sure its references point to the 1st runninng copy of VB, and run it.) then you have a issue with either TLBs, mismatched GUIDs in DLLs, or user does not have the security to start the task.

0
 
LVL 1

Assisted Solution

by:Clivous
Clivous earned 250 total points
Comment Utility
Hi,

1. Run the tool DCOMCNFG and search your com+ component. Make sure the autorisation is fine ( set for the test the autorisation on everyone )
2. When u call the com+ component from some other component, make sure u use late binding.
    you must not lay some reference to the com+ component, but use the createobject routine. ( com+ components don't work in early binding. )

Good luck,
Hans
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now