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 3:37 PM
 

Hunch, can you check your references? If it works in another project and not in this one, something must be different.


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/26/2007 8:40 AM
 

hooligannes 2.0 wrote

Hunch, can you check your references? If it works in another project and not in this one, something must be different.

Thanks... You were right about one thing...  There was indeed an extra reference that would have ended up being recursive once the assembly was compiled into the web site.  For some reason I had apparently added a reference to the Membership provider.  I don't know why I would have done that since that provider relies on this one - but it is fixed at any rate.

However, even though the recursive reference has been removed, the problem still exists at the same line for the same provider.  Argh!  I am pulling my hair out over here...  :(

I also went through both project files side by side to ensure they were as identical as possible.  Now, the only differences are the Assembly Name and version number.  (I had also found a extra imported namespace "System.Collections.Generic" that has been removed.)

Does anyone have any more ideas?


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/26/2007 10:16 AM
 

One thought, can you make sure that you don't have any other .dlls in the /bin with the same class that it could be getting confused on?

Secondly, if you debug into the call to CreateType, can you look at the type that is returned (from the cache?) and see what type it is and which assembly it is from, see if anything looks fishy there?


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

dukesb11 wrote

One thought, can you make sure that you don't have any other .dlls in the /bin with the same class that it could be getting confused on?

Secondly, if you debug into the call to CreateType, can you look at the type that is returned (from the cache?) and see what type it is and which assembly it is from, see if anything looks fishy there?

Okay folks... Are you ready for a new symptom that I overlooked?  When I originally created this class, I named it "MyCompany.Providers.MyCompanySqlDataProvider" (substituting MyCompany of course).  However, I soon realized that my namespace was already "MyCompany.Provider" (not plural).  So, I changed it for the obvious reasons. 

(I stated the previous to say this...)

I was reminded of the old namespace when I double-checked the bin for any extra builds that shouldn't be there.  I didn't find a previous or conflicting build, but I did find the XML comment file in there with the OLD namespace.  So, I deleted it.  When I rebuilt the DLL, the XML file was recreated with the WRONG namespace.  What would cause that? 

The XML comment file does NOT match the namespace in the class file, so the compiler is doing something weird...

I also just checked the DLL in Reflector and the correct namespace is indeed generated for the DLL.  Has anyone heard of such a thing???


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
6/26/2007 12:30 PM
 

Are you saying that initially you had:

Namespace MyCompany.Provider
Class MyCompany.Providers.MyCompanySqlDataProvider

and that now you have:

Namespace MyCompany.Provider
Class MyCompanySqlDataProvider

?

In Reflector, when you click on MyCompanySqlDataProvider, does it show the name as MyCompany.Provider.MyCompanySqlDataProvider?  I'm sorry if it seems like I keep asking the same questions.  In my experience, whenever you think that the compiler is doing something crazy, it means that you've overlooked something on your side.  It's almost never a problem with the compiler.  I'm just trying to keep asking and see what might have been overlooked.

Hope it helps,


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