?
Solved

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

Posted on 2010-11-17
2
Medium Priority
?
1,963 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses

809 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