Hi,
I've been using
Environment.Get FolderPath(Envi ronment.Special Folder.Applicat ionData) to get
the application data folder for ASP.Net applications using IIS5.0 where it
works for both the ASPNet machine account and for a different account if i
configure the ASP.Net process to run as an alternative account by altering
the machine.config file. It gives me back
C:\Documents and Settings\myuser \Application Data where i'm using a local
user called myuser as the ASP.Net process account.
When i tried the same on a IIS6.0 box by using the default application pool
which is configured to use the NetwrokService user, or if i configure it to
use a different account i keep getting an empty string back which the SDK
gives the following explanation for
The path to the specified system special folder, if that folder physically
exists on your computer; otherwise, the empty string ("").
A folder will not physically exist if the operating system did not create
it, the existing folder was deleted, or the folder is a virtual directory,
such as My Computer, which does not correspond to a physical path.
If anyone can explain why this is so i would appreciate it, I need to be
able to create folders and files at such a location where i would prefer not
to use isolated storage and since i cannot write to the CommonApplicati onData
specila folder without granting specific permissions i would prefer to use
the ApplicationData special folder.
Thanks in advance
Pat 1 2218
I forgot to say i did log the new app pool identitiy user in on the IIS6.0
machine so the profile and therefore the ApplicationData folder exist on the
machine.
Pat
"Pmcg" wrote: Hi, I've been using Environment.Get FolderPath(Envi ronment.Special Folder.Applicat ionData) to get the application data folder for ASP.Net applications using IIS5.0 where it works for both the ASPNet machine account and for a different account if i configure the ASP.Net process to run as an alternative account by altering the machine.config file. It gives me back C:\Documents and Settings\myuser \Application Data where i'm using a local user called myuser as the ASP.Net process account. When i tried the same on a IIS6.0 box by using the default application pool which is configured to use the NetwrokService user, or if i configure it to use a different account i keep getting an empty string back which the SDK gives the following explanation for The path to the specified system special folder, if that folder physically exists on your computer; otherwise, the empty string (""). A folder will not physically exist if the operating system did not create it, the existing folder was deleted, or the folder is a virtual directory, such as My Computer, which does not correspond to a physical path.
If anyone can explain why this is so i would appreciate it, I need to be able to create folders and files at such a location where i would prefer not to use isolated storage and since i cannot write to the CommonApplicati onData specila folder without granting specific permissions i would prefer to use the ApplicationData special folder.
Thanks in advance Pat
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mallyonline |
last post by:
Thank you for your previous help.
I posted regarding listing the names of files held in a folder on the server
and making the
list appear clickable. This has now been accomplished. The files are
listed - The files are clickable -
|
by: Juleke |
last post by:
Hello,
For some test, I have setup one computer with Win 2003 Standard + IIS +
Active Directory
My problem is Access to the path
"c:\windows\microsoft.NET\framework\v1.1.4322\temporary ASP.NET Files\...."
is denied
when I'm trying to use a .NEt application
|
by: Pavils Jurjans |
last post by:
Hello,
My ASP.NET hoster has made a separate folder in my hosting space and
configured it as separate application in IIS. Further, I created "bin"
folder in this directory, and put in my aspx pages that all use code-behind.
All works fine, but I was dismayed finding out that is is possible to write
direct URL to an assembly in the bin folder, and IIS would allow to download
pure code. That's somewhat very worg, isn't it?
What should I...
|
by: Rudy |
last post by:
Hello All!
Can you dynamicly create a folder in ASP.net? Here is the set up. I have a
folder where I will store pics. What I would like to do is create a cookie,
track the user who has logged on to the site. If user deside to upload
pictures under thier profile, a subfolder under the images folder will be
created with the folder name as the users name. I would like to keep the pics
seperatred for each user.
TIA!!
|
by: supasnail |
last post by:
I have a happily working set of asp pages which read from the database
via include file "./_private/include/database.mdb".
However, when I try to gain access to this database on pages one
folder removed using "../_private/include/database.mdb", the pages
won't display. This whole system works fine on my home test server
(iis.5.0), but 'breaks' when uploaded to the public server. I know the
path to database is correct because the upper...
| |
by: Groove |
last post by:
Does anyone in here have experience setting up a very basic type of FTP site
on a Windows 2003 II6 Server? If so, I'd appreciate some help.
We have a dedicated web server which I can change at will and I would like
users who have the correct UID & PWD to be able to type something
ftp://www.mywebsite.com/ftp/ in Windows Explorer and drag, drop, copy,
paste, delete, etc. files in this selected folder ("ftp").
I created a new FTP Site in...
|
by: Peter Morris |
last post by:
I have given the following users full access to a folder + all sub folders
ASPNET
IUSR_(MachineName)
IWAM_(MachineName)
but when my webservice tries to create a TXT file in the folder in question
access is denied and an exception is thrown. I have temporarily corrected
this by giving full access to everyone but obviously I am not entirely happy
with this solution :-)
|
by: lilOlMe |
last post by:
Can you install IIS6 on a system other than Windows Server 2003?
I'd like to install IIS6 on Windows XP.
I've been trying to find out the system requirements for IIS6 but I haven't found a clear article that outlines which operating systems it will work on.
I gathered that it works on Windows Server 2003...but there's no mention of it working on Windows XP. However, there is a tool kit for IIS6 that works on Windows XP (but doesn't...
|
by: Brian Stoop |
last post by:
Hi,
In my ASP.NET application I want to rerieve the APPDATA folder of the logged
in user. The Web Application is using C# .NET 1.1 and has
Impersonation=True
I use this code:
"string
appdata=Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString()";
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |