Board index » Web Programming » Security-exception when performing File.Move()
|
Die_Another_Day
|
Security-exception when performing File.Move()
Web Programming295
Hi! I'm in the process of writing a ASP.NET-application in VB.NET where a (at this stage) not logged in user is supposed to be able to move a file from one location to another on the servers harddrive, File.Move(). I've read through loads of guides and they all say "Add write-permissions to your ASPNET-account". Well, I've done this - and way more. I've even tried to add the ASPNET-account to the Administrators-group, but still no success. All I get is: System.UnauthorizedAccessException: Access to the path "C:\Inetpub\wwwroot\filePermissionTest\test_ikon2.gif" is denied. By now I'm beginning to wonder what it is that I'm missing. I've restarted the W3SVC-service to see if there were any cached settings left, but obviously not. I've also checked the "Write"-checkbox in the dialog for the application under the IIS-console, but nothing there either. =( Does anyone have any idea what so ever what setting it is that I've missed? TIA! Fredrik Arenhag - |
