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 8:11 AM
 

dukesb11 wrote

Have you tried removing the assembly name from your type declaration in the web.config?  I get that error when I have the wrong assembly name, but it clears up when I remove the assembly name altogether.

Just to note, I was getting the error that you were talking about,  but I just had to change the project to compile into the Website/bin folder, and make sure that I had the right type/assembly in the web.config, and then it cleared.

Hope it helps,

Thank you for your reply.  I did indeed try removing the assembly name once before and tried again this morning.  I still get the same error.  I then changed the project to build into the website bin folder and get the same error.  (Although I cannot figure out why the build location would make a difference - I thought that it was simply for convenience.)  As a final try, I also moved my project directly into the DNN source solution and rebuilt with no problems.  However, even though I built into the website/bin directory, the error has not changed.

Just so I am clear... The type name is just the namespace plus the class name, right?  This is what I am using now and what has worked in the past.  I have never had this much trouble with another provider.  :(


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 10:30 AM
 

The type is just the namespace plus the class name, that is correct.  It looks like you have it right in your initial post.

1st question, you had mentioned that it was pulling something from the cache, did anything ever come of that?  Is it still doing that?  What error is it throwing after it gets the instance from the cache?

Secondly, you might try putting your new PortalSqlDataProvider.vb file in one of the existing projects, and see if it will see it then (keep the same namespace, just either point to the new assembly or leave off the assembly name).  Then you can get a better grasp as to whether it's a problem with your code or with not being able to find the class' definition.

With the /bin folder, that is the only place that ASP.NET will look for assemblies by default, they have to be in that folder to be found.

Do you have Lutz Roeder's Reflector for .NET?  It's a little program that comes in handy for me a lot.  It will let you look at assemblies to see what is in them, and to search through them.  You might try loading your MyCompany.Provider assembly in there, and just double check the namespace and class name that it being output.  (It's also useful for loading up all of the DNN assemblies and searching through them for specific classes and functionality).

Hope it helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
6/25/2007 11:18 AM
 

dukesb11 wrote

The type is just the namespace plus the class name, that is correct.  It looks like you have it right in your initial post.

1st question, you had mentioned that it was pulling something from the cache, did anything ever come of that?  Is it still doing that?  What error is it throwing after it gets the instance from the cache?

Secondly, you might try putting your new PortalSqlDataProvider.vb file in one of the existing projects, and see if it will see it then (keep the same namespace, just either point to the new assembly or leave off the assembly name).  Then you can get a better grasp as to whether it's a problem with your code or with not being able to find the class' definition.

With the /bin folder, that is the only place that ASP.NET will look for assemblies by default, they have to be in that folder to be found.

Do you have Lutz Roeder's Reflector for .NET?  It's a little program that comes in handy for me a lot.  It will let you look at assemblies to see what is in them, and to search through them.  You might try loading your MyCompany.Provider assembly in there, and just double check the namespace and class name that it being output.  (It's also useful for loading up all of the DNN assemblies and searching through them for specific classes and functionality).

Hope it helps,

Although I haven't revisited the cache issue today, the error when pulled from cache is indeed the one I was reporting before.  I do not know what "cache" it is pulling from though, because the assembly is not in the GAC and it continued to pull from the cache even following a reboot.

I haven't tried putting my vb file into another one of my projects yet, but my completely updated one worked fine when it replaced the DNN core one. 

I understand the need for the assemblies to be in the bin folder.  I am manually copying them since my provider projects/solution is not loaded within the DNN source build.  That is what I say it is mainly a convenience factor.  I don't normally develop any class libraries within the DNN source.


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 11:25 AM
 

dukesb11 wrote

Secondly, you might try putting your new PortalSqlDataProvider.vb file in one of the existing projects, and see if it will see it then (keep the same namespace, just either point to the new assembly or leave off the assembly name).  Then you can get a better grasp as to whether it's a problem with your code or with not being able to find the class' definition.

Well, I put the vb file for the data provider into another project and it worked.  The DNN instance saw it and used it.  :(

Also, I forgot to mention that I did indeed use the .Net Reflector and the class is built with the correct class name with the correct namespace.  :(

Argh!


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 1:07 PM
 

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

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

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,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
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