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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogNON-RANT but confused about dataproviderNON-RANT but confused about dataprovider
Previous
 
Next
New Post
7/27/2007 8:57 PM
 

PROBLEM: I add the abstract function in the Blog dataprovider.vb, then add the concrete function in the Blog sqldataprovider.vb.  However, I get this error message in the Intellisense & when I compile:

Error    3    function 'GetBlogCategories' cannot be declared 'Overrides' because it does not override a function in a base class.    c:\inetpub\wwwroot\dotnetnuke\DesktopModules\Blog\Providers\DataProviders\SqlDataProvider\SqlDataProvider.vb    204    35    http://localhost/dotnetnuke/
When I modify other dataproviders (for example, the HTML dataproviders) this works exactly as expected.  It appears that the code is not compiling and that the sqldataprovider is referring to the original DLL.  If so, why?

Here's the code I added to the dataprovider.vb:

Public MustOverride Function GetBlogCategories(ByVal PortalID As Integer) As IDataReader

... and the code in the sqldataprovider.vb:

Public Overrides Function GetBlogCategories(ByVal PortalID As Integer) As System.Data.IDataReader
     Return CType(SqlHelper.ExecuteReader(ConnectionString, DatabaseOwner & ObjectQualifier & "Blog_GetCategories", PortalID), IDataReader)
End Function

Why won't the code compile - why does this change work in the HTML dataproviders but not the Blog dataprovider?


 
New Post
7/27/2007 9:03 PM
 

AFAIR the blog module is an asp.net 1.1 module so must be compiled as a class library and deployed to the bin folder, whereas the html module is an asp.net 2.0 module so will automatically compile via the background compiler - i suspect this is your issue. To recompile the blog module you'll have to load it's vbproj into visual studio.net.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/27/2007 9:15 PM
 

Thanks for the quick reply.  Can you help with another question?

I've installed the Blog Source in a fresh DNN 4.5.5 install.

If I open the dotnetnuke.blog solution and try to build, it throws 172 errors (!!).

Can you provide some kind of recipe for setting up a dev environment for this module?  It's extraordinarily confusing.

Thanks


 
New Post
7/27/2007 9:37 PM
 

I haven't worked directly with the blog module project in a long time, the last time i did i used the dnn 3.x codebase so i could compile everything under asp.net 1.1 in vs.net 2003. If you're using vs.net 2005 you'll probably have to upgrade the project, or else use the module upgrade wizard http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/448/Default.aspx to convert it to a WAP module for use in vs.net 2005 sp1. The normal vs.net 2005 upgrade for class libraries will probably work ok, i'm guessing youre issues are ones of missed references, so check the references node and correct any broken ones.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/27/2007 10:51 PM
 

Yeah, I already tried using the upgrade wizard - no help.  The sheer number of errors is overwhelming.

Is there a plan to upgrade this code to the 4.x codebase?  It seems far easier to work with.  I am tempted to write my own module; however, so much of the functionality I need is already nicely built into this blog module I hate to start from scratch.


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogNON-RANT but confused about dataproviderNON-RANT but confused about dataprovider


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