Re: Issue on calling CoRegisterClassObject in service application on Windows Server 2003
From: Dmitrii Zakharov [MSFT] (dmitriiz_at_microsoft.com)
Date: 10/29/03
- Previous message: Chip Camden: "Administrator required for login -- pls help"
- In reply to: Harry Li: "Issue on calling CoRegisterClassObject in service application on Windows Server 2003"
- Next in thread: Harry Li: "Re: Issue on calling CoRegisterClassObject in service application on Windows Server 2003"
- Reply: Harry Li: "Re: Issue on calling CoRegisterClassObject in service application on Windows Server 2003"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 28 Oct 2003 17:16:44 -0800
Hi, Harry,
I know of only one case when you will see 0x80004015 returned from
CoRegisterClassObject( ). This happens when you try to register a CLSID that
has an APPID with RunAs account different from your server's identity. I
don't know whether this is what happens in your case, but it's only
explanation I have.
Now, however, I can explain why you had success in Win2000 and you regressed
in Win2003:
In Win2000: any process can register ANY CLSID for a server if it is 1.
service 2. running now. COM doesn't block the registration in this case.
This is inherently a bug.
In Win2003: the bug is fixed. COM blocks incorrect registration ALWAYS and
you see the error.
Hope this helps,
Dmitrii
"Harry Li" <Hongjiangl@hotmail.com> wrote in message
news:Oi0RgWBmDHA.2436@TK2MSFTNGP09.phx.gbl...
> Hi Everyone,
>
> I got a problem when running an COM service application on windows Server
> 2003 machine. It is working fine on windows 2000. Basically, I have this
COM
> application can be running as local server or services. It is working
great
> when running as local server on Windows Server 2003, but not when running
as
> services. It fails when calling CoRegisterClassObject and the return error
> is 0x80004015, which means "The class is configured to run as a security
id
> different from the caller ". I did find some topics on help to get around
it
> in the debug mode ( remove the LocalService name value pair from
> "HKey_class_root\appid\your applicatoin" registry). Even I did this in the
> release mode, I will get the same error code when registering my COM
object
> in the system running table ( Call: IRunningObjectTable::Register()) I am
> really blocked by this. I really appreciate if any expert can help me on
> this.
>
> Thanks.
>
> -Harry.
>
>
- Previous message: Chip Camden: "Administrator required for login -- pls help"
- In reply to: Harry Li: "Issue on calling CoRegisterClassObject in service application on Windows Server 2003"
- Next in thread: Harry Li: "Re: Issue on calling CoRegisterClassObject in service application on Windows Server 2003"
- Reply: Harry Li: "Re: Issue on calling CoRegisterClassObject in service application on Windows Server 2003"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|