Solved Web.config

Posted on 2009-02-16
Last Modified: 2012-05-06
in my application i m using aspnet_users table for login in to my application.but i m getting one issue it.i have created 10 users on my localmachine and it was working fine on localmachine after than i had moved my localmachine database to my webserver on webserver those 10 users are displaying in database table aspnet_user  but when i m trying to login with those user its not loggedin its give error that username and password are not valid.

so is there any web.config setting for solve this problem

i m litlebit confuse in machinekey and application name please provide me some solution for this issue
Question by:jbajaj
    LVL 14

    Assisted Solution

    by:Dustin Hopkins
    Probably when you changed webservers, the applicationID changed. When authenticates a user, it confirms appid, username, and pass. Thats why you aren't authenticating.
    So you need to recreate the accounts on the new server. Atleast thats the easiest way.
    LVL 14

    Assisted Solution

    by:Dustin Hopkins
    or you could create one new account, then check the aspnet_user table for the new appID then change the appID associated with the old accounts to match.
    LVL 41

    Accepted Solution

    There could be several reasons...
    1: applicationName attribute not set in web.config
    2: ConnectionString not pointing to the correct database

    Now first make sure your membership provider is pointing to the correct Database.

    Now with applicationName part first check this:

    If you can afford to re-create the users ...then first set the applicationName attribute to something of your choice in your web.config. Save the web.config. Re-Create the users. Then it should work if applicationName was the cause.

    If you cannot afford to re-create the users .... then in your your aspnet_users table ... you will see applicationID column. Note this applicationID for your users.
    Now in aspnet_Application Table ..look for the applicationName for that corresponding applicationID. Note this applicationName.

    Now in your web.config for your membership provider ... set applicationName attribute to the name that you found in your aspnet_Application table.

    IF you are not clear ... share your web.config here.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now