UseKeepAlive config not working.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/1/2009 7:28:04 PM
Gravatar
Total Posts 1

UseKeepAlive config not working.

Hi.. reading the web.config saw the  "UseAppKeepAlive" key and because my site has very low use i tryed to change it.

But when changing to True, i cant start aplication, here the error msg:

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpContext.get_Request() +8789264
mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e) +400

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +2723014
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +128
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295
System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85

--------------------------

The platafform is Windows 2008 server, Mysql 5.0.45  and Mojo 2.3.0.7

 

7/2/2009 5:36:17 AM
Gravatar
Total Posts 34

Re: UseKeepAlive config not working.

Hello,

I had not noticed the UseKeepAlive key in the web.config. My site has the same problem of low traffic so I was experiencing a 4-5 second delay on displaying the initial home page. The delay was coming from starting up a new w3wp.exe process to host a new instance of the application pool running mojoPortal. The default application pool in IIS has a default idle timout of 20 minutes so if nobody comes in for 20 minutes the w3wp process is terminated.

I just made a new application pool to run mojoportal and set the idle timeout to 1740 minutes which is the same as the default recycling time interval.

Then my site displays in always 1-2 seconds even though it is running on a somewhat old 3.2 GHz Pentium 4 machine.

Still this UseKeepAlice setting might be useful for those running mojoPortal hosted with a service provider that does not allow access to the IIS settings.

7/2/2009 5:39:43 AM
Gravatar
Total Posts 18439

Re: UseKeepAlive config not working.

Hi,

If you upgrade to the latest version 2.3.1.0 you should be able to use the App Keep Alive in IIS7 with integrated pipeline mode.

This issue was previously reported/discussed on this thread.

Hope it helps,

Joe 

You must sign in to post in the forums. This thread is closed to new posts.