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

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

5 Answers 173 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 22 Jun 2009, 02:33 PM

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

ToolbarImageButton(

'ReportViewer1_ReportToolbar_NavGr_FirstPage_Button','FirstPage',false,'NormalButton','DisabledButton','PushButton',false);

 

 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?

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 23 Jun 2009, 11:52 AM
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,
Steve
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.
0
Jon
Top achievements
Rank 1
answered on 25 Jun 2009, 08:52 PM
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. 
0
Joanna LaForte
Top achievements
Rank 1
answered on 23 Aug 2011, 03:45 AM
<location path="Telerik.ReportViewer.axd">
     <system.web>
         <authorization>
             <allow users="*"/>
         </authorization>
     </system.web>
</location>


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.

0
AKHIL
Top achievements
Rank 1
answered on 27 Aug 2013, 07:31 AM
I am getting the same issue in .Net MVC 2 even after adding the above code!
Can somebody please help me on this?!
0
Stef
Telerik team
answered on 30 Aug 2013, 02:10 PM
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.

Regards,
Stef
Telerik

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

Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Steve
Telerik team
Jon
Top achievements
Rank 1
Joanna LaForte
Top achievements
Rank 1
AKHIL
Top achievements
Rank 1
Stef
Telerik team
Share this question
or