Could Not Find File C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\[database].mdb

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
As of the moment VS 2010 wont let me open most of my forms in Design view. The only one that will open is my base form that the other forms use for inheritance.
It doesnt make sense to me that the db file needs to be located in the IDE folder, but even when I copy it to there the error doesnt go away.
When I build/rebuild the solution or debug everything runs flawlessly which is another reason why I cant understand why this is happening.
Below are the call stack, and code from my ..dataset.designer.vb & baseform.vb files.

Call stack:
at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)<br/>
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)<br/>
at System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)<br/>
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)<br/>
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)<br/>
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)<br/>
at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)<br/>
at System.Data.OleDb.OleDbConnection.Open()<br/>
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)<br/>
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)<br/>
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)<br/>
at VBAutoCenterSystem.VBAutoDataSetTableAdapters.VehicleTableAdapter.Fill(VehicleDataTable dataTable) in S:...DataSet.Designer.vb:line 2495<br/>
at VBAutoCenterSystem.VBBaseForm.VBVehicleForm_Load(Object sender, EventArgs e) in S:...BaseForm.vb:line 52<br/>
at System.EventHandler.Invoke(Object sender, EventArgs e)<br/>
at System.Windows.Forms.Form.OnLoad(EventArgs e)<br/>
at System.Windows.Forms.Form.OnCreateControl()<br/>
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)<br/>
at System.Windows.Forms.Control.CreateControl()<br/>
at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)<br/>
at System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e)<br/>
at System.Windows.Forms.Form.OnVisibleChanged(EventArgs e)<br/>
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)<br/>
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)<br/>
at System.Windows.Forms.Control.set_Visible(Boolean value)<br/>
at System.Windows.Forms.Design.DesignerFrame.Initialize(Control view)<br/>
at System.Windows.Forms.Design.DocumentDesigner.Initialize(IComponent component)<br/>
at System.Windows.Forms.Design.FormDocumentDesigner.Initialize(IComponent component)<br/>
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)<br/>
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)<br/>
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)<br/>
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)<br/>
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)<br/>
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)<br/>
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)<br/>
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)<br/>
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

DataSet.Designer.vb:
2486 <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _<br/>
2487 Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _<br/>
2488 Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _<br/>
2489 Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _<br/>
2490 Public Overloads Overridable Function Fill(ByVal dataTable As VBAutoDataSet.VehicleDataTable) As Integer<br/>
2491 Me.Adapter.SelectCommand = Me.CommandCollection(0)<br/>
2492 If (Me.ClearBeforeFill = true) Then<br/>
2493 dataTable.Clear<br/>
2494 End If<br/>
2495 Dim returnValue As Integer = Me.Adapter.Fill(dataTable)<br/>
2496 Return returnValue<br/>
2497 End Function


BaseForm.vb:
49 Private Sub...Form_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br/>
50<br/>
51 TODO: This line of code loads data into the DataSet.table table. You can move, or remove it, as needed.<br/>
52 VBVehicleForm.VehicleTableAdapter.Fill(...Form.DataSet.table)<br/>
53 End Sub

All assistance is greatly appreciated.

View the full article
 
Back
Top