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 ForumsFeedbackFeedbackDuplicating Feedback ModuleDuplicating Feedback Module
Previous
 
Next
New Post
2/25/2007 3:41 PM
 

I’ve created a new module using the DNN Starter Kit version 4.4.1 to duplicate the Feedback module. I followed the steps outlined in the DNN tutorials. I copied and renamed the Stored Procedures in the Feedback module’s original SQL script and then reran the script containing only the renamed Stored Procedures.

As I modify the SqlDataProvider.vb file, I am getting two kinds of errors; a "does not override a function in a base class" error and a "Type FeedbackInfo.FeedbackStatusType’ is not defined" error.

Here is the full method and the error message for each error:

(1) Public Overrides Function Feed1_GetFeedback(ByVal ModuleId As Integer) As IDataReader

Return CType(SqlHelper.ExecuteReader(ConnectionString, GetFullyQualifiedName("Feed1_GetFeedback"), ModuleId), IDataReader)

End Function

Error Message: function ‘Feed1_GetFeedback’ cannot be declared ‘Overrides’ because it does not override a function in a base class.

(2) Public Overrides Sub Feed1_UpdateFeedbackStatus(ByVal ModuleID As Integer, ByVal FeedbackGUID As String, ByVal Status As FeedbackInfo.FeedbackStatusType)

SqlHelper.ExecuteNonQuery(ConnectionString, DatabaseOwner & ObjectQualifier & "Feed1_UpdateFeedbackStatus", ModuleID, FeedbackGUID, Status)

End Sub

Error Message: Type ‘FeedbackInfo.FeedbackStatusType’ is not defined.

Any assistance would be appreciated.

Thanks,

Mark

 
New Post
2/26/2007 9:56 AM
 
For the overrides error message make sure that you have the method declared in both the concrete and abstract data provider classes. 

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/26/2007 4:38 PM
 

Mark - check your project references. In your dataprovider project, you need to include a reference to the feedback module and also DotNetNuke - this ensures that you have the correct abstract classes to override. Also make sure that the base class for the dataprovider is the same as what was in the original version.

Sanjay


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post
2/26/2007 9:33 PM
 
Thanks Mitchel and Sanjay.
 
New Post
3/2/2007 3:33 PM
 

The overrides error was eliminated by declaring the method in the abstract data provider class.

I have not been able to resolve the FeedbackInfo undefined type error. I compared the project references in the Feedback’s DNN 3.x project with those in the DNN 4.4.1 concrete and abstract data provider
classes I’m working with; they are identical.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsFeedbackFeedbackDuplicating Feedback ModuleDuplicating Feedback Module


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