J
Joergen Bech
Trying to write an xml file from within a Session. Works fine if I do
it in the Application_Start event of Global.asax, but not in the
Page_Load event of an aspx page.
If I give "Everyone" write permissions to the folder/file, everything
works fine (on my local development machine), but this is not an
option on the production server, which is outside of my control.
This also means that I cannot add new accounts with the required
permissions for use by asp.net sessions.
So the questions are:
1) Is it possible for a session object to use the ASPNET permissions
of the application object?
If not 1), can a session ask the application to perform the write
operation on its behalf? Basically, we are talking about a global
object that needs to be serialized to xml and written to disk, but
other safeguards are in place, ensuring that only one session will
ever attempt this write at any given time, so I am not concerned
about synchronization issues at the moment.
???
Joergen Bech
it in the Application_Start event of Global.asax, but not in the
Page_Load event of an aspx page.
If I give "Everyone" write permissions to the folder/file, everything
works fine (on my local development machine), but this is not an
option on the production server, which is outside of my control.
This also means that I cannot add new accounts with the required
permissions for use by asp.net sessions.
So the questions are:
1) Is it possible for a session object to use the ASPNET permissions
of the application object?
If not 1), can a session ask the application to perform the write
operation on its behalf? Basically, we are talking about a global
object that needs to be serialized to xml and written to disk, but
other safeguards are in place, ensuring that only one session will
ever attempt this write at any given time, so I am not concerned
about synchronization issues at the moment.
???
Joergen Bech