UseAppKeepAlive

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.
6/19/2009 1:53:42 PM
Gravatar
Total Posts 2183

UseAppKeepAlive

When I set the UseAppKeepAlive setting to true in the user.config file, the site dies and throws the error below.

OS: Server 2008
Managed Pipeline: Integrated
Database: MSSQL
mojoPortal: v.2.3.0.8

Request is not available in this context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request is not available in this context

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


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

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4168961
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +205
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +336
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +350
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +382

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11294470
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4335156

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074

 

6/19/2009 2:06:14 PM
Gravatar
Total Posts 18439

Re: UseAppKeepAlive

Hi Joe,

I just looked at the code and saw my comments there that it can't work in IIS 7 integrated mode

// NOTE: In IIS 7 using integrated mode, HttpContext.Current will always be null in Application_Start
// http://weblogs.asp.net/jgaylord/archive/2008/09/04/iis7-integrated-mode-and-global-asax.aspx

Not sure of an alternate solution for IIS Integrated mode at the moment, but I'll ponder it.

Best,

Joe

 

6/19/2009 2:11:30 PM
Gravatar
Total Posts 2183

Re: UseAppKeepAlive

Thanks for the quick response. I changed the app pool over to classic and all is working. I prefer to use Integrated but the KeepAlive feature is more important right now.

As a side note, I can't download the EventCalendarPro update for 2.3.0.8. When I click on the download link in my order history, it gives me the 0.0.1.3c version.

Thanks,
Joe

6/19/2009 2:16:01 PM
Gravatar
Total Posts 18439

Re: UseAppKeepAlive

Hi Joe,

Try the Event Calendar Pro download again now. I was absolutely sure I uploaded the new version but just now when I cheked it it was also 0.0.1.3c so I uploaded it again.

Best,

Joe

6/19/2009 2:28:57 PM
Gravatar
Total Posts 2183

Re: UseAppKeepAlive

Thanks, that did it.

6/22/2009 7:01:38 AM
Gravatar
Total Posts 18439

Re: UseAppKeepAlive

I was able to come up with a solution that works in Integrated pipeline mode, so this will work in the next release.

Best,

Joe 

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