Articles in this section
Category / Section

Error: The type 'Syncfusion.Web.UI.WebControls.Tools.TabStripItem' exists in Syncfusion.Tools.Web assembly in multiple location

1 min 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.

Note:

A new version of Essential Studio for ASP.NET is available. Versions prior to the release of Essential Studio 2014, Volume 2 will now be referred to as a classic versions.The new ASP.NET suite is powered by Essential Studio for JavaScript providing client-side rendering of HTML 5-JavaScript controls, offering better performance, and better support for touch interactivity. The new version includes all the features of the old version, so migration is easy.

The Classic controls can be used in existing projects; however, if you are starting a new project, we recommend using the latest version of Essential Studio for ASP.NET. Although Syncfusion will continue to support all Classic Versions, we are happy to assist you in migrating to the newest edition.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below.

You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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