Getting Started - Help?http://forums.asp.net/t/1487836.aspx/1?Getting+Started+Help+Mon, 02 Nov 2009 03:46:56 -050014878363488360http://forums.asp.net/p/1487836/3488360.aspx/1?Getting+Started+Help+Getting Started - Help? <p>I didnt even do anything yet and it already does not work.&nbsp; Any ideas how to get started? Thanks, Chad</p> <p>Cannot create file 'C:\Documents and Settings\Chad\My Documents\My Web Site\ClubSite1\App_Data\Club_log.LDF' because it already exists. Change the file path or the file name, and retry the operation.</p> <p><br> Could not open new database 'ClubDB'. CREATE DATABASE is aborted.<br> </p> <p>Cannot attach the file 'C:\Documents and Settings\Chad\My Documents\My Web Site\ClubSite1\App_Data\Club.mdf' as database 'ClubDB'.</p> <p>Line 2186:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.Adapter.SelectCommand = this.CommandCollection[0];<br> Line 2187:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataSet.SiteSettingsDataTable dataTable = new DataSet.SiteSettingsDataTable();<br> <font color="#ff0000">Line 2188:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.Adapter.Fill(dataTable);<br> </font>Line 2189:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return dataTable;<br> Line 2190:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> File activation failure. The physical file name &quot;C:\work\ClubSite\App_Data\Club_log.LDF&quot; may be incorrect. </p> 2009-11-02T02:08:27-05:003488414http://forums.asp.net/p/1487836/3488414.aspx/1?Re+Getting+Started+Help+Re: Getting Started - Help? <p>Which version of VS you are using.</p> <p>Which version of SQL Server you are using. You are creating a database or only attaching an existing database.</p> 2009-11-02T03:06:09-05:003488419http://forums.asp.net/p/1487836/3488419.aspx/1?Re+Getting+Started+Help+Re: Getting Started - Help? <p>Database name if using visual studio has .mdf ending, and database log file has .ldf file ending.&nbsp; The log file is automatically generated when you generate the database.&nbsp; In your web application file under App_Data check to see if ClubDB.mdf and ClubDB.ldf are already installed. </p> <p>Does your Server Explorer show any database connections?&nbsp; (view, Server Explorer) If not left mouse click data connetions and then click&nbsp; add connection.&nbsp; The add connection dialog box will appear.&nbsp; Enter server name, and under select a database click either select or enter a database name, or click attach a database file. <br> </p> <p><br> </p> 2009-11-02T03:09:24-05:003488454http://forums.asp.net/p/1487836/3488454.aspx/1?Re+Getting+Started+Help+Re: Getting Started - Help? <p>Make sure that the Database does not exist already in that folder where you are trying to create it.</p> <p>because you cannot delete any database untill you stop your SQL Server instance you won't be able to override the database already there</p> <p>in that folder.</p> <p>So either you try changing the name of the database or stop your SQLServer instance then delete the database and corresponding log file and then try to recreate it.</p> <p>This should help...<br> </p> <p><br> </p> 2009-11-02T03:46:56-05:00