troubleshooting Question

custom membership provider

Avatar of flukester
flukester asked on
10 Comments1 Solution745 ViewsLast Modified:
I am trying to mock up a custom membership provider to our in house database. I've created the class, login page, etc... I am getting the following error: Could not load type 'iPMNMembershipProvider'.

It might be something to do with my folder structure, but I've been moving things around and can't figure it out.

So as a root level folder I have CustomMembershipProviderTest. In that folder I have an App_Code folder that contains my class iPMNMembershipProvider.vb.

At the root level of the site (same level as CustomMembershipProvider, not within that folder) I have a web.config file that contains the following:

Edit: Forgot to add the code from the beginning of my class file:
Public Class iPMNMembershipProvider
    Inherits MembershipProvider
    Private conn As String
    Public Overrides Sub Initialize(ByVal name As String, ByVal config As System.Collections.Specialized.NameValueCollection)

        conn = ConfigurationManager.ConnectionStrings("web_ipmnConnectionString").ConnectionString
        MyBase.Initialize(conn, config)

    End Sub

<membership defaultProvider="iPMNMembershipProvider">
				<add name="iPMNMembershipProvider" 
<add name="web_ipmnConnectionString" connectionString="Data Source=SQLSERVER; Initial Catalog=ipmn; User ID=xxx;pwd=xxxxxv; Integrated Security=True" providerName="System.Data.SqlClient"/>
Craig Wardman
Software Developer & Solution Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros