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.0DataProvider is ambiguous in namespaceDataProvider is ambiguous in namespace
Previous
 
Next
New Post
5/14/2007 7:40 PM
 

Ok, I am an experienced C# developer and I am learning DNN and VB.Net as I build my first custom modules. I built my first custom module and with a few learning experiences, everything works ok. But now I am adding  a second custom module to my development environment and as you folks all know all modules have a DataProvider.vb class. Now both of my custom modules seem to be having problems with it's DataProvider class. They are both in their own unique namespaces, but they both now have the blue squiggly lines under their name in their respective classes and both are stating that "DataProvider is ambiguous in the namespace 'The.Respective.Class.Namespace'". So how do you fix this in VB.net? What am I doing wrong? I thought each compiled module project had to have a DataProvider class that was inherited from the DNN DataProvider. Can someone please help with how to fix this problem.

Steve Graddy

 
New Post
5/14/2007 9:44 PM
 

Well for what it is worth, the solution to my problem was. I went to the SqlDataProvider class in each module and made sure that the Inherits class used a fully qualified name for the DataProvider class of the same namespace. As below...

Namespace

Orgbrat.Modules.MyModule

 

Public Class SqlDataProvider
     Inherits Orgbrat.Modules.MyModule.DataProvider

End Class

Steve

 
New Post
5/14/2007 9:53 PM
 

I've found using the dynamic compilation model of ASP.Net 2.0 and DNN 4.x, that is almost a necessity to use fully qualified names for nearly all references. This has been especially true with respect to some of my own base and helper classes with namespace of WESNet.DNN causing ambiguous references with particular module classes having a namespace of WESNet.DNN.Modules.ModuleName.  Unfortunately, the conflicts do not always show themselves during development, but wait until the module is packaged and installed on a test site to first cause problems.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DataProvider is ambiguous in namespaceDataProvider is ambiguous in namespace


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