Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesPlease specify the assembly explicitly in the type namePlease specify the assembly explicitly in the type name
Previous
 
Next
New Post
7/3/2014 4:33 PM
 

Hi,

i have a usercontrol A and want to use usercontrol A in Usercontrol B.

In usercontrol B i have:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="View.ascx.cs" Inherits="Inagro.Leden.DNN.Modules.MatrixDetail.View" %>
<%@ Register src="Events\View.ascx"  tagprefix="ucEvent"  TagName="event"  %> 
<div ID="DetailTitle" runat="server" class="title5"></div>
<div ID="DetailContent" runat="server"></div>
<ucEvent:event ID="MyEvent" runat="server"></ucEvent:event>

 

and in the web.config:<controls>
        <add tagPrefix="ucEvent"  namespace="Inagro.Leden.DNN.Modules.Events" assembly="Inagro.Leden.DNN.Modules.Events"/>     
      </controls>

 

I was thinking that adding it into my web.config the error should go away.

Adding the namespace to the <%@ register is no option because he starts complaining about tagname and if i delete the tagname het complains because its missing.

Anybody some ideas. I can't get it to work.

Very frustrating.

Thanks for helping.

 
New Post
7/3/2014 4:35 PM
 

The full error:

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: The type 'Inagro.Leden.DNN.Modules.Events.View' is ambiguous: it could come from assembly 'xxx\Inagro.Leden.DNN.Modules.MatrixDetail.DLL' or from assembly 'xxx\Inagro.Leden.DNN.Modules.Events.DLL'. Please specify the assembly explicitly in the type name.

 
New Post
7/3/2014 4:46 PM
 
Is it telling you that you have the same type defined in two different assemblies?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
7/4/2014 2:23 AM
 
I know Richard, but how can i solve this?
 
New Post
7/4/2014 2:31 AM
 
Well it seems simple to me...

1) Organize your code so that it is in only one library

2) Delete all the others

What am I missing?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesPlease specify the assembly explicitly in the type namePlease specify the assembly explicitly in the type name


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out