Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7021487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:27:24+00:00 2026-05-27T23:27:24+00:00

I have a website with login and register forms using custom HDI Membership provider

  • 0

I have a website with login and register forms using custom HDI Membership provider where Users can login or register new account.

Now I have a desktop software and trying to have two forms for login and register where my users can able to login or register for user convenience and not by going to the website and make them register online.

So, I have these to know in order to go further.

1) Can I use HDI membership provider as I have used it in my web application?
If so how can I do that?

As previously I have done and I faced many problems and still didn’t get clarified here

2) If No, how do I make use in order to make use the same HDI Membership.

Finally I need to use the same database for my desktop software as well as my web application with all the possibilities (i.e. I need to validate each parameter of my membership class).

I am able to register the user but it is not using the Membership and I’m unable to know why it is not picking up the membership provider from the app.config file.

Once again I am providing my Users database Structure:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:27:25+00:00Added an answer on May 27, 2026 at 11:27 pm

    You can use the standard membership provider in a Windows Forms application fairly easily.

    However, without more details on the source of the HDI Membership provider, it will be difficult to provide exact instructions.

    You can try the following instructions to see if they will work for you:

    1) Add a reference to System.Web to your windows forms application.

    2) Add an Imports System.Web.Security to the code file(s) where you want to use the provider.

    3) Call the Membership methods as you do in the web, i.e. Memebership.ValidateUser(user, password).

    4) Add a system.web block to your Windows Forms app.config file (within the configuration section) and then copy the membership block from your web.config file to this block. For example:

    <configuration>
      <system.web>
        <membership defaultProvider="HDIMembershipProvider">
          <providers>
            <clear/>
            <add name="HDIMembershipProvider" type="frmStartup.HDIMembershipProvider, frmStartup"/>
          </providers>
        </membership>
      </system.web>
    </configuration>
    

    5) You will probably need to add a reference to the assembly, project, or code that contains the HDI Membership Provider.

    Update

    Your app.config has two problems:

    1) The appSettings section must be exactly as follows (your current appSettings has “Application Name” as the key while your code uses “ApplicationName”):

    <appSettings>
      <add key="ApplicationName" value="/gAnnotation" />
    </appSettings>
    

    2) The membership section must be exactly as follows (the type must specify the fully qualified type name followed by the name of the assembly the type lives in and the defaultProvider must match the name in the added provider):

    <membership defaultProvider="HDIMembershipProvider">
      <providers>
        <clear/>
        <add name="HDIMembershipProvider" type="frmStartup.HDIMembershipProvider, frmStartup"/>
      </providers>
    </membership>
    

    If you modify your app.config exactly as shown above, your application will work (I have tested it and verified that creating a user and logging in works).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Users have been able to log into my website using their Facebook account, but
On a website I have implemented the login using OpenID (based on StackOverflow). But
So, I have two types of users who may login or register: merchants or
I have just finished putting a login and register bit on my website and
I need the users to register to my website with login and password. basically
Okay, I got a website where you can register yourself and login. You can
I want to let users login to my website using their Facebook, or Twitter
I've created a website using ASP.net and C#. It's basically where students can login
I already have an advanced user login/register system on my website ( colemansystems.psm2.co.uk ).
I have a website that requires users to register to post content to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.