BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Support  Installation pr...  Vista IIS 7 "Request is not available in this context"
Previous Previous
 
Next Next
New Post 5/1/2008 8:25 AM
User is offline cshouts
1 posts
No Ranking


Vista IIS 7 "Request is not available in this context" 

Attempting to install BugNET 0.7.921 on Vista Business running IIS 7. Ran across the following error. Found a resource for reference here...http://mvolo.com/blogs/serverside/archive/2007/11/10/Integrated-mode-Request-is-not-available-in-this-context-in-Application_5F00_Start.aspx

For the moment, I am planning on running BugNET in classic mode.

 

Server Error in '/BugNET' Application.

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.HttpApplication.get_Request() +2585673
BugNET.Global.Application_Start(Object sender, EventArgs e) +59

[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +2607380
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +211
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +344
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +387
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +452

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


Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

 
New Post 5/1/2008 8:45 AM
User is offline admin
572 posts
bugnetproject.com
1st Level Poster




Re: Vista IIS 7 "Request is not available in this context" 

I have not tested BugNET in integrated mode with IIS7 and run it in classic mode exclusively.


Davin Dubeau
BugNET - Core Developer

 
New Post 6/9/2008 1:31 PM
User is offline vmasanas
1 posts
No Ranking


Re: Vista IIS 7 "Request is not available in this context" 

The workaround is to run the app in classic mode or change the code not to use httprequest in app_start. see:

http://mvolo.com/blogs/serverside/archive/2007/11/10/Integrated-mode-Request-is-not-available-in-this-context-in-Application_5F00_Start.aspx

 
Previous Previous
 
Next Next
  Forum  Support  Installation pr...  Vista IIS 7 "Request is not available in this context"

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.