Solved

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

Posted on 2010-11-17
2
1,904 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

695 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