Cannot login to BugNET

Topics: Installing BugNET
Apr 2, 2014 at 9:09 AM
I am a newcomer to both IIS and SQL Server. I have managed to install BugNET despite several setbacks but I still haven't managed to login.

When I try to open //localhost:8080/bugnet/account/login.aspx, after a delay of 50 seconds I get the message:
Unable to open the physical file "C:\inetpub\wwwroot\bugnet\App_Data\Database.mdf". Operating system error 32: "32(The process cannot access the file because it is being used by another process.)".
An attempt to attach an auto-named database for file C:\inetpub\wwwroot\bugnet\App_Data\Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share

This may be something very simple. Can anyone help?
Apr 3, 2014 at 9:08 AM
Further to my previous post:-
The error I reported seems to be a secondary effect. The primary problem seems to be a timeout during the login process. This leaves the database marked as "in use" for any further login attempts. The timeout error message is as follows:

[Win32Exception (0x80004005): The wait operation timed out]

[SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=361; handshake=1068; [Login] initialization=0; authentication=15; [Post-Login] complete=13054; ]
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +414
System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78
System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource
1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +196
System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) +146
System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource
1 retry, DbConnectionOptions userOptions) +16
System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource1 retry) +94
System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource
1 retry) +110
System.Data.SqlClient.SqlConnection.Open() +96
BugNET.Providers.DataProviders.SqlDataProvider.ExecuteReaderCmd(SqlCommand sqlCmd, GenerateListFromReader1 gcfr, List1& list) +112
BugNET.Providers.DataProviders.SqlDataProvider.GetHostSettings() +152
BugNET.BLL.HostSettingManager.LoadHostSettings() +63
BugNET.BLL.HostSettingManager.GetHostSettings() +75
BugNET.Initialization.Init(HttpContext context) +306
BugNET.Global.Application_BeginRequest(Object sender, EventArgs e) +55
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69