Forum Moderators: open

Message Too Old, No Replies

Permissions in XP

Write access is denied

         

Chuck_L

11:07 pm on Mar 29, 2003 (gmt 0)

10+ Year Member



I just finished putting XP on my box and put ASPNET user in the Administrator group ( for the time being ).
I then fired up VS.NET and “bam” I get:

“System.Data.OleDb.OleDbException: Operation must use an updateable query” when I try to write to a database

AND

“System.UnauthorizedAccessException: Access to the path "hello.jpg" is denied” when I try to delete a jpeg.

I even went so far as to make sure ASPNET user itself ( not just the Administrators on my box ) had Full control of the files in question. No dice.

Has anyone else had this problem with XP? I’ve been running VS.NET on 2000 since conception and figured out all the ins and outs…now it seems I have to start over with XP.

Thanks,
Chuck L.

Chuck_L

4:21 pm on Mar 30, 2003 (gmt 0)

10+ Year Member



I figured out a work around.

I'm dual booting with WIN2000 on one hard drive and XP Pro on another.

I created the original ( problem ) application folder with WIN2000 and the VS.NET installed on that drive.

For some reason, when I copied the folder from the WIN2000 drive to the XP drive, something screwy happened with the permissions effecting how the ASPNET user can use it. ( I.e. the ASPNET user had read only access...even though I purposely gave ASPNET write access ).

SOULITION: I booted up XP and recreated the application in a completely different folder. I then added all the files to the new application using VS.NET. Everything worked fine from then on.

-Chuck