« Previous Next »

Not Answered Thread: load large chunk of data when the web application starts

Last post 10-26-2009 10:15 AM by tomkmvp. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 10-25-2009, 8:42 AM

    load large chunk of data when the web application starts

     Hi:

             I have web application, which need to load large chunk of data into memory before any session can start. I search the web and found the suggestion that I can load the data function Application_Start in the Global.asax. But it seems that this function would not be called until the first user request the application from the browser. Is there any way to load data automatically before the user request it ( can assume that there is pretty much time before the user request the page and the deploy time, so what i want is that the application starts as soon as it is deployed)?  the problem to write the load data routine in the Application_Start is that the first user always get stuck for the request and she has no idea what is happening...know that is data is just static and share among all the users.

            There is a tool called iis manager, which can start and stop the web application server, is it possible to load the data as soon as the web admin start the web server?

           Actually the load data is done in another unmanaged dll, i have already wrap it with managed dll. The platform i am using is ms server 2003 and the language is c#. Appreciate the help ....

  • 10-25-2009, 9:26 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: load large chunk of data when the web application starts

    There's no way to natively do this with IIS 5 or 6.  Some users get around this by scheduling calls to the application URL with Task Scheduler.

  • 10-25-2009, 9:22 PM In reply to

    Re: load large chunk of data when the web application starts

     is it possible to separate this into two processes so that when the user request a page, it make a function call to another "standalone" process and get the data?

     

     

  • 10-26-2009, 10:15 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,254
    • IIS MVPs

    Re: load large chunk of data when the web application starts

    Possibly, but I don't know enough about what you are doing to say for sure.

Page 1 of 1 (4 items)
Microsoft Communities