Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

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"/>
Avatar of Craig Wardman
Craig WardmanFlag of United Kingdom of Great Britain and Northern Ireland imageSoftware Developer & Solution Architect

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

This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answers