Re: System.Security.Permissions.FileIOPermission Error



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


.



Relevant Pages

  • Re: Design Guidelines for Non-Power Users?
    ... Non-Power Users and Admins will not be able to install your app. ... You can get whatever this folder happens to be by ... If they don't have write permissions, ...
    (microsoft.public.vb.general.discussion)
  • Re: Design Guidelines for Non-Power Users?
    ... Non-Power Users and Admins will not be able to install your app. ... You can get whatever this folder happens to be by ... If they don't have write permissions, ...
    (microsoft.public.vb.winapi)
  • Re: SuSe 10.0 woes: /home disappeared
    ... What I want, among other things, is the ability to drag'n'drop to any folder available/visible to me as user, ie both private and public folder. ... Read/write permissions should be attached to the files, not the public folders: default should be read-only for other users, unless I explicitly tag a file with read/write permissions. ... Opportunity to modify permissions should be a sub-menu item in all Save dialogues in every app, and should be implemented in every distribution. ... I was able to start a slide show fronm the photo-album app, and I was able to set one of the imported pictures as wall-paper from the same app. ...
    (alt.os.linux.suse)
  • Re: Existing Web app gets error after WSS install
    ... Permissions look OK. ... And I can get to and display a .gif file in the app's folder ... trying to launch the app. ... >>I then went into the Central Admin and used Define Managed Paths to ...
    (microsoft.public.sharepoint.windowsservices)
  • Sending & Receiving Attachements
    ... My outlook will not send or receive attachments, ... file, check your permissions on the folder, but it doesn't ... I think this is where my problem lies. ...
    (microsoft.public.outlook)

Loading