Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Login Inheritance ProblemLogin Inheritance Problem
Previous
 
Next
New Post
11/28/2007 7:27 PM
 

Dear sirs:

I am in the process of upgrading DotNetNuke v4.7 from VB.NET to C#.

All is going well, except for one small fly in the ointment. Please allow me to explain. There are two Login user controls. One is located in ~/Admin/Authentication folder and has this namespace: 

DotNetNuke.Modules.Admin.Authentication;

 

The other one is located in ~/DesktopModules/AuthenticationServices folder and has the very same namespace.

However, the first one inherits from UserModuleBase and the latter, from AuthenticationLoginBase.

In any case, the VB.NET compiler doesn't bark about it, but the C# compiler does:

Error 1 Partial declarations of 'DotNetNuke.Modules.Admin.Authentication.Login' must not specify different base classes C:\Users\Rob Hyland\Documents\Visual Studio 2005\Projects\DnnWap\DnnWap\CS\DesktopModules\AuthenticationServices\DNN\Login.ascx.cs 61 24 DnnWap

It also has the side-effects of producing these two errors:

Error 2 The type 'DotNetNuke.Modules.Admin.Authentication.Login' already contains a definition for 'UseCaptcha' ...

Error 3 Type 'DotNetNuke.Modules.Admin.Authentication.Login' already defines a member called 'Page_Load' with the same parameter types ...

What should I do to resolve this "Multiple Inheritance" issue? Why doesn't VB care about that?

Your prompt consideration is greatly appreciated.

 




 

 

namespace

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Login Inheritance ProblemLogin Inheritance Problem


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out