473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Access is Denied

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.ThrowExcept ionForHR
(Int32 errorCode, IntPtr errorInfo)
at
System.Runtime.InteropServices.Marshal.ThrowExcept ionForHR
(Int32 errorCode)
at System.EnterpriseServices.Thunk.Proxy.CoCreateObje ct
(Type serverType, Boolean bQuerySCInfo, Boolean&
bIsAnotherProcess, String& uri)
at
System.EnterpriseServices.ServicedComponentProxyAt tribute.C
reateInstance(Type serverType)
at
System.Runtime.Remoting.Activation.ActivationServi ces.Creat
eInstanceWithLinkDemand(ProxyAttribute pa, Type serverType)
at
System.Runtime.Remoting.Activation.ActivationServi ces.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
Nov 15 '05 #1
1 1349
Kulwinder Deol wrote:
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.ActivationServi ces.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.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: calfdog | last post by:
Hello, Does anyone know a workaround for calling fireEvent. With the latest from Microsoft OS XP2 and Hot fixes to IE it now gives an "access denied" error in Python when called. Here is what...
0
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
16
by: Brad | last post by:
After compiling my asp.net project I'm receiving a "BC31011 - Access is denied" error when attempting to run or debug. The only thing that seems to resolve problem is IISReset. After a reset my...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
8
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.