Can't call File.Delete from DataPortal.

Can't call File.Delete from DataPortal.

Old forum URL: forums.lhotka.net/forums/t/10459.aspx


JonM posted on Wednesday, June 22, 2011

I'm using CSLA 4.1 with Silverlight/MVVM setup.  I'm trying to delete a file on the server but keep getting an error that I'm not authorized.  I can do a copy.  I've messed with permissions without any luck.  I've tried changing permissions and getting even the app pool user but no luck.  I'm stumped.  Why can't I delete or move a file!  Any help would be appreciated.

Jon

ajj3085 replied on Wednesday, June 22, 2011

Are you using Windows authentication?  If so, does the user you're running the app as have permission?

If not, Asp.net is probably running under its default account, which is Network service, IIRC, which has almost no permissions.  Check your app pool to see what account asp.net is running as.

Copyright (c) Marimer LLC