Hi,
I pretty new to all of this. I have followed the tutorial on http://beta.asp.net/guidedtour2/ and is working all ok locally. When I uploaded to IIS 6 on a Windows Server 2003 SP1 and tried logging in using login.aspx it gave me this error:
An attempt to attach an auto-named database for file C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebSite1\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.
What solution(s) can I try to get the loggin script working
If anymore info is required like the Stack Trace I will do my best to get it.
Thanks.
Lewis Cobley

User Login Troubles
E-Shy
Pioter
If you are using MS SQL Server (instead of SQL Server Express), then you should run the aspnet_regsql.exe command-line tool to create the proper tables needed for membership, etc... on that SQL Server.
Once you do that, you also need to edit the web.config file to change the provider connection to point to that SQL Server.
The tricky part in doing this is that there is no simple tool in Beta2 to transfer data from SQL Server Express (MDF file) -- into MS SQL Server 2005. Thus you will need to recreate the data in the other database.
We will be providing an import/export tool to pull data from SQL Express in the final release.
mehdi62b
Daggs
http://forums.asp.net/899888/ShowPost.aspx
Jacob Christ
The process cannot access the file 'C:\DOCUMENTS AND SETTINGS\IBRAHIM\MY DOCUMENTS\VISUAL STUDIO 2005\WEBSITES\CLUB WEB SITE STARTER KIT3\APP_DATA\ASPNETDB.MDF.MDF'
I am running sql-2005 on the local machine
The aspnetdb database is present
The config settng is:
<
add name="LocalSqlServer" connectionString="data source=-nottellingyou-;Integrated Security=sspi; AttachDBFilename=|DataDirectory|aspnetdb.mdf;" providerName="System.Data.SqlClient"/>While the clubsite.mdf does show in the app_data folder, the aspnetdb.mdf does not.
The site will come up, but of course an attempt to log on brings on the above error.
I am using the cassini server on this Win-xp mediacenter sp2 install.
Brandon Bray
futureadmin
I am running MS SQL Server 2005 CTP April. That is running on the server but the only table I created was the one using an ASP.NET 2.0 tutorial. Although now when I try to login it says incorrect password.
Thanks for your help.
Lewis
Tom Kaminski
Do you have SQL Server Express installed on the target machine By default the login system uses SQL Server Express to store user information so if its not installed I would expect an error similar to what you are seeing.
kurjan
Does any one know of information on how to set this up in a real environment
Thanks
Andy Ho
Take a look at this site
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=102337
for more information on this
Sameer Bhangar - MSFT