This is a migrated thread and some comments may be shown as answers.

Telerik.ReportViewer.WebForms.ReportViewer exists in both Temporary ASP.NET Files & GAC_MSIL Error

3 Answers 835 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aron
Top achievements
Rank 2
Aron asked on 28 May 2011, 04:49 AM
Hello,

I have not been able to build my solution because of this error:

Error   64   The type 'Telerik.ReportViewer.WebForms.ReportViewer' exists in both 'c:\Users\me\AppData\Local\Temp\Temporary ASP.NET Files\root\21b51189\d0797591\assembly\dl3\68de48c5\40e0037f_14fbcb01\Telerik.ReportViewer.WebForms.DLL' and 'c:\Windows\assembly\GAC_MSIL\Telerik.ReportViewer.WebForms\4.1.10.921__a9d7983dfcc261be\Telerik.ReportViewer.WebForms.dll'   C:\Projects\TheaterSales\DemoSite\BoxOffice\EventManagment\PrintAttendeeTickets\eTicketsPerEventId.aspx   11   

Any ideas on what to do? thanks

Error: http://img11.imageshack.us/img11/3103/builderor1.png

Code On Page:

<%@ Page  Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="eTicketsPerEventId.aspx.cs" Inherits="BoxOffice_EventManagment_PrintAttendeeTickets_eTicketsPerEventId" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
    Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik"  %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentplaceholderRight" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="conMain" Runat="Server">
 
    <telerik:ReportViewer runat="server" ID="report1" Width="100%" Height="700px" BorderStyle="None"
         
    Report="ReportTestClassLibrary1.ViewEticketsByEventId, SimpleTickReporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" >
    </telerik:ReportViewer>
     
</asp:Content>


web.config

    <compilation debug="true" batch="false">
            <assemblies>
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="Telerik.Reporting, Version=4.1.10.921, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
                <add assembly="Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
      </assemblies>
        </compilation>
 
 
<controls>
                <add tagPrefix="uc1" tagName="NewsArticles" src="~/MasterPages/Controls/NewsArticles.ascx"/>
                <add tagPrefix="uc1" tagName="CurrentEvents" src="~/MasterPages/Controls/CurrentEvents.ascx"/>
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="cc2" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
                <add tagPrefix="cc1" namespace="TS.Common.WebUI.Controls" assembly="CommonClassLib"/>
                <add tagPrefix="ST" namespace="SimpleTick.WebControls"/>
                <add tagPrefix="telerik" namespace="Telerik.ReportViewer.WebForms" assembly="Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
            </controls>
 
 
<httpHandlers>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
            <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
            <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
            <add path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" verb="*" validate="true"/>
        </httpHandlers>

3 Answers, 1 is accepted

Sort by
0
IvanDT
Telerik team
answered on 30 May 2011, 05:02 PM
Hello Aron,

This is a generic error and usually means that there is a mismatch in your referenced dll and the actual one used. Most likely you have not uninstalled previous reporting installations and have mismatched references. Please use the Upgrade Wizard to upgrade your projects containing Telerik reports and rebuild the project. If you have added manual references i.e. Copy Local = True, then delete all assemblies from bin folder, re-add proper references in the project and rebuild the project after that.

Best wishes,
IvanDT
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brent Kauth
Top achievements
Rank 1
answered on 24 Sep 2019, 04:02 AM
I did what you recommended but it didn't help. I still get the same error. Do you have any other solutions for this problem?  
0
Neli
Telerik team
answered on 26 Sep 2019, 02:02 PM

Hello Brent,

Here are the steps that you can also try:

- make sure that the assembly references to Telerik Reporting in your web.config are pointing to the same version as the one installed on your machine;

or:

1. Remove all references to Telerik DLL files.

2. Add them back from the GAC list (not from physical location) - under Assemblies in the Reference Manager.

3. Set Copy Local on new DLL files to True.

Regards,
Neli
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Aron
Top achievements
Rank 2
Answers by
IvanDT
Telerik team
Brent Kauth
Top achievements
Rank 1
Neli
Telerik team
Share this question
or