"200 badresponse unexpected token <" error on opening reportViewer

  1. #1

    "200 badresponse unexpected token <" error on opening reportViewer

    hello ,

    i am trying to open a new asp page using server.transfer(url). i am getting the "200 badresponse unexpected token <" error when opening the reportViewer

    i am using ext.net components in my project but only asp.net and rsweb:reportViewer in this one
    below is the report viewer asp page code:

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="reportViewer.aspx.vb" Inherits="Project.reportViewer" %>
    <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

    <%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">

    <form id="form1" runat="server">

    <asp:scriptmanager ID="Scriptmanager1" runat="server" EnablePageMethods="True"></asp:scriptmanager>

    <rsweb:ReportViewer ID="ReportViewer111" runat="server" BackColor="White"
    DocumentMapCollapsed="True" ShowCredentialPrompts="False"
    ShowParameterPrompts="False" ShowZoomControl="False"
    ToolBarItemBorderColor="White" ToolBarItemBorderStyle="None"
    ToolBarItemBorderWidth="0px" Width ="800px" >


    please note that the reports are working just fine but i can't get the data from the reports to my page because of this error.
    Thanks for your help..
    Last edited by sandyelk; Aug 23, 2013 at 6:51 AM.
  2. #2
    Where do you call Server.Transfer? Please note that Server.Transfer cannot be used in direct event handlers
  3. #3
    i am using it in the previous page(where i have displayed the available reports and selected the parameters values) and i am sending also the needed params in "ListOfParams"

    Dim url As String = "reportViewer.aspx"
    Dim ListOfParams As List(Of ReportInfo.parameterVar) = prepareParameters(HttpContext.Current.Session("par ameters"))

    Context.Items.Add("ReportName", HttpContext.Current.Session("reportname"))
    Context.Items.Add("ListOfParams", ListOfParams)
    Dim ReportName As String = HttpContext.Current.Session("reportname")

Similar Threads

  1. [OPEN] [#330] A suggestion to eradicate "Token is not unique" errors
    By michaeld in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 28, 2013, 6:01 AM
  2. BADRESPONSE: Unexpected token <
    By ascsolutions in forum 1.x Help
    Replies: 2
    Last Post: Jan 30, 2013, 1:38 PM
  3. [CLOSED] [MVC] Export Excel return "BADRESPONSE: Unexpected token <"
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 02, 2012, 3:05 PM
  4. BADRESPONSE: Unexpected token { on calendar control
    By Felixkirathe in forum 2.x Help
    Replies: 1
    Last Post: Apr 17, 2012, 4:07 PM
  5. Replies: 3
    Last Post: Apr 16, 2012, 1:56 PM

Posting Permissions