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.0Problem with Reflection - Could Not Create Abstract ClassProblem with Reflection - Could Not Create Abstract Class
Previous
 
Next
New Post
2/28/2006 12:02 PM
 

I have been customizing my DotNetNuke source code for my company and keep getting stuck at the same problem. When Reflection tries to create my SqlDataProvider class, I get Cannot Create an Abstract Class when I'm debugging. I haven't been able to get SqlDataProvider working with any of my modules. Right now I'm debugging a third-party module and I can clearly see reflection is calling CreateObject(CTV.CRM.SqlDataProvider, CTV.CRM.SqlDataProvider). This is the exact namespace & assembly name of what needs to be created. After Reflection calls CreateObject I get "MissingMethodException was unhandled by user code." I can't tell if that means the SqlDataProvider library was not found, or if there is a problem with a class in the provider. I've recompiled everything without errors and all my dlls are in the website\bin folder. Does anyone know what I could be doing wrong? 

 
New Post
3/1/2006 1:15 AM
 
I use the approach similar to the one in the starter kit:
DataProvider instance = (DataProvider)DotNetNuke.Framework.Reflection.CreateObject("data", typeof(DataProvider).Namespace, "");

The DataProvider and SqlDataProvider both located in the same namespace.

  Best Regads

Best regards, Evgeny
 
New Post
3/13/2006 2:18 PM
 

Hi,

If I use the module template provided by the DotNetNuke team:

  • controller, dataprovider, and info objects (<file>.vb) should be placed in the webdsite\App_code folder
  • other files should be placed in the website\DesktopModules\<modulename>.
  • No project are required
  • The reflection is done as you mentionned (without the assembly name parameter)

And all things should be ok

chrisptree


Christian Poirier Computer Analyst TELUQ - Quebec
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem with Reflection - Could Not Create Abstract ClassProblem with Reflection - Could Not Create Abstract Class


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