This is a migrated thread and some comments may be shown as answers.

Request is not available in this context

1 Answer 187 Views
Grid
This is a migrated thread and some comments may be shown as answers.
smith spd
Top achievements
Rank 1
smith spd asked on 11 Aug 2010, 01:19 AM
Hello Telerik Team,

I m getting the HTTP Exception: Request is not available in this context.

at System.Web.UI.Page.get_Request()
   at Telerik.Web.UI.RadGrid.BrowserIsCrawler()
   at Telerik.Web.UI.RadGrid.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at Class.Data.GetDataControl(Page& Page, Control& ctrlRef, HttpServerUtility& Server) in 
  
C:\inetpub\wwwroot\Class\Data.vb:line 56
   at Controls.ResultsControl.DefineGridStructure(XmlDocument& xmlDoc, Page& Page, PlaceHolder& 
  
phlaceholder1, HttpServerUtility& server) in C:\inetpub\wwwroot\Controls
  
\ResultsControl.ascx.vb:line 65
   at Controls.ListingResultsControl.page_Init(Object sender, EventArgs e) in C:\inetpub\wwwroot\Controls\ResultsControl.ascx.vb:line 14
   at System.Web.UI.Control.OnInit(EventArgs e)
   at System.Web.UI.UserControl.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child)
   at Class.Handler.Submit(RadMultiPage& tabMultiPage, XmlDocument docRequest) in C:\inetpub\wwwroot\Class\Handler.vb:line 113
   at Controls.TreeControl.GetTypes() in C:\inetpub\wwwroot\Controls
  
\TreeControl.ascx.vb:line 293
   at Controls.TreeControl.RadTreeView1_NodeClick(Object sender, RadTreeNodeEventArgs e) in C:
  
\inetpub\wwwroot\Controls\TreeControl.ascx.vb:line 152
   at Telerik.Web.UI.RadTreeView.RaiseEvent(Object eventKey, RadTreeNodeEventArgs e)
   at Telerik.Web.UI.RadTreeView.OnNodeClick(RadTreeNodeEventArgs e)
   at Telerik.Web.UI.RadTreeView.RaisePostBackEvent(String eventArgument)
   at Telerik.Web.UI.RadTreeView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String 
  
eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean 
  
includeStagesAfterAsyncPoint)
Since, I can't send the whole code, I can explain on a high level where I am getting this issue:

I m trying to interact between two userControls inside a Radpageview. When sending the request from one control(RadtreeView) to Grid and rebinding it..I m getting this at the point where I bind this grid to a placeholder.
I see that the data is getting binded to the control properly but before rendering on to the page, I m coming across this error.
I m not using HttpContext.Current.Request anywhere in my code. It is rendered on to my IE with IIS7.0

Any help on this will greatly be appreciated.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Aug 2010, 11:33 AM
Hello Smith,

I suggest that you review the forum thread below and let me know if it helps to avoid this error:
http://www.telerik.com/community/forums/aspnet-ajax/grid/request-is-not-available-in-this-context-exception.aspx

All the best,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
smith spd
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or