Tips and Tricks
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005-2015 : Tips and Tricks
Message Icon Topic: crystal reports in Visual Web Developer 2008 Post Reply Post New Topic
Author Message

Joined: 06 May 2010
Online Status: Offline
Posts: 15
Quote wan2fly99 Replybullet Topic: crystal reports in Visual Web Developer 2008
    Posted: 23 Jun 2010 at 9:33am

I have visual studio 2008 installed on home computer

Create a site with a crystal report in in

At work we have visual web developer express 2008

Tried ti insert all th assembly files for crystal in the webconfig

Looked at the assmebly we have in c:/wondows/assembly for the correct version and toekn I have here

I get his error :

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type 'CrystalDecisions.Web.CrystalImageHandler' from assembly 'CrystalDecisions.Web, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'.

Source Error:

Line 102:			<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 103: <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
Line 104: <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
Line 105: <httpModules>
Line 106: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

At comiple time I have this error and don't know how to get rid of it:

Error    1    Unknown server tag 'CR:CrystalReportSource'.    D:\webCrystal\Default.aspx    30 

Error    2    Name 'CrystalReportSource1' is not declared.    D:\webCrystal\Default.aspx.vb    8    9    D:\webCrystal\

Error    4    Name 'CrystalReportSource1' is not declared.    D:\webCrystal\Default.aspx.vb    10    9    D:\webCrystal\

Message    12    Validation (ASP.Net): Attribute 'ReportSourceID' is not a valid attribute of element 'CrystalReportViewer'.    D:\webCrystal\Default.aspx    41    33    D:\webCrystal\

Here is my code: (Tried adding namespaces but cannot figure it out how t get the viewer control to be recgnize

Any help is really appreciated

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
 <%@ Register Assembly="CrystalDecisions.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
    <title>Untitled Page</title>
    <form id="form1" runat="server">
    <h2> The following is a sample of Crystal in</h2>
        <p> Please Enter Title:
            <asp:TextBox ID="TBTitle" runat="server" Width="196px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Please Enter Titl Header:
            <asp:TextBox ID="TBTitleHeader" runat="server" Width="222px"></asp:TextBox>
        <p> &nbsp;</p>
            <asp:Button ID="Button1" runat="server" Text="Show Report" />
    <br />

    <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
        <Report FileName="CrystalReport.rpt">
                <CR:ControlParameter ControlID="TBTitle" ConvertEmptyStringToNull="False"
                    DefaultValue="" Name="Title" PropertyName="Text" ReportName="" />
                <CR:ControlParameter ControlID="TBTitleHeader" ConvertEmptyStringToNull="False"
                    DefaultValue="" Name="TitleSub" PropertyName="Text" ReportName="" />
        <CR:CrystalReportViewer ID="CrystalReportViewer2" runat="server"
            AutoDataBind="true" ReportSourceID="CrystalReportSource1" />
        <br />
        <br />

IP IP Logged

Joined: 04 Jul 2010
Location: India
Online Status: Offline
Posts: 3
Quote cpn786 Replybullet Posted: 04 Jul 2010 at 5:45am
Crystal Reports for Visual Studio 2008 requires a "runtime" to load reports on a client machine.  This "runtime" can be found in this location on the development machine.

"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5"

"CRRedist2008_x86.msi" (for 32bit)
"CRRedist2008_x64.msi" (for 64bit)

Running this install package will install the files necessary to run open forms using Crystal Reports for Visual Studio 2008 (version 10.5 in the IDE).  This is NOT the required "Runtime" for Crystal Reports 2008 (which is version 12).
IP IP Logged
Ethan Luca

Joined: 18 Jan 2011
Online Status: Offline
Posts: 1
Quote Ethan Luca Replybullet Posted: 18 Jan 2011 at 10:09pm
In the business object website is a several install file for the version of visual web developer.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

This page was generated in 0.062 seconds.