我在安装后使用visual studio 2010创建了简单的数据库应用程序,它显示以下错误plz帮助我。 [英] i have created simple database application with visual studio 2010 after installation it shows the following error plz help me.

查看:73
本文介绍了我在安装后使用visual studio 2010创建了简单的数据库应用程序,它显示以下错误plz帮助我。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关调用

实时(JIT)调试而不是此对话框的详细信息,请参阅此消息的结尾。



**************异常文本**************

System.Data.OleDb.OleDbException(0x80004005) :找不到文件C:\Users\pravin\AppData\Local\Apps\2.0\Data\5X3RJMCB.C5P\T709AZTL.EE7\dair..tion_81db52310e8e81e0_0001.0000_ede117bb5d91b01b\Data System.Data.OleDb.OleDbConnectionFactory的System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr,OleDbConnection连接)上的\login.accdb'。



。 CreateConnection(DbConnectionOptions选项,DbConnectionPoolKey poolKey,Object poolGroupProviderInfo,DbConnectionPool池,DbConnection owningObject)

在System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions选项,DbConnectionPoolKey poolKey,Object poolGroupProviderInfo,DbConnectionPool p OOL,的DbConnection owningConnection,DbConnectionOptions USEROPTIONS)

。在System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(的DbConnection owningConnection,DbConnectionPoolGroup poolGroup,DbConnectionOptions USEROPTIONS)

。在System.Data.ProviderBase .DbConnectionFactory.TryGetConnection(DbConnection owningConnection,TaskCompletionSource`1 retry,DbConnectionOptions userOptions,DbConnectionInternal&在System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(的DbConnection outerConnection,DbConnectionFactory connectionFactory的,连接)

TaskCompletionSource`1重试,DbConnectionOptions USEROPTIONS)

。在System.Data.ProviderBase。 DbConnectionInternal.OpenConnection(的DbConnection outerConnection,DbConnectionFactory connectionFactory的)

在System.Data.OleDb.OleDbConnection.Open()在System.Data.Common.DbDataAdapter.FillInternal

(数据集datat,DataTable [] datatables,Int32 startRecord,Int32 maxRecords,String srcTable,IDbCommand command,CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataTable [] dataTables,Int32 startRecord,Int32最大记录,IDbCommand的命令的CommandBehavior行为)

在System.Data.Common.DbDataAdapter.Fill(DataTable中的dataTable)
$在DAIRY2015.loginDataSetTableAdapters.loginTableAdapter.Fill b $ b(loginDataTable的dataTable)

at DAIRY2015.F orm1.Form1_Load(Object sender,EventArgs e)

在System.EventHandler.Invoke(Object sender,EventArgs e)

在System.Windows.Forms.Form.OnLoad( EventArgs e)

在System.Windows.Forms.Form.OnCreateControl()

在System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
$ System.Windows.Forms.Control.WmShowWindow上的System.Windows.Forms.Control.CreateControl()

的b $ b(消息& m)

在System.Windows.Forms.Control.WndProc(Message& m)

在System.Windows.Forms.ScrollableControl.WndProc(Message& m)
(消息& m)
System.Windows.Forms.Form.WmShowWindow上的
(消息& m)
$ b System.Windows.Forms.Form.WndProc上的$ b(消息& m)

在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(消息& m)

在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)





**************已装载的装配************ **

mscorlib

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file:/// C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

---------------- --- ---------------------

DAIRY2015

汇编版本:1.0.0.0

Win32版本:1.0.0.0

CodeBase:file:/// C:/Users/pravin/AppData/Local/Apps/2.0/YEE9WWE8.AX9/V8E757QL.BJB/dair..tion_81db52310e8e81e0_0001 .0000_ede117bb5d91b01b / DAIRY2015.exe

------------------------------------ ----

Microsoft.VisualBasic

汇编版本:10.0.0.0

Win32版本:11.0.50709.17929内容:FX45RTMREL
CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

系统

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file:/// C:/ Windows /Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

-------------------- --------------------

System.Core

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file :/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

-------- --------------------------------

System.Windows.Forms

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file:/// C:/Windows/Microsoft.Net /assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

---------------- ------------------------

System.Drawing

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4 .0_4.0.0.0__b03f5f7f11d50a3a / System.Drawing.dll

------------------------------ ----------

Syst em.Configuration

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

------------ ----------------------------

System.Xml

汇编版本: 4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System .Xml / v4.0_4.0.0.0__b77a5c561934e089 / System.Xml.dll

-------------------------- --------------

System.Runtime.Remoting

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929建立者:FX45RTMREL

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

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

----- -----------------------------------

System.Data.DataSetExtensions

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

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

汇编版本:4.0 .0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System。 Numerics / v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

------------------------ ----------------

辅助功能

汇编版本:4.0.0.0

Win32版本: 4.0.30319.17929建立者:FX45RTMREL

CodeBase:file:/// C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

System.Transactions

汇编版本:4.0.0.0

Win32版本:4.0.30319.17929内容:FX45RTMREL

CodeBase:file :/// C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll

-------- --------------------------------



** ************ JIT调试**************

要启用实时(JIT)调试,。这个

应用程序或计算机(machine.config)的配置文件必须在system.windows.forms部分设置

jitDebugging值。

申请还必须b e编译调试

启用。



例如:



< pre lang =xml> < configuration >
< system.windows.forms jitdebugging = true / >
< / configuration >





启用JIT调试后,任何未处理的异常

将被发送到注册的JIT调试器电脑

而不是由这个对话框处理。

解方案

错误信息非常明确:

找不到文件'C:\Users\pravin\AppData \ Local \Apps\2.0\Data\5X3RJMCB.C5P\T709AZTL.EE7\dair..tion_81db52310e8e81e0_0001.0000_ede117bb5d91b01b\Data\login.accdb

所以,请检查您的连接字符串,并确保它指向一个有效的文件。


该位置不存在。如何修复错误


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\pravin\AppData\Local\Apps\2.0\Data\5X3RJMCB.C5P\T709AZTL.EE7\dair..tion_81db52310e8e81e0_0001.0000_ede117bb5d91b01b\Data\login.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.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
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& connection)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(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 DAIRY2015.loginDataSetTableAdapters.loginTableAdapter.Fill(loginDataTable dataTable)
at DAIRY2015.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.Form.OnCreateControl()
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.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.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.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
DAIRY2015
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/pravin/AppData/Local/Apps/2.0/YEE9WWE8.AX9/V8E757QL.BJB/dair..tion_81db52310e8e81e0_0001.0000_ede117bb5d91b01b/DAIRY2015.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 11.0.50709.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
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.17929 built by: FX45RTMREL
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.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
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.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/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.17929 built by: FX45RTMREL
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.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/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.

解决方案

The error message is pretty explicit:

Could not find file 'C:\Users\pravin\AppData\Local\Apps\2.0\Data\5X3RJMCB.C5P\T709AZTL.EE7\dair..tion_81db52310e8e81e0_0001.0000_ede117bb5d91b01b\Data\login.accdb'

So, check your connection string, and make sure it points to a valid file.


This is not exist at that location. How to fix the error


这篇关于我在安装后使用visual studio 2010创建了简单的数据库应用程序,它显示以下错误plz帮助我。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆