473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ApplicationData folder and IIS6.0

Hi,
I've been using
Environment.GetFolderPath(Environment.SpecialFolde r.ApplicationData) 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 CommonApplicationData
specila folder without granting specific permissions i would prefer to use
the ApplicationData special folder.
Thanks in advance
Pat
Nov 18 '05 #1
1 2201
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.GetFolderPath(Environment.SpecialFolde r.ApplicationData) 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 CommonApplicationData
specila folder without granting specific permissions i would prefer to use
the ApplicationData special folder.
Thanks in advance
Pat

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
2
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...
1
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...
5
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...
8
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...
0
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...
2
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...
1
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.