Trying to write an xml file from within a Session. Works fine if I do
it in the Application_Sta rt 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 2 1347
Hi,
I believe that whatever account the aspnet worker process is impersonating
will need to have the appropriate access. If you have not changed the
default this will be either the logged in user or the local ASPNET account,
depending on several different factors such as browser used.
If you are writing an internet application, you will probably want to have
only anonymous access enabled, and this will be specified to use a specific
account in the live environment. This is the account which will need access
to the place where the files will be written -- and if this isn't on the
local webserver, then it will need to be a domain account and not the local
ASPNET account.
HTH,
C.
"Joergen Bech @ post1.tele.dk>" wrote: Trying to write an xml file from within a Session. Works fine if I do it in the Application_Sta rt 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?
Thanks for the information, but as I said, the server is not under
my control, so I cannot add users or change permissions at will.
But I managed to get hold of the provider and get him to modify
the permissions for the folder, so everything works now.
Will have to play around with asp.net security in a controlled
environment when time permits.
/JB
On Mon, 11 Jul 2005 05:19:13 -0700, Cam
<Ca*@discussion s.microsoft.com > wrote: Hi,
I believe that whatever account the aspnet worker process is impersonating will need to have the appropriate access. If you have not changed the default this will be either the logged in user or the local ASPNET account, depending on several different factors such as browser used.
If you are writing an internet application, you will probably want to have only anonymous access enabled, and this will be specified to use a specific account in the live environment. This is the account which will need access to the place where the files will be written -- and if this isn't on the local webserver, then it will need to be a domain account and not the local ASPNET account.
HTH, C.
"Joergen Bech @ post1.tele.dk>" wrote:
Trying to write an xml file from within a Session. Works fine if I do it in the Application_Sta rt 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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fran Tirimo |
last post by:
I am developing a small website using ASP scripts to format data retrieved
from an Access database. It will run on a Windows 2003 server supporting
FrontPage extensions 2002 hosted by the company 1&1 with only limited server
configuration via a web based control panel.
My query relates to the ASP security model and how it relates to FrontPage
options for setting file access on a database file. If you know of any
online documentation...
|
by: Fran Tirimo |
last post by:
I am developing a small website using ASP scripts to format data retrieved
from an Access database. It will run on a Windows 2003 server supporting
FrontPage extensions 2002 hosted by the company 1&1 with only limited server
configuration via a web based control panel.
My query relates to the ASP security model and how it relates to FrontPage
options for setting file access on a database file. If you know of any
online documentation...
|
by: Mark C. |
last post by:
I'm trying to call a batch file that I've built using the FileSystemObject
and CreateObject("Wscript.Shell"), oShell.Run... in an asp script.
Naturally, I can get the script to work from a command line but not from a
browser. The page does not throw an error but the oShell.Run... portion of
the script doesn't run. Any help would be appreciated. Thanks.
|
by: raydelex |
last post by:
I am new to securing a database with logins. My questions is: I want
only one database to use a new Workgroup file that I have created, not
all the Access databases that I bring up under my system login. Can
this be done?
Thanks
|
by: HNguyen |
last post by:
Hi,
I have a Web application in ASP.NET. My Application allows the users upload
files into the server after checking their user names and passwords. For
each transaction, the Web program will write the information about user
name, filename upload, filesize, date and time of uploading into the log
file. (The name of the log file is constructed by Current Year and Current
Month in my program). Is there any problems with writing into the...
| |
by: =?Utf-8?B?QmlsbCBNYW5yaW5n?= |
last post by:
I have an internal ASP.NET 2.0 web service that does, among other things,
expose a method that causes files to be written to a location that the user
configures. The web service has been around for a while, under ASP.NET 1.0
and it has just been updated to ASP.NET 2.0. The functionality in question
has not changed.
When testing the upgraded web service on Windows XP, I got an error when the
file was created:
Access to the path...
|
by: Gilles Ganault |
last post by:
Hello
I'm stumped as to why PHP fails writing into a text file, with the
script being called through Apache:
==============
# pwd
/usr/local/www/data/
==============
# ll
|
by: chrisj |
last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully.
In this modified version there are two groups that use this upload script. Members of one group get automatically re-directed after uploading.
However, this member group never gets the benefit of knowing if they've uploaded an incorrect file size or incorrect file extension.
Members from the second group do see the "exceeds max file...
|
by: sandromani |
last post by:
Hello,
I am working at a webbased file browser, where users will be able to access, rename, delete, etc files and folders. My question is, what is the best way to handle permissions / authentication with apache in a *nix environment? Basically what I am searching for is something that works roughly the same as the windows integrated authentication, where the commands executed on server-side are executed as the user with witch the session was...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |