Developer forum

Forum » Development » Two Custom Modules / Parser error - 'CustomModules.Default' is ambiguous

Two Custom Modules / Parser error - 'CustomModules.Default' is ambiguous

Sonni Tost
Reply
Hi there,

I have made to custom modules on one solution. Everything works ok in the backend - but when I try to use them on the front-end I get an error:


"Parser Error Message: The type 'CustomModules.Default' is ambiguous: it could come from assembly 'C:\@dynamicweb\app.dynamicweb.dk\www.refa.dk\application\bin\refaGarbageSorting.DLL' or from assembly 'C:\@dynamicweb\app.dynamicweb.dk\www.refa.dk\application\bin\refaRenomaticMobile.DLL'. Please specify the assembly explicitly in the type name.

Line 1:  <%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Default.aspx.cs" Inherits="CustomModules.Default" %>
Line 2:  <asp:placeholder id="Output" runat="server"></asp:placeholder>
Line 3:  <asp:literal id="Status" runat="server"></asp:literal>

Source File: /default.aspx    Line: 1 "

I have made the modules in separate namespaces (CustomRefaSort and CustomRefaReno) but I still get the ambiguous-error.

I am testing the modules locally on DW 19.2.3.2. CustomRefaSort functions perfectly on both front- and backend when it is the only one installed - I have not tried to run refaRenomaticMobile separately.

Any idea of what I am doing wrong?
 

Kind regards,


Sonni T.

Replies

 
Kenneth Radoor
Reply
This post has been marked as an answer
 Hi Sonni

If you dont have any custom code in the Default.aspx, then try and use the Default.aspx from a standard installation.
Exclude the default.aspx in all the the projects, so they will not be in build.

Finally make sure you dont have the CustomModule.dll in the bin folder.

The same goes for the Global.asax.

I have found, building Custom modules, i very rarely needs access to the 2 files. Most can be done using some kind of Notification.

Hope this helps.

/Kenneth
Votes for this answer: 0
 
Sonni Tost
Reply
Hi Kenneth,

I have replaced the default.aspx and global.asax with standard ones, excluded them from the project - and now it works!

Thanks a million!

Sonni T.

 

You must be logged in to post in the forum