Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Strange file access

Reply
Thread Tools

Strange file access

 
 
Mr Seth T
Guest
Posts: n/a
 
      07-19-2006
I have an .NET 2.0 web application that I am using to create, read,
encrypt, and delete an XML file. It all works great when I am testing
it on the local machine that I am using as a web server, in debug and
release using impersonation, but when I use a different computer to log
on to the same page, using the same user id, it returns with an
UnauthorizedAccessException saying that I do not have access to the
file. The file is not on either machine. The path I use is
\\<server>\<folder>\<folder>\setup.xml and I have already tried it
mapped as z:\f<folder>\<folder>\setup.xml , but when I use the machine
that is running IIS, neither paths gave me any trouble at all. I have
also checked System.Security.Principal.WindowsIdentity.GetCurre nt()
while using both and, as far as I can tell, they are identical except
that the one ran from the IIS machine has the extra group "LOCAL", and
the remote attempts don't, but that seems unimportant. (at least I
hope it is because I have tried to add the current user to the role
"LOCAL", but can't get it to work)

Any help anyone can share would be greatly appreciated, I thank you in
advance.

-Seth

 
Reply With Quote
 
 
 
 
Mike Brind
Guest
Posts: n/a
 
      07-19-2006

Mr Seth T wrote:
> I have an .NET 2.0 web application


<snip>

Try a dotnet group: microsoft.public.dotnet.framework.aspnet

This group is for classic ASP which is a totally different technology.

--
Mike Brind

 
Reply With Quote
 
 
 
 
Mr Seth T
Guest
Posts: n/a
 
      07-20-2006
sorry, and thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
AVG Email Scanner activating at strange times with strange IP addresses dennispublic@hotmail.com Computer Support 1 08-26-2006 04:27 AM
Strange file access problem Mr Seth T ASP .Net 1 07-27-2006 03:41 PM
How do I let people access the internet via an access point but not allow them access to my network yar Wireless Networking 4 09-21-2004 03:48 AM
Question About Strange 'C' Code Syntax ( Well strange to me anyway ) Harvey Twyman C Programming 8 10-25-2003 05:54 AM



Advertisments