msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

COM+ Component will only work when....

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
BillGatesFan



Joined: 04 Oct 2007
Posts: 1

PostPosted: Thu Jul 26, 2007 1:08 pm    Post subject: COM+ Component will only work when.... Reply with quote

My COM+ Component will only work when the user that the componponent
is running under is logged on the server. How can I fix this? I have
the component running under a specific user not interactive user.

Archived from group: microsoft>public>platformsdk>complus_mts
Back to top
View user's profile Send private message
Frank Boyne



Joined: 04 Oct 2007
Posts: 1

PostPosted: Thu Jul 26, 2007 5:44 pm    Post subject: Re: COM+ Component will only work when.... Reply with quote

"BillGatesFan" wrote in message @r34g2000hsd.googlegroups.com...
> My COM+ Component will only work when the user that the componponent
> is running under is logged on the server.

What is actually failing?

There are some aspects of Windows that only take effect when someone
logs on - an obvious example is the interactive user identity but there
are others. If we knew what was going wrong we might be able to help
work out what the problem is.
Back to top
View user's profile Send private message
Tony Proctor



Joined: 04 Oct 2007
Posts: 1051

PostPosted: Fri Jul 27, 2007 2:50 pm    Post subject: Re: COM+ Component will only work when.... Reply with quote

If I remember correctly, COM+ does not load the user profile for the account
that the code is running under - probably for reasons of efficiency. So, for
instance, if your code is looking for a User-level environment variable then
it won't see it.

You can load your own user profile but that requires Administrator privilege
(- even if it's your own profile!)

Have you worked out why the code fails if the profile isn't loaded? In other
words, do you know what aspect of the profile it's looking for?

Tony Proctor

"BillGatesFan" wrote in message@r34g2000hsd.googlegroups.com...
> My COM+ Component will only work when the user that the componponent
> is running under is logged on the server. How can I fix this? I have
> the component running under a specific user not interactive user.
>
Back to top
View user's profile Send private message
Carsten Hammer



Joined: 04 Oct 2007
Posts: 1

PostPosted: Sat Aug 04, 2007 1:47 pm    Post subject: Re: COM+ Component will only work when.... Reply with quote

Workaround is to setup a arbitrary service to automatic start and using
the user account the component should run on. Then the user profile is
loaded at boot time and you do not need the user to interactive login.
Best regards,
Carsten

BillGatesFan schrieb:
> My COM+ Component will only work when the user that the componponent
> is running under is logged on the server. How can I fix this? I have
> the component running under a specific user not interactive user.
>
Back to top
View user's profile Send private message
Sachin



Joined: 04 Oct 2007
Posts: 1

PostPosted: Tue Aug 21, 2007 5:29 pm    Post subject: Re: COM+ Component will only work when.... Reply with quote

On Aug 4, 12:47 am, Carsten Hammer wrote:
> Workaround is to setup a arbitrary service to automatic start and using
> the user account the component should run on. Then the user profile is
> loaded at boot time and you do not need the user to interactive login.
> Best regards,
> Carsten
>
> BillGatesFan schrieb:
>
>
>
> > My COM+ Component will only work when the user that the componponent
> > is running under is logged on the server. How can I fix this? I have
> > the component running under a specific user not interactive user.- Hide quoted text -
>
> - Show quoted text -

Hi

I think in the properties Tab of the component ,there is a security
tab where you can uncheck the enforce application check.It wil work

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Application Component Is there a way to find out what COM+ application a component belongs to? I'm using VB6 to write an app and I need to find out the name of the COM+ application, knowing the component name I'm passing the component name to the function. Any help would be ap

Component version numbers Hi We have a QA department that test our software prior to release. As they discover bugs, we release software fixes that they then test...the usual sort of iterative approach. At any one time, we want to take a snap-shot of their machine that lists whi

Component Request Pending Simetimes I get this error, and other times I don't I can't work out why this happens, but I assume I have an error in the code. However the project has compiled into an OCX, but I am using the code to debug. Any ideas?

ActiveX Component problem Hello, I have a Server Active/X component and a Client programme that use the Server. When I create the link with the server, I pass a Reference to a Callback function in the client to the server. When I test my application in the local system, all is fin

COM+ and VB6: User cannot access a COM+ component, after put This morning one of our users installed service pack 2 for Windows XP, "just because it was there telling me to install it". Now, he cannot access one of our VB6 COM+ components. However, he CAN access all of the others. He is getting a "Permission Den
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group