2014-10-20 1 views
-4

오류가 계속 발생하지만 간단한 데이터베이스를 가져 오려고합니다. 하나의 테이블 데이터베이스가 VB 솔루션에 연결되어 있으므로 데이터 소스를 양식으로 끌어 왔습니다. 디버그 모드에서는 모든 것이 잘 작동합니다. 코드 아래에 수행응용 프로그램에서 처리되지 않은 예외가 발생했습니다. Visual Basic

Public Class Form1 

Private Sub UNF___Mia_s_SandwichBindingNavigatorSaveItem_Click(sender As Object, e As EventArgs) Handles UNF___Mia_s_SandwichBindingNavigatorSaveItem.Click 
    Me.Validate() 
    Me.UNF___Mia_s_SandwichBindingSource.EndEdit() 
    Me.TableAdapterManager.UpdateAll(Me._UNF___Mia_s_Sandwich_ShopDataSet) 

End Sub 

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load 
    'TODO: This line of code loads data into the '_UNF___Mia_s_Sandwich_ShopDataSet._UNF___Mia_s_Sandwich' table. You can move, or remove it, as needed. 
    Me.UNF___Mia_s_SandwichTableAdapter.Fill(Me._UNF___Mia_s_Sandwich_ShopDataSet._UNF___Mia_s_Sandwich) 

End Sub Eng Class 

http://imgur.com/huyOe4p - 나는 누군가가 어떤 도움이 될하시기 바랍니다 수 있습니다, 내 응용 프로그램을 게시하고 이미지에 지정된대로 나에게 오류를 제공 실행하려고하면 아래의 설명입니다, 감사합니다 .NET 프레임 워크

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box. 

************** Exception Text ************** 
System.Data.OleDb.OleDbException (0x80004005): Could not find file 'C:\Users\Zaid Badat\AppData\Local\Apps\2.0\Data\X6KYTV4D.R2Y\0QVKG7WA.JJE\data..tion_23a8b6ca080dde40_0001.0000_06c6e7972d174adf\Data\UNF - Mia's Sandwich Shop.accdb'. 
    at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) 
    at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) 
    at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions) 
    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) 
    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 
    at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) 
    at System.Data.OleDb.OleDbConnection.Open() 
    at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) 
    at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) 
    at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) 
    at Database._UNF___Mia_s_Sandwich_ShopDataSetTableAdapters.UNF___Mia_s_SandwichTableAdapter.Fill(_UNF___Mia_s_SandwichDataTable dataTable) 
    at Database.Form1.Form1_Load(Object sender, EventArgs e) 
    at System.EventHandler.Invoke(Object sender, EventArgs e) 
    at System.Windows.Forms.Form.OnLoad(EventArgs e) 
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 
    at System.Windows.Forms.Control.CreateControl() 
    at System.Windows.Forms.Control.WmShowWindow(Message& m) 
    at System.Windows.Forms.Control.WndProc(Message& m) 
    at System.Windows.Forms.Form.WmShowWindow(Message& m) 
    at System.Windows.Forms.Form.WndProc(Message& m) 
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 


************** Loaded Assemblies ************** 
mscorlib 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll 
---------------------------------------- 
Database 
    Assembly Version: 1.0.0.0 
    Win32 Version: 1.0.0.0 
    CodeBase: file:///C:/Users/Zaid%20Badat/AppData/Local/Apps/2.0/T4OKZ2L8.PN9/HZ6DCQDA.RBH/data..tion_23a8b6ca080dde40_0001.0000_06c6e7972d174adf/Database.exe 
---------------------------------------- 
Microsoft.VisualBasic 
    Assembly Version: 10.0.0.0 
    Win32 Version: 12.0.51209.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll 
---------------------------------------- 
System.Windows.Forms 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll 
---------------------------------------- 
System 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll 
---------------------------------------- 
System.Drawing 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll 
---------------------------------------- 
System.Configuration 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll 
---------------------------------------- 
System.Xml 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll 
---------------------------------------- 
Accessibility 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll 
---------------------------------------- 
System.Runtime.Remoting 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll 
---------------------------------------- 
System.Data 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll 
---------------------------------------- 
System.Data.DataSetExtensions 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll 
---------------------------------------- 
System.Numerics 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll 
---------------------------------------- 
System.Transactions 
    Assembly Version: 4.0.0.0 
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR 
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll 
---------------------------------------- 

************** JIT Debugging ************** 
To enable just-in-time (JIT) debugging, the .config file for this 
application or computer (machine.config) must have the 
jitDebugging value set in the system.windows.forms section. 
The application must also be compiled with debugging 
enabled. 

For example: 

<configuration> 
    <system.windows.forms jitDebugging="true" /> 
</configuration> 

When JIT debugging is enabled, any unhandled exception 
will be sent to the JIT debugger registered on the computer 
rather than be handled by this dialog box. 
+3

'예외 텍스트'의 첫 번째 줄에 모두 나와 있습니다. 'C : \ Users \ Zaid Badat \ AppData \ ....'파일을 찾을 수 없습니다. – Plutonix

+0

내가 말하고자하는 바를 알고 있습니다. 매번 파일을 수동으로 복사해서는 안되지만 데이터베이스 파일을 찾을 수 없다고 말하면이 문제가 해결됩니까? –

+0

VB 기본 방법 대신'Environment.GetFolderPath'를 통해 만든 고정 경로를 사용해 볼 수 있습니다. – Plutonix

답변

0

에 의한 오류 코드가 난 후 나는 데이터베이스에 대한 응용 프로그램 파일, 데이터 파일에 도움이 사람 덕분에 게시 상태 변경, 제작 설정으로 이동하여 고정.

관련 문제