I'm not 100% sure what you're trying to do exactly, but my
guess would be that you need to give the account(s) you
want to have access to the file, the amount of access you
want them to have.
For example, you may want everybody to be able to read the
file, but only certain people to write to the file.
You would do this through the Windows File System (NTFS).
Basically, navigate to the file, right-click on the file,
select properties, and select the security tab. From
there you'll have to pick the user(s) and select the level
of permissions you want that user to have (allow and deny
them certain things).
You may also need to modify some of the settings in IIS to
get this to work correctly.
For example, if you have multiple users with various
levels of permission to the file, you may need to use
Integrated Windows Auth and disable anonymous. However,
if you want anybody to be able to read/write, just give
the IUSER (it's the default anonymous IIS account that
runs everything) account those permissions in NTFS and
have IIS setup to run anonymous (with the IUSER account).
Things like this are different for everything, so it's
possible that I could be way off in what you're trying to
do. However, as a developer I personally feel that it's
important for all developer's to have a fairly decent
understanding of how Windows security and IIS security
work hand-in-hand in your applications so as you're
developing an application you know exactly how you need
the security configured.
HTH,
Jeremy
-----Original Message-----
I have just installed Visual Studio .Net Academic 2003
and MSDN Academic2003. In testing a program that I had written in the
2002 version I findthat when I use fileopen to access a file I get:
Access to the
path "c:\inetpub\www root\_private\( filename)" is denied.
The message goes on to say:
The ASP.NET process is not authorized to access the
requested resource. Forsecurity reasons the default ASP.NET process identity is
'{machinename} \ASPNET', which has limited privileges.
Consider grantingaccess rights to the resource to the ASP.NET process
identity.
I do not understand this since it worked fine before.
How do I setpermissions so that anyone using my site can perform
open/read//write onfiles? As I read the error message I have to give ASPNET
users broaderpermissions but I do not know how to do that. Can some
help?
Thanks very much.
.