Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / September 2003

Tip: Looking for answers? Try searching our database.

Create COM+ object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pavel Kocar - 25 Sep 2003 08:47 GMT
Hi,

   I can't start my service. This service run as user (with user right,
security "run as service"). This service want to create COM + application
run under this same user. If I want to start my service throws next
exception:

Service cannot be started. System.UnauthorizedAccessException: Access is
denied.
  at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32
errorCode, IntPtr errorInfo)
  at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType,
Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)
  at
System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Typ
e serverType)
  at
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Typ
e serverType, Object[] props, Boolean bNewObj)
  at MobileTouch.CertificateProvider.OnStart(String[] args)
  at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object
state)

      Can someone help me?

   P.K.
Arild Bakken - 25 Sep 2003 13:23 GMT
> Hi,
>
[quoted text clipped - 10 lines]
> Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)
>    at

System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Typ
> e serverType)
>    at

System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Typ
> e serverType, Object[] props, Boolean bNewObj)
>    at MobileTouch.CertificateProvider.OnStart(String[] args)
[quoted text clipped - 4 lines]
>
>     P.K.

By "create COM+ application" I assume you mean "instantiate component hosted
in COM+ application" ?

What OS are you using?
Have you enabled security on the COM+ application?
Does the COM+ app start when you start the service?
Do you get the same error if you start the COM+ app manually before starting
the service?

Arild

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.