How do I check the available permissions
From: Arun (kathir_arun_at_hotmail.com)
Date: 09/17/03
- Next message: Liora: "Error after miggration to vs2003: dangerous Requset.Form value"
- Previous message: Hans van Leunen: "Re: MS increases security causes developer worries"
- Next in thread: Shel Blauman [MSFT]: "Re: How do I check the available permissions"
- Reply: Shel Blauman [MSFT]: "Re: How do I check the available permissions"
- Reply: Alek Davis: "Re: How do I check the available permissions"
- Reply: Alek Davis: "Re: How do I check the available permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 17 Sep 2003 14:59:35 +0530
Hi,
My program, when it runs creates a couple of files for its usage. Inside my
exe, I want to check if it has the permission to access/modify a particular
file or folder. Is there any way to do that? For a text file, I removed all
the permissions for all the users and in my code, I tried creating a
FileIOPermission class with the FileIOPermissionAccess.Write for that
particular text file and called its Demand method. It succeeded without any
problem. But when I tried to open that file for writing, I promptly got the
security access violation exception.
Can anybody help me in checking the available permissions on the resources
before actually working on them?
Thanks in advance,
Arun
- Next message: Liora: "Error after miggration to vs2003: dangerous Requset.Form value"
- Previous message: Hans van Leunen: "Re: MS increases security causes developer worries"
- Next in thread: Shel Blauman [MSFT]: "Re: How do I check the available permissions"
- Reply: Shel Blauman [MSFT]: "Re: How do I check the available permissions"
- Reply: Alek Davis: "Re: How do I check the available permissions"
- Reply: Alek Davis: "Re: How do I check the available permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|