ASPNET Authentication only works partially

Discussion in 'ASP.NET / ASP.NET Core' started by wmgraham, Jul 30, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am developing an ASP 3.5 application to be hosted at DASP.

    I have a SQL Svr 2005 DB at DASP that was set up for another application.

    I want to share the user authentication on that DB with my new application.

    The new application uses ASPNET Security. I Have a page with a Login Control, one with a Registration control and one with a Login Status and a LoginView Control.

    I have changed my web.config to include the following:

    <remove name="LocalSqlServer" /><add name="LocalSqlServer" connectionString="Data Source=sql2k999.discountasp.net;Integrated Security=false;Initial Catalog=SQL2005_999999_bg05a;User ID=SQL2005_99999_xxxx_user;Password=xxxx" providerName="System.Data.SqlClient" />

    and

    <authentication mode="Forms" />

    and

    <machineKey validationKey="xxx" decryptionKey="xxxx" decryption="3DES" validation="SHA1" />

    The machinekey has the same values as in the web.config file for the earlier app.

    I uploaded via FTP the application to DASP and then downloaded from DASP to a different computer at another location.

    The login and registration controls work regardless of whether I am running local host at my location or running over the web at the DASP Server. I have checked the database and I can see that new users are added and that the last activity date changes every time I log in.

    The LoginStatus and LoginView Controls, however, work only from the computer at my location. They change to Logout and welcome xxx respectively.

    When I try logging in on the application on the DASP server, however, nothing happens - neither the LoginStatus nor the LoginView changes (but the database is updated). I suspect that there is something that directs those controls differently in the DASP environment than in my local environment, (although since they both go to the same database I don't know what).

    Thanks in advance for your assistance.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page