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.0Writing a custom membership providerWriting a custom membership provider
Previous
 
Next
New Post
2/23/2006 4:27 PM
 
I do, and I put it in the Website/bin directory, where all the other .dll files were.

However I had to copy it there manually.  Went I rebuilt the DotNetNuke solution, it put the dll and "pdb" file in Library\Providers\MembershipProviders\AbstractXMLMembershipProvider\AbstractXMLMemberProvider\bin\Debug


With all the other projects that built .dll files, they appeared to automatically get copied from their respective output directories to Website/bin
 
New Post
2/23/2006 4:34 PM
 
Crispy wrote

This process is not impossible now but if you have intentions of attempting to do this and it can hold off I would wait for another core release first.

It meets MS's definitions but the problem is there are some things we had to do to make MS's defintion meet DNN's already existing system.  This is part of the reason for changes it is also part of hte difficulty writing one currently.
 



Well, I see what you're saying, but my question would be: is it going to do me any harm to try and learn how the whole process works?  I mean, as you can see by my difficulties, I don't really even know how I'm supposed to be setting up the project, where the DLLs go, and so forth.  If I could get all that straightened out, then I could tangle with how to actually implement the provider.  If that changes, that's ok.  It's all a learning process for me at this point.  Just learning how all the projects work
 
New Post
2/24/2006 8:44 AM
 
So, I'm wondering if someone has some resources on developing providers for DNN...?  In particular, how I'm supposed to setup the projects in VS, and how to setup the web.config to use the new provider.  What I've tried is:

1) Opened DotNetNuke.sln
2) Added new project to solution (added the references I needed, wrote up skeleton provider class, etc.)
3) Rebuilt entire solution
4) Copied resulting dll for the project I added to Website/bin
5) Modified web.config to <add name="AbstractXMLMembershipProvider" type="DotNetNuke.Provider.AbstractXMLMembershipProvider"/>

And I got the error I posted above.

What am I doing wrong?

In case it is helpful, here is the source to my AbstractXMLMembershipProvider
 
New Post
2/24/2006 9:30 AM
 
Ok, I made some changes.  I was looking at the existing membership provider and how it is added, and have concluded that:

1) In web.config, the <add/> tag's "type" attribute takes a comma separate value, in which:
  a)The first value is the fully-qualified name of the class
  b)The second value is the name of the dll to load, without ".dll"

Is this right?

Accordingly, I have updated my web,config file:

<add name="AbstractXMLMembershipProvider" type="DotNetNuke.Security.Membership.AbstractXMLMemberProvider, DotNetNuke.Provider.AbstractXMLMemberProvider"/>

And now the error I get is:

Server Error in '/DotNetNuke_2' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type 'DotNetNuke.Security.Membership.AbstractXMLMemberProvider' from assembly 'DotNetNuke.Provider.AbstractXMLMemberProvider'.

Source Error:

Line 164:        -->
Line 165:
Line 166: <add name="AbstractXMLMembershipProvider"
type="DotNetNuke.Security.Membership.AbstractXmlMemberProvider,
DotNetNuke.Provider.AbstractXmlMembershipProvider"/>
Line 167: </providers>
Line 168: </membership>

Source File: D:\dev\DNN4\Website\web.config    Line: 166


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 
New Post
2/24/2006 9:33 AM
 
If anyone is curious they can download the dll I am trying to use and use reflection to take a look at it.  If there are compile time options I am doing wrong, then perhaps this would be the best way to figure it out.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Writing a custom membership providerWriting a custom membership provider


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