RAD AjaxManager issue with Telerik.ReportViewer.WebForms.ReportViewer control

23 posts, 0 answers
  1. Joshua
    Joshua avatar
    7 posts
    Member since:
    Jan 2012

    Posted 10 Dec 2013 Link to this post

    Hi, Everyone,

    I’m having some issues with the RAD AjaxManager/Rad AjaxManager Proxy working with the reporting WebForms.ReportViewer that I can’t get around. I’m not sure if this is a Reporting issue or an ASP.Net issue, but I’m going to post here initially.

    A little background: I just upgraded both the ASP.Net AJAX and Reporting toolsets from Q3 2012 SP1 to the Q3 2013 version. The scenario I’ll present below has been working with no issues in the Q3 2012 SP1 version and broke after the upgrade.

    Basically, I’ve got a master page that has an AJAX Manager control and a content page that has the AjaxManager Proxy. Also on the content page, I’ve got a button and an ASP Panel that has a ReportViewer control and an ASP Label. The AjaxManager Proxy has been configured with AJAX settings for the button, with the ASP Panel identified as the control to be updated. The markup for this is below (this is inside the content page’s ASP Content tag):


    <div>
        <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadButton1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pnlQuoteView" UpdatePanelCss />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManagerProxy>
        <table border="0" cellpadding="0" cellspacing="0" width="1300" style="border-style: solid; border-width: 1px; margin-left: auto; margin-right: auto; border-color: rgb(223, 233, 245);">
            <tr>
                <td>
                    <telerik:RadButton ID="RadButton1" runat="server" OnClick="RadButton1_Click" Text="RadButton">
                    </telerik:RadButton>
                     <br />
                    <asp:Panel ID="pnlQuoteView" runat="server" Width="100%">
                        <asp:Label ID="lblTest" runat="server"></asp:Label>
                        <telerik:ReportViewer ID="rvQuote" runat="server" ShowDocumentMapButton="False" ShowHistoryButtons="False"
                            ShowParametersButton="False" ShowRefreshButton="False" Width="100%" Height="600px"
                            ViewMode="Interactive" ShowExportGroup="False" ShowPrintButton="False" ProgressText="Generating quote..."></telerik:ReportViewer>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </div>

    In the Page Load event for the content page, I’m setting the Visible property of the ReportViewer to false, as I don’t want it to display until the button is clicked. I’m doing the same thing with the Label.

    The problem is coming when I try to set the Visible property of the ReportViewer to true in the button click event (see the code below):

    protected void Page_Load(object sender, EventArgs e)
    {
        this.rvQuote.Visible = false;
        this.lblTest.Visible = false;
    }
    protected void RadButton1_Click(object sender, EventArgs e)
    {
        this.lblTest.Visible = true;
        this.lblTest.Text = "help!";
        rvQuote.Visible = true;
    }

    When I do this, all AJAX stops working on the page because of an unhandled exception in the Telerik.Web.UI.WebResourse.axd: 

    JavaScript runtime error:
    Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null. Parameter name: key.


    And the following gets written to the machine's Application Event Log for the unhandled exception:

    Exception information:

        Exception type: ArgumentNullException

        Exception message: Value cannot be null.

    Parameter name: key

       at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)

       at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetLiteralTraceData(LiteralControl literal, TraceData& data)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetTraceData(Object renderedObject)

       at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject)

       at System.Web.UI.RenderTraceListener.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)

       at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)

       at System.Web.UI.WebControls.CompositeControl.Render(HtmlTextWriter writer)

       at Telerik.ReportViewer.WebForms.ReportViewer.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)

       at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

       at Telerik.Web.UI.ControlRenderer.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.Control.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.Control.Render(HtmlTextWriter writer)

       at System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer)

       at Telerik.Web.UI.OurUpdatePanel.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

       at System.Web.UI.PageRequestManager.RenderFormCallback(HtmlTextWriter writer, Control containerControl)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)

       at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)

       at System.Web.UI.HtmlFormWrapper.System.Web.UI.IHtmlForm.RenderControl(HtmlTextWriter writer)

       at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.Page.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

       at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.Page.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

       at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.Page.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    The ReportViewer works fine if it’s made visible on page load, or if a full postback is performed with the button click, instead of using AJAX. At first I thought it may be due to setting visible = false in the page load event, as the viewer isn’t initially rendered to the browser and isn’t in the control tree, but doing the same thing with the Label works fine. The error only happens when changing the Visible property of the ReportViewer. (if I comment out the rvQuote.Visible = true; line, the label is visible and displays the expected text.

    So, I’m a little confused and need some direction. I did quite a bit of looking in the forums for something similar to this, but I didn't see anything, hence the post. I feel like there’s probably something simple that I’m missing, just can’t quite figure out what it is…

    Thanks in advance for any assistance provided!

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 13 Dec 2013 Link to this post

    Hi Joshua,

    I tried to replicate the described issue using your code with the latest version of RadControls for ASP .Net Ajax and ReportViewer and was not able to replicate the issue locally.
    Find attached my test application which works properly on my end. test it on your side and verify what the difference in your case is.

    Regards,
    Maria Ilieva
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joshua
    Joshua avatar
    7 posts
    Member since:
    Jan 2012

    Posted 13 Dec 2013 Link to this post

    Hmmm... Well, OK. I get the same error when I run your sample. Let me try repairing my installation and see if that corrects things.
  5. Joshua
    Joshua avatar
    7 posts
    Member since:
    Jan 2012

    Posted 13 Dec 2013 Link to this post

    I repaired my installation of ASP.Net AJAX and Reporting, but am still seeing the issue.

    I've narrowed it down a bit, though. I'm running the sample and my application in Visual Studio 2013, using IIS Express, and I see the issue. On a whim, I tried the sample in Visual Studio 2010 and it works fine in that environment, using the Development Server.

    Are there known issues with the controls and a VS 2013/IIS Express environment that I missed somewhere?
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 18 Dec 2013 Link to this post

    Hi Joshua,

    I will further test the same application in the problematic environment you have described. Meanwhile could you please verify if you are not running the application in Medium Trust when using IIS? In case Medium Trust is used please review the help article below which elaborates on such scenarios with Ajax:
    http://www.telerik.com/help/aspnet-ajax/ajax-in-medium-trust.html

    Regards,
    Maria Ilieva
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  7. Joshua
    Joshua avatar
    7 posts
    Member since:
    Jan 2012

    Posted 18 Dec 2013 Link to this post

    Hi Maria,

    The application should be running in a Full Trust environment... Neither the application's web.config nor the IIS Express server's applicationhost.config (c:\Users\<user>\My Documents\IIS Express\config) files specify a trust level, so I checked the web.config in the c:\Windows\Microsoft.net\Framework\v4.0.30319 folder and the c:\Windows\Microsoft.net\Framework64\v4.0.30319 folders (it's a 64-bit machine, but I checked both, just in case). In both cases, Full Trust is specified on a framework level.

  8. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 21 Dec 2013 Link to this post

    Hello Joshua,

    This is to let you know that we will need additional time for further testing and investigate the issue. As son as any updates on this case are available we will get back to you with our findings.

    Regards,
    Maria Ilieva
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  9. Jamie
    Jamie avatar
    1 posts
    Member since:
    Sep 2009

    Posted 15 Jan 2014 Link to this post

    Perhaps this will be of some help...I encountered what may be a similar issue with the RadGrid and Visual Studio 2013.  The web application worked in VS 2012 but when built using VS 2013 I'd receive the same reported errors:

    Client-error: "Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null. Parameter name: key"
    Windows Application event log:
    Exception information:
        Exception type: ArgumentNullException
        Exception message: Value cannot be null.
    Parameter name: key
       at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
       at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
    ...

    The issue in my case was the RadGrid colums were being dynamically added and each contained a "LiteralControl" object.  However the Text property of the literal control was not set In the "ItemDataBound" event when there was no value.  In other words the LiteralControl's Text property was NULL when there was nothing to show on the grid.  Setting the Text property to an empty string resolved the issue (when running in VS 2013).




  10. John
    John avatar
    1 posts
    Member since:
    Sep 2012

    Posted 17 Feb 2014 Link to this post

    Hello Maria Ilieva ,
    Have you found a solution to the problem. Am having a similar issue to Jamie
  11. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 19 Feb 2014 Link to this post

    Hello John,

    The Jamie issue was related to the RadGrid configuration and as he posted the issue was fixed on his end. If you are facing similar issue I would suggest you to open a separate thread with the entire information for your scenario and the exact problem you are facing. Thus we will be bale to further research on your specific case and advise you further.

    Regards,
    Maria Ilieva
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  12. Tom
    Tom avatar
    2 posts
    Member since:
    Jan 2012

    Posted 10 Mar 2014 Link to this post

    Are there any updates on the issue that Joshua identified on December 10th?
  13. Shane Woodruff
    Shane Woodruff avatar
    9 posts
    Member since:
    Mar 2010

    Posted 13 Mar 2014 in reply to Tom Link to this post

    I am also having this issue, and only in Visual Studio 2013. Installing VS 2013 Update 1 didn't help, nor did upgrading to the latest versions of Telerik Reporting and ASP.NET controls.

    Here is my stack trace:
       at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
       at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
       at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetLiteralTraceData(LiteralControl literal, TraceData& data)
       at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetTraceData(Object renderedObject)
       at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject)
       at System.Web.UI.RenderTraceListener.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
       at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
       at System.Web.UI.WebControls.CompositeControl.Render(HtmlTextWriter writer)
       at Telerik.ReportViewer.WebForms.ReportViewer.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
       at Telerik.Web.UI.RadPageView.RenderContents(HtmlTextWriter writer)
       at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
       at Telerik.Web.UI.RadWebControl.RenderContents(HtmlTextWriter writer)
       at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
       at Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.Control.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.Control.Render(HtmlTextWriter writer)
       at System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.PageRequestManager.RenderFormCallback(HtmlTextWriter writer, Control containerControl)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
       at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.HtmlFormWrapper.System.Web.UI.IHtmlForm.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.Page.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at System.Web.UI.Page.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  14. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 13 Mar 2014 Link to this post

    Hello Shane,

     As we are not able to replicate the issue on our end could I kindly ask you to open a separate support ticket and send us sample runnable application which demonstrates the issue.

     Thus we will be able to test it locally and advise you further.

    Regards,
    Maria Ilieva
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  15. kamii47
    kamii47 avatar
    31 posts
    Member since:
    Mar 2007

    Posted 08 Apr 2014 in reply to Maria Ilieva Link to this post

    Getting similar problem when using sitefinity 5.3.
    It is working fine in VS2012 but getting following error with My Visual studion 2013 [with update1] IDE

    Server Error in '/' Application.Value cannot be null.
    Parameter name: keyDescription: 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.ArgumentNullException: Value cannot be null.
    Parameter name: key

    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: 

    [ArgumentNullException: Value cannot be null.
    Parameter name: key]
    System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +10627293
    System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) +12
    Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.BrowserLinkExecutionListener.FindSourceFile(PageExecutionContext context) +87
    Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.BrowserLinkExecutionListener.OpenRenderRange(PageExecutionContext context) +53
    Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.BrowserLinkExecutionListener.BeginContext(PageExecutionContext context) +111
    Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.Begin(TextWriter writer, String file, Int32 start, Int32 length, Boolean literal) +343
    Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.BeginRendering(TextWriter writer, Object renderedObject) +241
  16. kamii47
    kamii47 avatar
    31 posts
    Member since:
    Mar 2007

    Posted 08 Apr 2014 in reply to kamii47 Link to this post

    Full error information in my case is  [As i can't able to edit my previous post]

    Server Error in '/' Application.Value cannot be null.
    Parameter name: keyDescription: 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.ArgumentNullException: Value cannot be null.
    Parameter name: key

    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: 

    [ArgumentNullException: Value cannot be null.
    Parameter name: key]
    System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +10627293
    System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) +12
    Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.BrowserLinkExecutionListener.FindSourceFile(PageExecutionContext context) +87
    Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.BrowserLinkExecutionListener.OpenRenderRange(PageExecutionContext context) +53
    Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.BrowserLinkExecutionListener.BeginContext(PageExecutionContext context) +111
    Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.Begin(TextWriter writer, String file, Int32 start, Int32 length, Boolean literal) +343
    Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.BeginRendering(TextWriter writer, Object renderedObject) +241
    System.Web.UI.RenderTraceListenerList.BeginRendering(TextWriter writer, Object renderedObject) +98
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +37
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.LinkButton.RenderContents(HtmlTextWriter writer) +9773171
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.Control.Render(HtmlTextWriter writer) +10
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
    System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
    System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
    System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
    System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    Telerik.Sitefinity.Web.UI.Fields.TextField.GetHtmlOutputForControl(Control ctrl) +140
    Telerik.Sitefinity.Web.UI.Fields.TextField.ConstructClientSideTemplates(GenericContainer container) +854
    Telerik.Sitefinity.Web.UI.Fields.TextField.InitializeControls(GenericContainer container) +56
    Telerik.Sitefinity.Web.UI.SimpleView.CreateChildControls() +106
    System.Web.UI.Control.EnsureChildControls() +83
    System.Web.UI.Control.PreRenderRecursiveInternal() +42
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Control.PreRenderRecursiveInternal() +155
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974
  17. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Apr 2014 Link to this post

    Hi Kamran,

    Could you please try to disable the VS 2013 Browser Link feature and verify if this makes any difference?

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  18. Tom
    Tom avatar
    2 posts
    Member since:
    Jan 2012

    Posted 11 Apr 2014 in reply to Maria Ilieva Link to this post

    Maria,

    That appears to have resolved the problem for me - Thanks for the solution - Tom
  19. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 28 Oct 2014 Link to this post

    Helped me to. I've added this in the web.config:

    <appSettings>
        <add key="vs:EnableBrowserLink" value="False" />

  20. Mark
    Mark avatar
    64 posts
    Member since:
    Nov 2009

    Posted 19 Feb 2015 Link to this post

    Could you please try to disable the VS 2013 Browser Link feature and verify if this makes any difference?


    This workaround solves the issue.
    But is there a fix for this?
    It only happens with the report viewer so i am guessing its a bug with that?
    As the browser link can be useful.

    Thanks
  21. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 23 Feb 2015 Link to this post

    Hello Matt,

    I can not be sure what the exact issue you are facing is, however |i want to ensure you that most of the issues related to the browser Link feature are already fixed and for now the RadGrid control faces only the one linked below:

    http://www.telerik.com/forums/the-new-browser-link-feature-in-vs-2013-is-causing-an-error-when-detailtable-of-hierarchy-radgrid-is-expanded

    Therefore I would suggest you to upgrade your application to the latest version of the controls and see how it goes.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  22. Henrik
    Henrik avatar
    23 posts
    Member since:
    Feb 2012

    Posted 30 Mar 2015 Link to this post

    I just had the same issue with ReportViewer and Ajax, the lastest version of everything on VS2013.

    Disabling Browser Link fixed the issue.
  23. Carl
    Carl avatar
    5 posts
    Member since:
    Aug 2010

    Posted 02 May in reply to Maria Ilieva Link to this post

    Disabling Browser Link in VS.NET 2015 solved this problem for me.  The Telerik Reporting 2013 Q1 SP1 ReportViewer was throwing the exception shown below.  I tried upgrading to 2016 Q1 SP1, but had the exact same results.  It was Browser Link and I thank you sincerely for your suggestion.

    ============================================

    Exception: Value cannot be null. Parameter name: key

    Stack Trace:

    at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
    at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
    at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetLiteralTraceData(LiteralControl literal, TraceData& data)
    at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.GetTraceData(Object renderedObject)
    at Microsoft.VisualStudio.Web.PageInspector.Runtime.WebForms.SelectionMappingRenderTraceListener.EndRendering(TextWriter writer, Object renderedObject)
    at System.Web.UI.RenderTraceListener.RenderTraceListenerList.EndRendering(TextWriter writer, Object renderedObject)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
    at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
    at Telerik.ReportViewer.WebForms.ReportViewer.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at ASP.controls_participantdiploma_ascx.__RenderpnlPreview(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\542014c7\517c03c3\App_Web_dm5qfh1w.20.cs:line 0
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
    at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer)
    at System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.WebControls.MultiView.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer)
    at System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.PageRequestManager.RenderFormCallback(HtmlTextWriter writer, Control containerControl)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
    at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
    at System.Web.UI.HtmlFormWrapper.System.Web.UI.IHtmlForm.RenderControl(HtmlTextWriter writer)
    at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl)
    at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
    at System.Web.UI.Page.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

  24. Steve
    Steve avatar
    3 posts
    Member since:
    Oct 2013

    Posted 19 Sep in reply to Erik Link to this post

    I am so glad I googled this. Thanks for posting. I don't know how I would have ever come up with this conclusion.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017