Access is Denied

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
 
V

Vadim Chekan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top