+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / "The type 'Telerik.Web.UI.*' exists in both ...

"The type 'Telerik.Web.UI.*' exists in both ...

4 posts, 0 answered
  1. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    25 Mar 2011
    Link to this post
    To fix one problem, I upgraded SF 3.7 from SP2 to SP4.  Now I'm getting the following error (and 110 others, for each Telerik web control) when I build the site on my development machine.:

    Error 3 The type 'Telerik.Web.UI.RadWindow' exists in both 
    'C:\Users\rsewell.SESAC\Documents\Visual Studio 
    2008\WebSites\SitefinityDev\bin\Telerik.Web.UI.dll' and 
    'C:\Windows\assembly\GAC_MSIL\Telerik.Web.UI\2009.3.1103.35__121fae78165ba3d4\Telerik.Web.UI.dll' C:\Users\rsewell.SESAC\Documents\Visual 
    Studio 
    2008\WebSites\SitefinityDev\Sitefinity\UserControls\HR\eSignInBox.ascx.cs 18 4 C:\...\SitefinityDev\<BR>

    I followed your upgrade instructions, except for step 10, which I don't think apply. The only user controls in this web site that use Telerik controls are in the site's project, under Sitefinity/UserControls, which seems to me that they would use the same reference as the site.  If this step does apply, then I don't understand how to apply the instructions.

    I've gone into the site's properties and removed the reference to the version in the GAC (the reference to the correct version in the site's /bin folder is still there), but it comes back on its own.

    It looks like I need to replace the manifest in the GAC, but where do I find the manifest for Telerik.Web.UI?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    30 Mar 2011
    Link to this post
    Hi RSewell,

    As you can see from the stack trace you have some ambiguous reference in a custom user control you have created. Delete your temporarily ASP.NET Files where some of the assemblies were deposited. When you run the app again, it will generate the needed copy only. Check whether you have not  declared the type in two different locations or you have some old references. You could perform - Clean and Rebuild over the solution you have. The problem that you use different versions of the same dll.

    The project has reference to inappropriate version of the dll or the correct dll is not in your bin folder.  If you have incorrect references you should  remove the old references and add a new one that points to the dlls you have in your bin. More information about adding/removing references can be found at MSDN.Inside <assemblies> section of the web.config, please explicitly register the type and version you want to use.If you have set "auto update" to the dlls in  Visual Studio each time the newer version is loaded for the project.  You should disable the auto detection and remove all other reference


    Greetings,
    Ivan Dimitrov
    the Telerik team
  3. RSewell
    RSewell avatar
    54 posts
    Registered:
    25 Apr 2007
    15 Apr 2011
    Link to this post
    The only copy I have of Telerik.Web.UI on my development PC is the SP4 version.  A copy of this version is in the bin folder.

    However, %SystemRoot%\Assembly has the old version in it.

    As far as I know, I haven't declared the types anywhere, much less in more than one location.  As I said, the reference to the old version in the project's properties just comes back on its own; I've deleted it over and over at least 10 times now.  I think it may be coming back when I drag a RadControl from VS2008's Toolbar onto a page.

    I only want to ever use the one version, the latest.  I have no references in web.config that did not come from the web.config that came with SP4.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    18 Apr 2011
    Link to this post
    Hello RSewell,

    Then remove the old versions from your machine. This is a general ASP.NET error related to the mismatch of the references.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

Register for webinar
4 posts, 0 answered