all groups > sql server reporting services > august 2006 >
You're in the

sql server reporting services

group:

"Can't execute code from a freed script" + double toolbar when AsynchRendering=True and toggle items on page


"Can't execute code from a freed script" + double toolbar when AsynchRendering=True and toggle items on page Pete D
8/11/2006 5:38:19 PM
sql server reporting services:
Hi,

I have an ASP.NET web app which uses the ReportViewer control to render a
table report, with toggle items to show/hide groups of rows within the
table, each row allowing users to drill (via Jump to url) to a subreport.

I have AsynchRendering=True, and drilling to the subreport works fine if
none of the toggle items are expanded.

However, if a subset of rows is toggled visible, then I drill to the
subreport I get a javascript error saying "Can't execute code from a freed
script" and the ReportViewer toolbar appears twice at the top of my page.

Setting AsynchRendering=False clears the problem, but if any item is toggled
the resulting postback results in the page re-displaying aligned to the top.
It also means none of my bookmark links work as the postback aligns to the
top rather than the bookmark. This is unacceptable for large reports
containing many rows.

Has anyone come across this javascript error and the duplicated toolbar? Its
like the ReportViewer control is re-generating itself within itself.

Any help would be gratefully received.
many thanks
Pete

RE: "Can't execute code from a freed script" + double toolbar when AsynchRendering=True and toggle items on page weilu NO[at]SPAM online.microsoft.com
8/14/2006 12:00:00 AM
Hello Pete,

I would like to know whether you are using the Frame in you ASP.NET page?
If so, would you please try o rename the frame to anything but the report
name?

Also, could send the sample project to me so that I could try to repro on
my side. Please zip the project and send it to me directly. My direct email
address is weilu@ONLINE.microsoft.com ( Please remove ONLINE when you send
the email ), you may send the file to me directly and I will keep it secure.

Sincerely,

Wei Lu

Microsoft Online Community Support

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

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Re: "Can't execute code from a freed script" + double toolbar when AsynchRendering=True and toggle items on page Pete D
8/14/2006 2:46:05 PM
Hi Wei,

I am using an iFrame in my ASP.NET page to display the reports. The src of
the iFrame is set to an aspx page which contains the ReportViewer control,
and the parameters of the control are set programmatically at runtime.
However, the name of the iFrame is already different to the name of the
report.

I will send you the relevant files for you to investigate

Many thanks
Pete



[quoted text, click to view]

Re: "Can't execute code from a freed script" + double toolbar when AsynchRendering=True and toggle items on page Pete D
8/21/2006 4:26:07 PM
Hi Wei,

Have you had any success identifying the cause/solution to my problem? It
appears that even the most basic report, with toggle items and the ability
to drill (via Jump to url) to the next report, results in the ReportViewer
rendering itself "within itself", hence the two toolbars.

thanks
Pete


[quoted text, click to view]

Re: "Can't execute code from a freed script" + double toolbar when AsynchRendering=True and toggle items on page weilu NO[at]SPAM online.microsoft.com
8/22/2006 12:00:00 AM
Hello Pete,

I have tested on my side. The behavior is similar to you. But I do not get
the same javascript error. I am consulting in the internal discussion
group. I appreciate your patience.

Sincerely,

Wei Lu

Microsoft Online Community Support
RE: "Can't execute code from a freed script" + double toolbar when Asy Mini
8/25/2006 8:57:01 AM
Pete & Wei,

I am also having same problems with report viewer. The problem is very easy
to reproduce. Have a report with expan/collapse capability. Have link in
the data to an outside url: www.google.com. Include a reportviewer into an
aspx file and point to the report on the server. Run the web page and click
the link and it will launch fine. However if you expand and collapse a row,
then click the link and it will throw the exact same javascript error and try
to load the webpage within the reportviewer.

Coupl of solutions are found. set asychronous rendenring = false
or have a pagenavigation postback event and reset the hyperlink properties
to _top

This gets rid of the error, however, it creates some more problems, such as
when the webpage reloads it jumps to the top of the page and the focus is
lost if you are on the second page of the report.

asychronous rendenring = false cause the cells to display in different
sizes randomly

I tried using iframe instead of the reportviewer. Now in the frame not the
whole report is showing. Part of the report on the right side is cut off.
The ifram is set to 100% and it is not cut off by the ifram.

I am a little frustrated with the reportviewer as of now.

I will appreciate any help in this matter.


Mini

[quoted text, click to view]
Re: "Can't execute code from a freed script" + double toolbar when AsynchRendering=True and toggle items on page weilu NO[at]SPAM online.microsoft.com
8/28/2006 12:00:00 AM
Hello Pete,

After discussion in our internal discussion group, I have found that this
issue is like a known issue in the Visual Studio 2005. There is a hotfix
available for this issue. I recommand you to open a PSS case to get this
hotfix. I will email you the hotfix number for you.

Thank you!

Sincerely,

Wei Lu

Microsoft Online Community Support
AddThis Social Bookmark Button