Link to home
Start Free TrialLog in
Avatar of P1ST0LPETE
P1ST0LPETEFlag for United States of America

asked on

ActiveReports 6 FlashViewer not working when using the .net 4.0 Framework

Development Environment:

 - Windows 7 Ultimate 64-bit Edition
 - Visual Studio 2010 Pro
 - Latest ActiveReports6 build installed (i.e. ActiveReports 6 Service Pack 1 Hotfix 1 Build 6.1.2814.0)



Experts,

I am trying to get the <ActiveReportsWeb:WebViewer> control with ViewerType="FlashViewer" to display an ActiveReports report in a project built using the .Net 4.0 Framework.  However, I am getting a flash error when I try to do this saying "IOError while loading document. Reason: Error #2032".  Below is a screenshot of the flash error:
 User generated image
As you can see there is a "Stack Trace" tab.  When I click on this there is no information at all.  Nothing - completely blank.

I created a brand new web application project and reduced the code down to the bare minimum and I am still getting the error.  The following is my current code that is producing the error:

Page Markup:
 
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportViewer.aspx.cs" Inherits="ReportTest.ReportViewer" %>

<%@ Register Assembly="ActiveReports.Web, Version=6.1.2814.0, Culture=neutral, PublicKeyToken=XXXXXXXXXXXXXXX"
    Namespace="DataDynamics.ActiveReports.Web" TagPrefix="ActiveReportsWeb" %>

<!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 runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ActiveReportsWeb:WebViewer
            ID="WebViewer"
            runat="server"
            Style="border: solid 1px #AAA"
            Height="650px"
            Width="915px"
            ViewerType="FlashViewer"
            FlashViewerOptions-WindowMode="Transparent"
            FlashViewerOptions-ViewType="Continuous" />
    </div>
    <div>
        <ActiveReportsWeb:WebViewer
            ID="WebViewer1"
            runat="server"
            Style="border: solid 1px #AAA"
            Height="650px"
            Width="915px"
            ViewerType="HtmlViewer" />
    </div>
    </form>
</body>
</html>

Open in new window


Page Code Behind:
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ReportTest
{
    public partial class ReportViewer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataDynamics.ActiveReports.ActiveReport report = new Report1();
            WebViewer.Report = report;
            WebViewer1.Report = report;
        }
    }
}

Open in new window


As you can see I have two WebView controls on the page.  One using the FlashViewer, and the other using the HtmlViewer.  Both being loaded with the same report (which the report contains nothing but a single Label control saying "Hello World").  The HtmlViewer works fine, the FlashViewer displays the error shown above in the screen shot.

If I create this exact same new project, except using the 3.5 Framework, then the report is able to display in the FlashView with no errors (i.e. working as it should).

I am running the application from Visual Studio, and as I step through it I see no errors in my code at all.  It's only when the page finally loads that I see the flash error displayed in the browser.  Also, this is happening in all 5 major browsers: IE8, Firefox, Chrome, Safari, Opera.

Not sure what else to check or do at this point.  Please advise.

Also, included this question in the Crystal Reports zone.  I know ActiveReports and Crystal Reports are two different report packages developed by completely different companies, but they are extremely similar, so I thought maybe a CR guru might be able to help out.
Avatar of P1ST0LPETE
P1ST0LPETE
Flag of United States of America image

ASKER

From my googling, I'm am reading that this is produced when IIS is not configured correctly.

http://www.datadynamics.com/forums/130173/ShowPost.aspx

Well, what should I configure in Visual Studio, to get Visual Studio's virtual server configured correctly?
ASKER CERTIFIED SOLUTION
Avatar of P1ST0LPETE
P1ST0LPETE
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial