Javascript Errors when I try to use ReportViewer in my web form.

6 posts, 0 answers
  1. Jon
    Jon avatar
    6 posts
    Member since:
    Jun 2009

    Posted 22 Jun 2009 Link to this post

    "Microsoft JScript runtime error: Object expected":  Here's the first line that is causing the error:




     I'm using 2009 Q1.  This is a .net 3.5 web application.  I tried reinstalling Telerik Reporting and I still get the error.  Any ideas?

  2. Steve
    Steve avatar
    10941 posts

    Posted 23 Jun 2009 Link to this post

    Hello Jon,

    It would be best if you attach a sample web site/app that shows the error at hand in a support ticket, as we've not been reported with this problem before. What is the browser and version that this happens on and does it happen on other browsers as well? Any additional information that you could provide would be highly appreciated.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Jon
    Jon avatar
    6 posts
    Member since:
    Jun 2009

    Posted 25 Jun 2009 Link to this post

    A lead developer at my company helped me get this resolved using fiddler.  It was due to security settings in my application.  Since I am testing my application, I was allowing all users to access the page that the report viewer is on to avoid having to login everytime, but not for the report viewer, which apparently is viewed as a page on it's on.  Once we turned security off in the web config, I was able to view the report. 
  4. Joanna LaForte
    Joanna LaForte avatar
    4 posts
    Member since:
    Jul 2009

    Posted 22 Aug 2011 Link to this post

    <location path="Telerik.ReportViewer.axd">
                 <allow users="*"/>

    Per the post above about security issues, I added this to my web.config file in the <configuration> tag and all worked as it should.  Thanks for sharing the fix above because none of the other suggested fixes were appropriate for correcting the issue in our project and I was about to start tearing out my hair in frustration.

  5. AKHIL
    AKHIL avatar
    1 posts
    Member since:
    Jul 2013

    Posted 27 Aug 2013 Link to this post

    I am getting the same issue in .Net MVC 2 even after adding the above code!
    Can somebody please help me on this?!
  6. Stef
    Stef avatar
    3611 posts

    Posted 30 Aug 2013 Link to this post

    Hello Akhil,

    without more details it is hard to determine the cause of the issue in your case. Please take a look at your support ticket regarding the same question and update it with the requested details.


    Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Back to Top