Try our conversational search powered by Generative AI!

he type 'EPiServer.Templates.Demo.Units.Static.Header' is ambiguous

Vote:
 

After successfully intalled the demoTemplate.  Complied, but got error as following:

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The type 'EPiServer.Templates.Demo.Units.Static.Header' is ambiguous: it could come from assembly 'C:\Projects\Citizens Advice Bureau\CitizensAdvice\bin\EPiServer.Templates.Public.DLL' or from assembly 'C:\Projects\Citizens Advice Bureau\CitizensAdvice\bin\EPiServer.Templates.Demo.DLL'. Please specify the assembly explicitly in the type name.

Source Error:

Line 1:  <%@ Control Language="C#" EnableViewState="false" AutoEventWireup="False" CodeBehind="Header.ascx.cs" Inherits="EPiServer.Templates.Demo.Units.Static.Header" %>
 

#23549
Sep 09, 2008 12:40
Vote:
 

Hi Hua,

You could try changing:

Inherits="Your.Namespace.Here.TypeName" to:

Inherits="Your.Namespace.Here.TypeName, AssemblyNameHere"

Right now you're referring to a type which exists in two different assemblies.

#23566
Sep 09, 2008 22:45
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.