Re: System.Security.Permissions.FileIOPermission Error
- From: "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com>
- Date: Fri, 5 May 2006 08:27:03 -0400
The exception you're would seem to indicate that the problem lies with CAS
permissions, not user permissions. However, I'm having a bit of trouble
figuring out what the paths of the source and target folders are. Could you
please provide sample paths for both folders for the scenario where the
exception is thrown?
"Terrance" <Terrance@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:358A9213-F59A-408C-8975-FD649953371E@xxxxxxxxxxxxxxxx
I was wondering if anyone can help me with a problem. I'm running a app on
my
company's network thats located on another server for my department. My
application is suppose to back up files by copying them 1 directory up
from
where the application is located. It allows the user to choose a folder
using
a filedialogopen box which is on the same machine. However when I run the
app
from my machine it gives me:
The application attempted to perform an operation not allowed by the
security policy. Teh operation required the SecurityException. To grant
this
application the required permission please contact your System
Administrator,
or use the Microsoft .NET security policy administration tool.
SYSTEM.SECURITY.PERMISSIONS.FILEIOPERMISSION, MSCORLIB,...
I can browse to the directory from my machine and copy/delete files with
no
problem. When I pcAnywhere over to the SERVER from my machine I log in
with
my credentials and the application works fine as long as I don't browse
the
filedialogbox using a network URL. So, in my app when the WORKING
DIRECTORY
shows D:\....\app\updater.exe and the fileDialog box shows a file path
pointed to the folder D:\..\foldername it works fine. Is there anyway I
can
pass the credentials programmatically of the user on a remote machine to
allow the app to run from the network when I browse to the folder where
the
app is located?
--
TC
.
- Prev by Date: Re: Securing DropDown in ASP.Net
- Next by Date: Re: SecurityPermission fails when running app from server VB.Net 2005
- Previous by thread: Re: Securing DropDown in ASP.Net
- Next by thread: Re: System.Security.Permissions.FileIOPermission Error
- Index(es):
Relevant Pages
|
Loading