Server Error in '/' Application.

Could not use ''; file already in use.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Could not use ''; file already in use.

Source Error:


Line 1004:
Line 1005:        Try
Line 1006:            objConn.Open()
Line 1007:            Dim strSQL As String = "SELECT DISTINCT  Source, SupplementalCategory FROM PhotosTab ORDER BY Source "
Line 1008:            Dim objCmd As New System.Data.OleDb.OleDbCommand(strSQL, objConn)

Source File: \\smb-whst-www11\whst_www11$\9e8dabb4a.hostnd\htdocs\www\App_Code\PhotoColl.vb    Line: 1006

Stack Trace:


[OleDbException (0x80004005): Could not use ''; file already in use.]
   System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +973141
   System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
   System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +29
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +4928220
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.OleDb.OleDbConnection.Open() +40
   PhotoColl.CreateCategory2All() in \\smb-whst-www11\whst_www11$\9e8dabb4a.hostnd\htdocs\www\App_Code\PhotoColl.vb:1006
   SearchControl.Page_Load(Object sender, EventArgs e) in \\smb-whst-www11\whst_www11$\9e8dabb4a.hostnd\htdocs\www\SearchControl.ascx.vb:62
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062