Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET and Crystal Rport as webservice error

Status
Not open for further replies.

EBee

MIS
Aug 10, 2001
229
US
I am trying to link a Crystal Report on a ASP.NET page using VS.NET CR v9. However, I am getting this error when I view it in the browser. CrystalReportViewer error

%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="webform200b.aspx.vb" Inherits="CRService.webform200b"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>webform200b</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content=" </HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<CR:CrystalReportViewer id="CrystalReportViewer1" style="Z-INDEX: 101; LEFT: 32px; POSITION: absolute; TOP: 112px"
runat="server" Width="350px" Height="50px"></CR:CrystalReportViewer>
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 64px; POSITION: absolute; TOP: 40px" runat="server"
Text="Crystal Report Web Service"></asp:Button>
</form>
</body>
</HTML>
 
The code you have really doesn't give much to trouble shoot...inlcude the .aspx code-behind code please.

OR

It could be that your CrystalReprotViewer object is not the right version. Try deleting it and re-adding the control...make note of:
<%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
 
Here what i found so far regarding this error
However, The asp tag from the form still refers to the old assembly. . should Delete them or replace it with what I have in my web.config file ?

thank you for looking into this
-erwin


Solution

This error message appears because removing references from a Visual Studio Project does not remove those references from the corresponding 'Web.Config' file.

To resolve this issue, edit the 'Web.Config' file for this web application and remove the older assemblies. To edit the 'Web.Config' file:

1. Double-click 'Web.Config' from the Solution Explorer.

2. Once open, search the file for the "<assemblies>" tag. This tag will be followed by a series of tags like the following:

"<add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>"

3. Remove all tags that reference the version 9.1 Crystal assemblies, but leave all assemblies that reference 9.2.

Once you remove the tags that referenced the version 9.1 Crystal assemblies, your application will run successfully.
 
More informations:

I have VS.NET installed and Crystal Reports Advanced v.9 in the same box. This could be my problem. . .

-erwin
 
check the version of Crystal Reports...I know you have v9, but do a Help-About in Crystal to get the full version number, then in VS.NET, do a Help-About too...there, you should see the Crystal Version.

1. Update your Crystal Reports v9 with the latest updates/patches.
2. Update VS.NET with the latest version of your Crystal 9.
Note -- looks like you'll need a key for this...I had to enter the key when I upgrade VS.NET to v10.



Here are some other sources that may help:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top