cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report Can nt Load System.Web.Extensions Version=2.0.0.0.

Former Member
0 Kudos

I have an application that I created in ASP.NET 1.1 that I subsequently upgraded to VS2008 - ASP.NET 2.0. Whenever I attempt to run the report in the application, I get the following error

Could not load file or assembly 'System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I have installed the Crystal Reports Runtime but to no avail. I would appreciate if someone could give me some help. Below is the source of the form containing the viewer

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmCompletedApplication.aspx.cs" Inherits="JobApplication.frmCompletedApplication" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"

Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

<!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">

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"

AutoDataBind="True"

SelectionFormula="{ApplicantPersonalInfo.ApplicantID} = 2"

SeparatePages="False" Height="32767px"

Width="901px" ReportSourceID="CrystalReportSource1">

</CR:CrystalReportViewer>

<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">

<Report FileName="JobApplicationReport.rpt">

</Report>

</CR:CrystalReportSource>

</form>

</body>

</html>

Here is my Web Config

<?xml version="1.0"?>

<configuration>

<configSections>

<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>

<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>

</sectionGroup>

</sectionGroup>

</sectionGroup>

</configSections>

<appSettings>

<add key="CrystalImageCleaner-AutoStart" value="true" />

<add key="CrystalImageCleaner-Sleep" value="60000" />

<add key="CrystalImageCleaner-Age" value="120000" />

</appSettings>

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<publisherPolicy apply="no"/>

<dependentAssembly>

<assemblyIdentity name="system.web.extensions" PublicKeyToken="31bf3856ad364e35" Culture="neutral"/>

<bindingRedirect oldVersion="2.0.0.0" newVersion="1.0.61025.0"/>

</dependentAssembly>

</assemblyBinding>

</runtime>

<system.web>

<pages>

<controls>

<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>

</controls>

</pages>

<!--

Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this

affects performance, set this value to true only

during development.

-->

<compilation debug="true">

<assemblies>

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<!<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>>

<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<!-- <add assembly="System.Windows.Forms,

, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>-->

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

<add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.VSDesigner, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

</assemblies>

</compilation>

<httpHandlers>

<remove verb="" path=".asmx"/>

<add verb="" path=".asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add verb="" path="_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

</httpHandlers>

<httpModules>

<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</httpModules>

</system.web>

<system.webServer>

<validation validateIntegratedModeConfiguration="false"/>

<modules>

<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</modules>

<handlers>

<remove name="WebServiceHandlerFactory-Integrated"/>

<add name="ScriptHandlerFactory" verb="" path=".asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add name="ScriptHandlerFactoryAppServices" verb="" path="_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

--<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

<add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>

<validation validateIntegratedModeConfiguration="false"/>

</handlers>

</system.webServer>

</configuration>

Accepted Solutions (1)

Accepted Solutions (1)

former_member184995
Active Contributor
0 Kudos

That is not one of our files, but typically the error that you got is exactly the problem.

The file is not located in the GAC on the machine you are trying to run the application on.

Have you checked the GAC?

Is that file there?

Is it the 2.0 framework version of the file?

Have you tried to google this error?

Jason

Former Member
0 Kudos

I know that it is not one of the Crystal dlls, it is the ajax extension dll. However, there is no reference to ajax extension on the form that has the Crystal Reports viewer. When the form comes up it is missing all of the ions, basiclly behaving the way Crystal typically behaves when it cannot find the dlls. Why it throw that error page is beyond me. I suspect that when the Crystal reports issue is resolved, that error will go away.

former_member184995
Active Contributor
0 Kudos

I see this in your web.config above so it is referenced somewhere:

<dependentAssembly>

<assemblyIdentity name="system.web.extensions" PublicKeyToken="31bf3856ad364e35" Culture="neutral"/>

<bindingRedirect oldVersion="2.0.0.0" newVersion="1.0.61025.0"/>

</dependentAssembly>

Take that dll from your working machine and copy it over into the GAC on the nonworking box to get past the error. I havent seen this error specifically related to Crystal when I googled it.

Also, did you install the to default website or to a different one?

If you installed to a different website then copy the aspnet_client folder from the wwwroot folder into the website that contains your project.

Former Member
0 Kudos

That reference was entered by myself in an attempt to solve the problem. It redirects asp.net to load the 1.06 version of the dll whenever it finds a reference to version 2.0 of the extension. Of course it did not help. The application is not installed to the default web site so I will try copying the asp.net folder to that site and see if that makes the difference.

Answers (2)

Answers (2)

former_member183750
Active Contributor
0 Kudos

Note the error is re. 'System.Web.Extensions' which is a Microsoft framework dll. I would suggest:

1) repair of the .NET installation

2) update the framework with the latest SP

3) see if you can crate a new app - without Crystal Reports using the 'System.Web.Extensions' assembly

4) see if you can create a new app using Crystal Reports (One line app using saved data report will do; crystalreportviewer1.reportsource = <path>)

5) Download the latest CR SP. As you don not mention what version of CR you are using, see if you can find the SP in our downloads section:

https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm

Ludek

Former Member
0 Kudos

I am having this exact problem. Is there a resolution?