Articles in this section
Category / Section

How to solve the error 'Syncfusion.Web.UI.WebControls.Tools.TabStripItem' exists in Syncfusion.Tools.Web assembly in multiple location ' ?

2 mins read

Problem

Compiler Error Message: CS0433: The type 'Syncfusion.Web.UI.WebControls.Tools.TabStripItem' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\02fac2e9\4fd1d854\assembly\dl3\47ca03ca\009d39b7_341bd001\Syncfusion.Tools.Web.DLL' and 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Syncfusion.Tools.Web\v4.0_12.4451.0.24__3d67ed1f87d44c89\Syncfusion.Tools.Web.dll'

Reason

The error arises when multiple assembly versions are referred in the same application from GAC or bin folders.

Solution

To resolve the issue, refer to the corresponding assemblies to add Syncfusion ASP.NET controls in the web applications and ensure whether the assembly version matches the web.config file and the referred DLLs. Maintain the same assembly version throughout the project.

Table for .NET framework and corresponding Assembly versions.

 .Net Frame Work Version

Syncfusion DLL Reference

4.0

12.4400.0.24

4.5

12.4450.0.24

4.5.1

12.4451.0.24



Check the registered assembly version in the ASPX page and web.config file and they should match the referred assembly version. The project file should also be referred to the corresponding assembly version in the project.

You can refer to the following code example.

ASPX

<%@ Register Assembly="Syncfusion.Tools.Web, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.Web.UI.WebControls.Tools" TagPrefix="syncfusion" %>

 

WEBCONFIG

<system.web>
    <compilation debug="true" targetFramework="4.5.1">
      <assemblies>
        <add assembly="Syncfusion.Tools.Web, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89"/>
        <add assembly="Syncfusion.Shared.Web, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89"/>
        <add assembly="Syncfusion.Core, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=632609B4D040F6B4"/>
        <add assembly="Syncfusion.Shared.Base, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89"/>
        <add assembly="Syncfusion.Tools.Base, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89"/>
      </assemblies>
    </compilation>
</system.web>

 CSPROJ

    <Reference Include="Syncfusion.Core, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL"/>
    <Reference Include="Syncfusion.Shared.Base, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL"/>
    <Reference Include="Syncfusion.Shared.Web, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL"/>
    <Reference Include="Syncfusion.Tools.Base, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL"/>
    <Reference Include="Syncfusion.Tools.Web, Version=12.4451.0.24, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL"/>

Note: The assembly version referred should match with the specified version in ASPX page, webconfig and in project file.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied