473,394 Members | 2,063 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,394 software developers and data experts.

Data files in the App_Data Folder

I have an asp.net 2.0 application where I move about 200,000 text files
daily in and out.

When using VS 2005 to debug my application everything works find if
only a few files are in the folder. (The folder is locaed within the
project file). Yesterday I did a stress test were I placed 200,000
files into this folder. As a result I took me about 15 mintues to start
VS 2005 and I was not able to start debugging since the asp.net
compiler somehow kills itself.

I tried to exclude the folder from the project ,like in VS2003,but this
function is not available and probably did not the trick.

Then I moved all files into the app_data folder and everything worked
fine. Unfortunatelly it takes now ages when I try to use the SEARCH
function (over the entire project)
Questions:

1) If the data files are placed directly into the project ( not in the
app_data folder) and new files are always added and deleted, does
asp.net recompile these text files. My asp.worker process is constantly
reccycling (60 times a day).
2) Is the app_data folder the right place to move all these files
(shared hosting)

3) Would it be better if I move out the files of the root directory
(would have to ask my provider to set the asp.net access rights)?

Thanks for helping

Michael :)

Oct 13 '06 #1
5 3414
<ww*****@gmx.chwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
>I have an asp.net 2.0 application where I move about 200,000 text files
daily in and out.
Wow!
1) If the data files are placed directly into the project ( not in the
app_data folder) and new files are always added and deleted, does
asp.net recompile these text files. My asp.worker process is constantly
reccycling (60 times a day).
Yes, I think so. As I understand it, the App_Data folder is specifically
designed to house file-based databases e.g. SQL Server 2005 Express, Access
etc...
2) Is the app_data folder the right place to move all these files
(shared hosting)
IMO no, for precisely the reasons you describe.
3) Would it be better if I move out the files of the root directory
IMO yes.
(would have to ask my provider to set the asp.net access rights)?
Almost certainly, though it will obviously depend on your ISP.

AAMOI, since you say that these files are text files, have you considered
storing their content in a database rather than as individual files?
Assuming the files themselves are fairly small, I would say that that would
almost guarantee to increase the performance of your website by many
times...
Oct 13 '06 #2
I dont understand, why is my application running well when I use the
app_data folder , but you say its wrong?

On Oct 13, 7:58 pm, "Mark Rae" <m...@markNOSPAMrae.comwrote:
<wwwm...@gmx.chwrote in messagenews:11**********************@h48g2000cwc.g ooglegroups.com...
I have an asp.net 2.0 application where I move about 200,000 text files
daily in and out.Wow!
1) If the data files are placed directly into the project ( not in the
app_datafolder) and new files are always added and deleted, does
asp.net recompile these text files. My asp.worker process is constantly
reccycling (60 times a day).Yes, I think so. As I understand it, theApp_Datafolder is specifically
designed to house file-based databases e.g. SQL Server 2005 Express, Access
etc...
2) Is theapp_datafolder the right place to move all these files
(shared hosting)IMO no, for precisely the reasons you describe.
3) Would it be better if I move out the files of the root directoryIMO yes.
(would have to ask my provider to set the asp.net access rights)?Almost certainly, though it will obviously depend on your ISP.

AAMOI, since you say that these files are text files, have you considered
storing their content in a database rather than as individual files?
Assuming the files themselves are fairly small, I would say that that would
almost guarantee to increase the performance of your website by many
times...
Oct 13 '06 #3
<ww*****@gmx.chwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...
>I dont understand, why is my application running well when I use the
app_data folder , but you say its wrong?
????? I didn't say it was "wrong" ???

You said that it takes fifteen minutes to do a search, and I suggested that
this would improve dramatically if you were to store the text in a database
in stead of 200,000 individual text files...
Oct 13 '06 #4
Yes, you are right on this point. Storing the text files in the DB
would solve ALL problems. Unfortunatelly I am limited up to 1GB (shared
hosting).

The thing I dont understand is, when I moved the files into the
app_data directory, I could start the (debug) right away. However when
the files were in a directory right inside the project it took about 5
minutes to compile and endless to start the service.

What is causing this?

Mark Rae wrote:
<ww*****@gmx.chwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...
I dont understand, why is my application running well when I use the
app_data folder , but you say its wrong?

????? I didn't say it was "wrong" ???

You said that it takes fifteen minutes to do a search, and I suggested that
this would improve dramatically if you were to store the text in a database
in stead of 200,000 individual text files...
Oct 13 '06 #5
<ww*****@gmx.chwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
Yes, you are right on this point. Storing the text files in the DB
would solve ALL problems. Unfortunatelly I am limited up to 1GB (shared
hosting).
Sounds like you're making the classic mistake of letting IT drive your
business instead of the other way round...

If your business would benefit from storing the text files in a database,
but your current ISP doesn't offer you that functionality, then it's time to
find an ISP who does...
The thing I dont understand is, when I moved the files into the
app_data directory, I could start the (debug) right away. However when
the files were in a directory right inside the project it took about 5
minutes to compile and endless to start the service.

What is causing this?
Like I said, App_Data is a "special" folder designed to hold database files.
The asp_net user account needs read and write access on this folder if it
needs to update the contents of the database or if it contains an Access
database (because of the locking .ldb file) , and its contents are not
served by the web server. See MSDN for further details:
http://msdn2.microsoft.com/en-us/library/445z2s49.aspx
Oct 13 '06 #6

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

Similar topics

9
by: dennist685 | last post by:
Walkthrough: Creating a Web Page to Display Access Database Data I've started the above walkthrough. However, near the beginning it gives the following instructions To set permissions in the...
4
by: Rush | last post by:
I'm new to web development in Visual Studio 2005, and I'm creating a web site using ASP.NET, and right now its a very simple page with only labels on it. I have a third party that hosts the site,...
0
by: le0 | last post by:
guys, i have this problem when accessing a page in a server, this error always appears --------------------------------------------------------------------------------------------- Server...
5
by: | last post by:
Is it advisable to store my own data as XML in the folder returned by HttpRuntime.CodeGenDir? (i.e. in "Temporary ASP.NET Files") Each web service on the server must try to read its own cached...
4
by: Joey | last post by:
asp.net 2/C#/VS2005 I have a web app where I use a stream writer to create a CSV (text) file. I then use my code to save the file in the site's 'App_Data' folder, in a subfolder called 'Temp'....
1
by: =?Utf-8?B?U3VzaGlTZWFu?= | last post by:
I have problems with sharing files from this directory. It is system directory so I can't make dirrect links on files inside. For example /App_Data/my.mp3 www.example.com/App_Data/my.mp3 -...
7
by: dan | last post by:
I'm working on a small Web project in VS2008. In VS2005 it was recommended that DataSet be placed in App_Data folder (the framework did that automatically). In VS2008 the framework does not give...
7
by: Arthur | last post by:
hi, this might be a simple one to them who know: i'm developing an asp.net project and use the debug mode. i have a xml file which contains data, that shall be read, if a specific page is...
2
by: Frank | last post by:
Hi, Originally I was planning to do some code reuse (yeah.. that exists..didn't want to believe it either) with some class library projects that I now want to use in a asp.net 2.0 web app in VS...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...
0
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...

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.