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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0VB to C# module conversionVB to C# module conversion
Previous
 
Next
New Post
10/17/2007 9:15 AM
 

Hello!

I'm converting module from VB code to C#. First of all I installed module in source code(VB) and it works fine. Then I had converted its source from VB to C# (using conversion tool). After this I had installed this module in source code (C#) to new installation of DNN, fixed all errors that appear when building web site. And now I encountered such error (sorry for my translation of error, I receive it in russian) "Make sure that class defined in this code matches the "inherits" attribute and implemets proper base class(e.g. Control or Page)"

Class matches attribute and implemets proper base class, its fo sure... I dont know where problem is.. Help me please...

P.S. Really sorry for my english.

 
New Post
10/17/2007 9:51 AM
 

Could you please post some your code here? May be I can help you.


Professional DNN Extensions, custom solutions since 2004
 
New Post
10/17/2007 11:39 PM
 

 I think that posting all codes is not really good idea =), so I will post class definition and control directive:

 

ArticleDetails.ascx

 

 

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="~/DesktopModules/KBSArticle/ArticleDetails.ascx.cs" Inherits="EfficionConsulting.Articles.ArticleDetails" %>   

ArticleDetails.ascx.cs

using ...

namespace EfficionConsulting

{

namespace Articles

{

public abstract partial class ArticleDetails : DotNetNuke.Entities.Modules.PortalModuleBase

{...}

Class PortalModuleBase implements UserControlBase ----> UserControl...

So i really dont know where problem is...=(

 
New Post
10/18/2007 8:44 AM
 

Please try the code in ascx below:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ArticleDetails.ascx.cs" Inherits="EfficionConsulting.Articles.ArticleDetails" %>   

If you user WAP, please change CodeFile to CodeBehide.


Professional DNN Extensions, custom solutions since 2004
 
New Post
10/21/2007 11:34 PM
 

Thanks for help ! But it seems that I've found were trouble was... Module(Efficion's Articles) is DNN3 module (thanks to leupold) and is written for VS2003 and ASP.Net 1.1. But I use VS2005 and ASP.Net 2.0... Maybe someone can help me, I want to know is it possible to change module's source to successfully compile it in VS2005? Or maybe there is a similar to Efficion's Articles module , but for VS2005 and ASP.Net 2.0 ?

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0VB to C# module conversionVB to C# module conversion


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