Solved

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

Posted on 2010-11-17
2
1,854 Views
Last Modified: 2012-06-21
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:
 Flash Error
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.
0
Comment
Question by:P1ST0LPETE
  • 2
2 Comments
 
LVL 10

Author Comment

by:P1ST0LPETE
ID: 34157606
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?
0
 
LVL 10

Accepted Solution

by:
P1ST0LPETE earned 0 total points
ID: 34166816
Figured out the problem.  Needed to configure the httpHandlers inside my web.config file.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now