Access is Denied

  • Thread starter Thread starter Kulwinder Deol
  • Start date Start date
K

Kulwinder Deol

Hello,

I'm new to .NET so bear with me as I ask a simple
question. I'm attempting to utilise a component developed
by another developer. Unfortunately when I try actually
create an instance of the class I want I get an access is
denied error. The exception stack is as follow;

strExceptionTrace " at
System.Runtime.InteropServices.Marshal.ThrowExceptionForHR
(Int32 errorCode, IntPtr errorInfo)
at
System.Runtime.InteropServices.Marshal.ThrowExceptionForHR
(Int32 errorCode)
at System.EnterpriseServices.Thunk.Proxy.CoCreateObject
(Type serverType, Boolean bQuerySCInfo, Boolean&
bIsAnotherProcess, String& uri)
at
System.EnterpriseServices.ServicedComponentProxyAttribute.C
reateInstance(Type serverType)
at
System.Runtime.Remoting.Activation.ActivationServices.Creat
eInstanceWithLinkDemand(ProxyAttribute pa, Type serverType)
at
System.Runtime.Remoting.Activation.ActivationServices.IsCur
rentContextOK(Type serverType, Object[] props)
at HireDesk.Exchange.ExchangeSystem.LoadMemberList
(String systemId) in
c:\code\exchangesystem\exchangesystem.cs:line 371"
string

I am an administrator on my machine and all components are
local to my machine.

Thanks for any help,

Kulwinder
 
Kulwinder said:
Hello,

I'm new to .NET so bear with me as I ask a simple
question. I'm attempting to utilise a component developed
by another developer. Unfortunately when I try actually
create an instance of the class I want I get an access is
denied error. The exception stack is as follow;
System.Runtime.Remoting.Activation.ActivationServices.IsCur
rentContextOK(Type serverType, Object[] props)
at HireDesk.Exchange.ExchangeSystem.LoadMemberList
(String systemId) in
c:\code\exchangesystem\exchangesystem.cs:line 371"
string

Why don't you take a look at the code here ^^^^^ ?
Did you try a debugger? :)

Vadim Chekan.
 
Back
Top