database file worked well with the Login Controls when working on my localhost

Discussion in 'Databases' started by anedivine, Dec 19, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I need help please!!!
    I trying to develope login pages for my web site using ASP.NET 2.0 and Visual Studio 2005. The default
    ASPNETDB.MDF database file used for storing the security data for users was created automatically This database file worked well with the Login Controls when working on my localhost. I then copied the application to my websitehttp://cameroonoboso.com/LoginTest/SignUP.aspx, attached the database file to my remote sql server and then modified and then copied the Web.config file to the remote site. The connection strings was modified in the web.config as follows

    <connectionStrings>

    - <!-- <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\FinalDbase.mdf;Integrated Security=True;User Instance=True"
    providerName="System.Data.SqlClient" /> --> <script>f(clean);</script>

    <add name="ConnectionString" connectionString="Data Source=MyDataSource;Initial Catalog=MyCatalog;User ID=MyUserID;Password=MyPassWord;" providerName="System.Data.SqlClient" />
    </connectionStrings>

    I got the following message when I tried to test the application



    Server Error in '/LoginTest' Application.


    Post Edited By Moderator (mjp [DASP]) : 12/19/2007 11:10:50 PM GMT
     
  2. Joseph Jun

    Joseph Jun DiscountASP.NET Staff

    Are you using the actual values for the following or is this just literally, placeholder text:

    Data Source=MyDataSource
    Initial Catalog=MyCatalog
    User ID=MyUserID
    Password=MyPassWord

    Winston

    DiscountASP.NET
     
  3. Thanks for the prompt intervention to help me tackle these problems.

    In fact the values are just place holder texts, because I can not indicate the values of my connection string to a public forum.
    ADJ
     
  4. Can you post more details about the error message? What you posted is not sufficient.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Whenyouopen this link: http://cameroonoboso.com/LoginTest/SignUP.aspxyou will be taken to the Sign up page where you can sign up for a new account, but when you submit the sign up information, you will get the error message.

    Regards
    ADJ
     
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