« Previous Next »

Thread: ASP.NET Application Timeout Avoidance

Last post 09-22-2004 10:36 PM by AlexB1318. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 08-02-2004, 8:57 PM

    ASP.NET Application Timeout Avoidance

    Hello, I have been writing an asp.net.VB class that will take extensive times to finish. If I run the class in my browser it will definitely timeout and I don't want to mess with IIS's TimeOut settings. I'm sure there is a way, but I don't know it; to instead of compiling with vbc.exe to a DLL file, compile it using the EXE extension. Then I could run it on the computer and not through a browser. My question is though how would I start the NameSpace/Class? Would the Page Load sub still Be Sub Page_Load(Sender as Object, e as EventArgs)? or would it change? Do modules have anything to do with what i want to do?
    Thankyou
    Ryan
  • 09-22-2004, 8:12 PM In reply to

    Re: ASP.NET Application Timeout Avoidance

    If you want to create a windows executable then you have to create an EXE type project, add a reference to your DLL, and create a sub Main() that calls the methods you want to execute.

    I have some code in my web project that runs for a long time (~45 min) but my browser never times out and it's got the standard IIS 20min timeout value. I just leave it alone and it eventually returns. As a alternative you can run it asyncronously in your browser. There's an MSDN article on that but unfortunately I can't remember the name of it.

    Good luck.
Page 1 of 1 (2 items)
Microsoft Communities