473,322 Members | 1,398 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,322 software developers and data experts.

Accessing Web Server Cache from a C# Application or Service

Hello,

I have an ASP.NET (C#) site that pulls data from various sources,
processes that data and creates several DataViews. I then take these
DataViews and store them in the Web server's Cache, which expires
every 10 mins or so. The main page pulls these DataViews from the
Cache and binds them to a DataGrid.

This works, however the first user that hits the cache after it has
expired has to sit for 45 seconds or so while all the data is
gathered, made into DataaViews, and and stored in the Cache.

What I want to do is build a separate C# Service or Application (will
run at low priority) to gather the data, create the DataViews, and
store them to the web server's Cache, where it would be accessible to
my ASP.NET pages.

The problem is, I cannot find a way to access the web server's Cache
from a separate Windows application. Is there any way to have a C#
Windows Application write to the Cache used by my ASP.NET Web
Application?

Hope you can help. Thanks in advance.
-Joe
Nov 15 '05 #1
1 1992

"Joe Messano" <jo********@tradesoft.com> wrote in message
news:17**************************@posting.google.c om...
Hello,

I have an ASP.NET (C#) site that pulls data from various sources,
processes that data and creates several DataViews. I then take these
DataViews and store them in the Web server's Cache, which expires
every 10 mins or so. The main page pulls these DataViews from the
Cache and binds them to a DataGrid.

This works, however the first user that hits the cache after it has
expired has to sit for 45 seconds or so while all the data is
gathered, made into DataaViews, and and stored in the Cache.

What I want to do is build a separate C# Service or Application (will
run at low priority) to gather the data, create the DataViews, and
store them to the web server's Cache, where it would be accessible to
my ASP.NET pages.

The problem is, I cannot find a way to access the web server's Cache
from a separate Windows application. Is there any way to have a C#
Windows Application write to the Cache used by my ASP.NET Web
Application?


You don't need another application, just another thread.

Run a background thread to populate the data, sleep, populate, etc.

David
Nov 15 '05 #2

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

Similar topics

8
by: Horhayson | last post by:
Running W2k Server SP4, my application event viewer says that the Active Server Pages service is stopped. How and what do I need to do to start the service, and why does it stop? *** Sent...
2
by: Mike M | last post by:
Hello, I created a simple C# library assembly that exposes general facilities I would like to use in my ASP.NET web applications. If I added the assembly into the bin directory of my asp.net...
4
by: Daren | last post by:
Hi all, I need to update the cache of a third party asp.net application when a user makes a change to a particular table in a SQL Server database (so the changes appear immediately in the...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
3
by: carolus.holman | last post by:
I have set <identity impersonate="true" /> on my webservice, and created a proxy user Credential cache in my Winform App inorder to access the service running on Server 2003. What my issue is: I...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
3
by: Brad | last post by:
I'm setting up my new pc with all my VS.net projects and I'm missing something.....something I've done many times before without problem. I have several asp.net apps accessing secure .net web...
3
by: moondaddy | last post by:
This code is all executed on my dev machine running winXP sp2 and VS2005. I have a winforms 2.0 app that calls a web service wich caches a GUID for a short time like this: public string...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...

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.