Issue with LoadContentFrom in Window

4 posts, 0 answers
  1. Jacob
    Jacob avatar
    2 posts
    Member since:
    Oct 2012

    Posted 20 Nov 2012 Link to this post

    I was trying to use the LoadContentFrom() of Kendo Window like this:

    	   .Title("Add or Edit Leafs")
    	   .LoadContentFrom("/Hierarchies/EditTimeHierarchyNodes?hierarchyID=" + Request.QueryString["hierarchyID"])
    And I have the action method in controller:
    public ActionResult EditTimeHierarchyNodes(Guid hierarchyID)
    			EditTimeHierarchyNodesViewModel model = new EditTimeHierarchyNodesViewModel() {
    				Hierarchy = m_timeHierarchyRepository.GetTimeHierarchy(hierarchyID),
    				LeafNodeGroups = m_timeNodeRepository.GetLeafNodeGroups(hierarchyID),
    			return View();
    However, when the ajax request came back, it gave me 500 error "This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet." The issue is that the View() does not have any overload that allows me to specify the AllowGet option. Can any one shine some light on this? Thanks.

  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 23 Nov 2012 Link to this post

    Hello Jacob,

    Usually the error you pasted is thrown when when you are trying to access an action method which returns JSON with GET request.

    We are not sure how this issue is thrown from such controller which returns a View.

    Could you share a project which reproduces that problem?

    Kind Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
  4. mark
    mark avatar
    2 posts
    Member since:
    Sep 2013

    Posted 03 Feb 2014 Link to this post


    I have exactly the same issue as the original poster (500 error). 

    The only point of difference I can see is that I am using MVC3 (which I can't change).  Apart from that it's as per the examples (window -> controller returning a View() or PartialView())

    Just wondering if there is a solution / workaround to this issue you can share?
  5. mark
    mark avatar
    2 posts
    Member since:
    Sep 2013

    Posted 03 Feb 2014 Link to this post

    Not to worry - I've solved it.  The problem was that any error with rendering the View() results in this ambiguous error.

    In my case I simply had the View in the incorrect folder.
Back to Top
UI for ASP.NET AJAX banner