Groups | Blog | Home
all groups > dotnet component services > july 2003 >

dotnet component services : COM+ Object - Class doesn't support Automation for other user, just me?


Scott Townsend
7/18/2003 7:19:14 AM
I've created a VS.Net COM+ Object in VB.Net and have been able to write a
test App on the PC that I created the COM+ object and it works great.

I then had one heck of a time getting the COM+ Object installed on our
Webserver (Win2003, IIS6 & .Net Framework) I'm still pretty sure I didn't
install it right (or have written the Object Right)

If I connect to the Webserver with my user credentials I can create the
Object, set properties and call the methods with no problems.

If I connect to the server as another users I was first getting Security
Perms error on Object Creation. I think I fixed that.

Though now when I try to call a method of the Object I get the Following:

Microsoft VBScript runtime (0x800A01AE)
Class doesn't support Automation: 'objMyCoolObject.DoIt'

I've also tried installing the COM+ object on a Win2000 IIS5 ( & .Net
Framework) Server and It gives me the same Error no matter who is logged in.


So My Questions are: (-;

How do create and install a COM+ Object that can be used in a IIS5 and IIS6
environment. What are the Security issues involved?
We have added the Component in the same Application as other COM+ object we
have written, though they were written in VB6. The Application is running
under the context of a specific user not the local system account.

Any info would be appreciated!

Thanks,
Scott<-

Claudiu Tomescu
7/18/2003 4:58:51 PM
Hi Scott,

The message clarly states your object doesn't expose the IDispatch
interface. In order to call an object from ASP page the object should expose
IDispatch interface.
Modify your COM+ code by adding a declarative attribute
[ClassInterface(ClassInterfaceType.AutoDispatch)]

HTH,
Claudiu

[quoted text, click to view]

Scott Townsend
7/21/2003 9:55:10 AM
Thank you for your reply!

I'm new to COM Objects and .Net.

I'm wondering why I can call the object and methods when I'm logged into the
site as myself (Administrator) and when another users tries I get the Error.
Seems like if the object doesn't expose IDispatch, then it wouldn't be there
for everyone?

Do I need to do anything Different when writing the object to use on
Win2003/IIS6 vs Win2000/IIS5??

Thanks again!
Scott<-
[quoted text, click to view]

AddThis Social Bookmark Button