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

4 posts, 0 answers
  1. Aron
    Aron avatar
    80 posts
    Member since:
    Dec 2005

    Posted 27 May 2011 Link to this post

    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>
  2. IvanDT
    Admin
    IvanDT avatar
    75 posts

    Posted 30 May 2011 Link to this post

    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
  3. Brent Kauth
    Brent Kauth avatar
    1 posts
    Member since:
    Dec 2007

    Posted 23 Sep Link to this post

    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?  
  4. Neli
    Admin
    Neli avatar
    190 posts

    Posted 26 Sep Link to this post

    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
Back to Top