We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Attaching aspnetdb.mdf to SQL express

Last post 03-24-2008 6:33 PM by giox. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-24-2008 6:33 PM

    • giox
    • Not Ranked
    • Joined on 03-24-2008
    • Malaysia
    • New Member
    • Points 5

    Attaching aspnetdb.mdf to SQL express

    my problem :

    I'm using the membership class and those authentication class in asp.net 2.0 and so it automatically created the aspnetdb.mdf in my app_data.

    But when i host my website in IIS and try login, it showed this error message : An attempt to attach an auto-named database for file C:\Documents and Settings\giomanach\Desktop\prototype\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

    My above has solved by attaching the aspnetdb.mdf to sqlserver express and change the "LocalSqlServer" connectionstring's parameter to : data source=.\SQLExpress;initial catalog=CUMS;integrated security=SSPI;persist security info=False in the asp.net configuration of my website in IIS.

    But another problem occured when i login to my page,i was rejected as if my password or username were wrong. May i know what is wrong here ? Urgently looking for help please. Thanx a lot ..

    • Post Points: 5
Page 1 of 1 (1 items)