I am getting erros in my logs that reflect that the program is trying write a new SQL database file if one doesn't already exist, and even though one DOES exist, it still tries to write.
Here is that error message in its entirety, below:
(please keep in mind that the directions for manually installing the blog were followed verbatim from the book):
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/19/2006 5:42:38 AM
Event time (UTC): 8/19/2006 12:42:38 PM
Event ID: e3157f772e934bb392d3f42f45f65a3c
Event sequence: 4
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root/blog-1-128004649408281250
Trust level: Full
Application Virtual Path: /blog
Application Path: d:\www\blog\
Machine name: N01
Process information:
Process ID: 3928
Process name: aspnet_wp.exe
Account name: N01\ASPNET
Exception information:
Exception type: SqlException
Exception message: An attempt to attach an auto-named database for file d:\www\blog\App_Data\Blog.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Request information:
Request URL:
http://localhost/blog/Default.aspx
Request path: /blog/Default.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: N01\ASPNET
Thread information:
Thread ID: 1
Thread account name: N01\ASPNET
Is impersonating: False
Stack trace: at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlInternalConnectionTds.Com pleteLogin(Boolean enlistOK)
at System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at BlogManagerDB.GetCategories() in d:\www\blog\App_Code\DataAccess\BlogManagerDB.
vb:l ine 233
at BlogManager.GetCategories() in d:\www\blog\App_Code\BusinessLogic\BlogManager.
vb: line 79
at BlogEntriesFilter.Page_Load(Object sender, EventArgs e) in d:\www\blog\Controls\BlogEntriesFilter.ascx.
vb:lin e 30
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Mike