.NET Framework - Web Service Start Up
Asked By Erick
28-Feb-08 08:22 PM
I'm trying to speed up my web services.
My problem is that the data takes a while to build so I cache it and
only refresh the data every 24 hours.
However, the data will only cache after the first person requests it.
This causes a 3 minute delay before the user gets a response and the
session times out. Once in Cache the response is almost
instantanious.
is there a way that i can load my cache so that the data is already
sitting in cache before the first user makes any web method requests?
Global.asax on start only runs when the first user makes a request. I
need to it run before that.
Regards
Josef
Windows Server
(1)
ASP.NET
(1)
Otherwise
(1)
Database
(1)
Spamhoneypot
(1)
D7e3032119c2
(1)
Appdomain
(1)
Pwilson
(1)
Spam Catcher replied...
d7e3032119c2@s13g2000prd.googlegroups.com:
If you need to statefully store information, have you considered caching it
in a local database?
Otherwise, you could create a stateful process (i.e. service) and fetch it
locally from there.
Lastly, there are ways to keep ASP.NET from recycling the appdomain, but it
seems a bit hackish to do:
http://weblogs.asp.net/pwilson/archive/2003/12/02/40681.aspx
--
spamhoneypot@rogers.com (Do not e-mail)
John Saunders [MVP] replied...
You could write a small console application that would issue the same web
service request as the users do. Run it periodically, or when the system
starts. In effect, you would be creating the first user. This user would
still see the three minute delay; he just wouldn't complain about it!
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
duplicate the behavior of the operating system shortcut keys in my application? For example, my windows form has 5 controls (textboxes), the operating system will pickup which control has the focus for each control at form level. Any help is greatly appreciated. BD C# Discussions System.Windows.Forms.ToolStripProgressBar (1) System.Windows.Forms.KeyPressEventHandler (1) System.Windows.Forms.ToolStripStatusLabel (1) System.Windows.Forms.ToolStripMenuItem (1) System.Windows.Forms.ToolStripSeparator (1) System.Windows.Forms.KeyEventHandler (1) System.Windows.Forms.ToolStripItem (1) System.Windows.Forms.Keys.Control (1) I'm not sure you really
Framework Hi all I have an application which brings back 1000 records from a sql server database. Under the local asp.net development server provided with Visual Studio 2008, it takes about 1.8 seconds When I place this question is why does it take so long under IIS but not under the local asp.net development server? Any ideas? How can I get this 16 seconds down to a more acceptable level
ASP.Net - the "Big Picture"? .NET Framework Hi, I have a few questions about ASP.Net, as I have been using it for a while but my knowledge of the "big somewhat vague. . .) - In a closely-related matter, do any languages have issues accessing the full ASP.Net environment and facilities? For example, I found accessing .Net Collections in JScript problematic (though I eventually worked out how to do it). - What support to I have for the "native" Windows features under ASP.Net? Is everything done through the CLR? Can I access ADO COM objects in a
Confusion versiones ASP.NET y Frameworks .NET Framework Hola. Tengo confusión en sobre los términos que se usan para referirse a las versiones de ASP.NET y los .NET Frameworks: en algunos sitios web se encuentran articulos que hablan de ASP.NET 2.0 trabajando con .NET Framework 3 y 3.5. Y en otros de ASP.NET 2, trabajando con .NET Framework 2.0. Por lo general, esta última referencia es la
This is a second post on this as the first never showed up in search. ASP.NET Security Discussions ASPNET security (1) Jerry Weng Microsoft Online Community (1) Silverlight (1) NET Framework (1) ASP.NET (1) RIA (1) WCF (1) Application (1) Cancel this. The original showed up. Was a for posting. From your post, my understanding on this issue is: you want to use ASP.NET security in your Silverlight application. If I am off base, please feel free to let me know. If we want to use ASP.NET Authentication in Silverlight applications, we need to create an ASP.NET Application Service. ASP.NET