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.0Cannot Create Custom SQLDataProviderCannot Create Custom SQLDataProvider
Previous
 
Next
New Post
6/25/2007 2:38 PM
 

dukesb11 wrote

So, to be clear, you are still receiving this error:

 

whenever you try to load your site?  Can you debug down and tell me the exact line of code that happens on, and if it is getting anything from the cache?

Thanks,

 

Yes, that is indeed the error that I continue to receive.  This happens at Line 227 in Reflection.vb of the DotNetNuke.Library project.  The function getting called has the following arguments:

CreateObject("MyCompany.Provider.PortalSqlDataProvider", "MyCompany.Provider.PortalSqlDataProvider", "True")

As you can see, I have removed the assembly from the type now.  But it happens regardless to if the assembly name is in there or not.

Here is the exception:

MESSAGE:
Value cannot be null. Parameter name: type

SOURCE: mscorlib

STACK TRACE:

at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache)
in C:\Web\v4.05.03_Source\Library\Components\Framework\Reflection.vb:line 227

 

System.ArgumentNullException: Value cannot be null.  Parameter name: type

[EDIT]

I should add the function in the source.  Here is the function getting called in Reflection.vb:

Public Shared Function CreateObject(ByVal TypeName As String, ByVal CacheKey As String, ByVal UseCache As Boolean) As Object
    ' dynamically create the object
    Return Activator.CreateInstance(CreateType(TypeName, CacheKey, UseCache)) 'LINE 227
End Function 

[/EDIT]


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/25/2007 2:43 PM
 

On a separate note, thank you very much for continuing to help me.  Most other people would've given up by now.  I really do appreciate it.  More so for others than myself.  It seems through my searches about this that everyone eventually gets this problem cleared up, but there is not a universal or common answer to this (other than a typo).


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/25/2007 2:57 PM
 

Checkout your DataProvider Class, how are you creating the provider: Like this?

objProvider =

CType(Framework.Reflection.CreateObject("data", "MyCompany.Provider.PortalSqlDataProvider", ""), DataProvider)


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

dup

 


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

hooligannes 2.0 wrote

Checkout your DataProvider Class, how are you creating the provider: Like this?

 

 

CType(Framework.Reflection.CreateObject("data", "MyCompany.Provider.PortalSqlDataProvider", ""), DataProvider)

 

This is the SqlDataProvider for the portal, not a module.  However, during troubleshooting, I have used such code to regenerate the error.  It does indeed return the same error on the same line of code.  The SqlDataProvider for the portal does not use a line to instantiate itself like that.  All of the other providers I have looked at so far do though.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Cannot Create Custom SQLDataProviderCannot Create Custom SQLDataProvider


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