473,322 Members | 1,523 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,322 software developers and data experts.

Access to the path is denied: Assembly Permission Problem

I have a web service running impersonation of a domain account on Windows
Server 2003. I need to access a share which the Web Service classes,
themselves, appear to be able to create and access. However, when an
assembly (that is in the GAC, strongly named, etc.) is called to process the
file, I receive the message: "Access to the path is denied." This
installation works fine on Windows 2000 and Windows XP Professional.
However, Windows Server 2003 appears to require more security settings.

I think this has something to do with the Global Assembly Cache and trusted
assemblies. Although, I don't know for sure. I am unable to specify the
assembly as "Full Trust" through the "Microsoft .NET Framework 1.1
Configuration" tool as I receive the error "Unable to add the selected
assembly. The assembly must have a strong name (name, version and public
key)." I read in one of the newsgroups that "caspol –af" could be used.
This didn't help either—it just stated: "ERROR: Unable to load assembly".

Does anybody have any ideas regarding what I can do to get the assembly to
read the share drive file properly?

Any help will be greatly appreciated.

Thanks.

-Charles V. Leonard
el*************@hotmail.com

(remove the "_remove" before replying if using e-mail)
Nov 23 '05 #1
2 10013
Are you sure this is not related to configuration of delegation?

Even if the logged-on-user has access to the share, a process running-as or
impersonating the user does not, by default, have the same level of network
access.

In Windows server 2000 domains, delegation is either on or off for each user
account.

In domains raised to "Windows 2003" functional level it can be configured
for each server/service for each user.

Try following KB articles for more info
http://www.microsoft.com/technet/pro...5631c389f.mspx
(or search google with - including quotes - "Allow a user to be trusted for
delegation")

Also http://support.microsoft.com/kb/810572
Nov 23 '05 #2
Thanks for posting your solution. I can see your point about new threads...

Impersonation is associated with a thread.
A new thread inherits the security context of the process - not the thread
that starts it.

If you need to impersonate on a new thread I guess you can pass the token
across.
Nov 23 '05 #3

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

Similar topics

3
by: Ian | last post by:
The beginning of my assembly that I am getting the access error from looks like this. ********************************* Imports System.EnterpriseServices Imports System Imports...
7
by: Charts | last post by:
I login as administrator of the machine. However running the following code get access denied exception for file inside the directory. The source code: DirectoryInfo target = new...
4
by: Brent Bigler | last post by:
The computer: W2K server, domain controller, Microsoft.Net Framework 1.1 ======================== The error message: Access to the path "c:\fanmail\newfiles" is denied .... Exception...
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...
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 ...
0
by: amirghz | last post by:
Hey There Everyone, I had a question. we have a site that was built using MCMS and ASP.NET 1.1 we are trying to recompile the site so we can implement the changes that was want to make. but we...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.