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.0HELP-HELP Module Upgrade WizardHELP-HELP Module Upgrade Wizard
Previous
 
Next
New Post
12/11/2006 4:16 PM
 

The module upgrade wizard does not successfully update my modules. It does not allow the DataProvider to be created. On some modules I can remove the third parameter but others no  matter how I alter the DataProvider instance it will not load properly.

Has anyone else had these problems if so how do I fix this. Besides having to recreate the module.

 

 

 
New Post
12/12/2006 8:58 AM
 

Replace your static methods in DataProvider.vb with this:

' singleton reference to the instantiated object
Private Shared objProvider As DataProvider = Nothing

' constructor
Shared Sub New()
CreateProvider()
End Sub

' dynamically create provider
Private Shared Sub CreateProvider()
objProvider = CType(Framework.Reflection.CreateObject("data", "Assembly.Name", ""), DataProvider)
End Sub

' return the provider
Public Shared Shadows Function Instance() As DataProvider
Return objProvider
End Function


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
12/13/2006 12:25 PM
 

So the only thing that changes is the :

' dynamically create provider
Private Shared Sub CreateProvider()
objProvider = CType(Framework.Reflection.CreateObject("data", "Assembly.Name", ""), DataProvider)
End Sub

From:
Private Shared Sub CreateProvider()
objProvider = CType(Framework.Reflection.CreateObject("data", "LOC.DNN.Modules.Events.Data", LOC.DNN.Modules.Events"), DataProvider)
End Sub

In this case what would my Assembly.Name be?

I still get the same error.
LOC.DNN.Modules.Events or LOC.DNN.Modules.Events.Data

 
New Post
12/13/2006 1:17 PM
 

Doing as indicated above still didn't work I get:

  DataProvider 'DataProvider' is ambiguous, imported from the namespaces or types 'LOC.Modules.Events, DotNetNuke.Data'. 

I have even tried to completely redo the module but just insert my ascx files. I used the data provider without altering anything but the public methods. I used the new namespace LOC.Modules.Events instead of LOC.DNN.Modules.Events.Data and it still won't work.

I don't understand this issue. I have even tried designating the appropriate DataProvider as follows: LOC.Modules.Events.DataProvider....

 

 
New Post
12/13/2006 1:36 PM
 
The assembly name is set in Visual Studio, in the properties for the module project.

Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0HELP-HELP Module Upgrade WizardHELP-HELP Module Upgrade Wizard


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