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

Visual Studio 2013 Browser Link breaks Reporting

1 Answer 96 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
NerdBrick asked on 19 Dec 2013, 03:52 PM
This is more of an FYI learned with VS 2013 and Reporting Q3 2013. 

When the web.config has the debug flag set to true, Reporting wouldn't render in the browser because VS is adding this into the pages which breaks the Telerik js parser. 

<!-- Visual Studio Browser Link -->
<script type="application/json" id="__browserLink_initializationData">
<script type="text/javascript" src="http://localhost:59901/dba793e767684166b11416be8550cb2a/browserLink" async="async"></script>
<!-- End Browser Link -->

This section of the ReportViewer- code that it's hitting trying to load and parse the report page in an MVC webapp.
beginGetPage: function(pageNo) {
                   $.when(loadAsync()).then(function() {
                       return getPageAsync(pageNo);
                   }).done(function(info) {
                       onPageLoadComplete(pageNo, info);
                   }).fail(function(xhr, status, error) {
                       onError(formatXhrError(xhr, status, error));

The error message is "Unexpected Token" from the VS injected block

To fix this you have to turn off vs:EnableBrowserLink in the Web.config 
<add key="vs:EnableBrowserLink" value="false"/>

I see this was also reported as a problem with the Rad controls too. 

I'm not relying on VS Browser Link, but just wanted to put this information out there for other's that have a problem.

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 19 Dec 2013, 04:38 PM

Thank you for your post and detailed information on the topic. Indeed you need to disable the Browser Link feature in Visual Studio 2013 to run projects with the new HTML5 Report Viewer version

The issue is fixed in the consecutive internal builds.


New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

General Discussions
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question