需要帮助VB.NET连接到Access数据库 [英] Need help in VB.NET connecting to Access database

查看:82
本文介绍了需要帮助VB.NET连接到Access数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我收到此异常错误,我感到非常沮丧。我已经尝试过搜索众多用户支持小组,Microsoft支持网,谷歌等等。

并没有找到我的情况。希望有人可以提供帮助。


我只是在学习VB.NET并购买了SAM的'自学VB.NET

2003 in 21天''书。我试图连接到我在我的计算机上根据第16章在本地创建的一个Access数据库

。我最初在网络共享上有它

但是也试过访问它我的C:\驱动器。我根据

书的说明创建了一个

OleDBConnection1以及OleDbDataAdapter1和DataSet11。我将数据网格拖到空白表单上,然后在

属性窗口中设置其数据源> DataSet11.Students这是我的Access表(Students.mdb)的名字




我收到一条错误消息,指出未处理的异常类型

'SystemTests.exe中发生'System.Security.SecurityException''


附加信息:请求失败我已经看到这可能有一些东西

与我的权限有关,我可以在Microsoft .NET Framework中调整

配置实用程序,但我不知道我正在寻找什么。可以有人

请协助解决此问题吗?如果您需要任何

的额外信息,请与我们联系。谢谢!

-

通过发布消息http://www.dotnetmonster.com

I am very frustrated due to this exception error I am receiving. I''ve tried
searching numerous user support groups, Microsoft Support Net, Google, etc.
and haven''t found exactly my situation. Hopefully someone here can help.

I am just learning VB.NET and purchased the SAM''s "Teach Yourself VB.NET
2003 in 21 days'' book. I am trying to connect to an Access database I created
locally on my computer per Chapter 16. I originally had it on a network share
but have also tried accessing it on my C:\ drive. I''ve created an
OleDBConnection1 along with the OleDbDataAdapter1 and the DataSet11 per the
book''s instructions. I dragged a data grid onto a blank form and in the
Properties window set its Datasource > DataSet11.Students which is the name
of my Access table (Students.mdb).

I am receiving an error message stating "An unhandled exception of type
''System.Security.SecurityException'' occurred in DatabaseTests.exe

Additional information: Request failed" I''ve seen this probably has something
to do with my permissions which I can adjust in the Microsoft .NET Framework
Configuration utility, but I don''t know what I''m looking for. Can someone
please assist with troubleshooting this issue? Let me know if you need any
additional information. Thank you!
--
Message posted via http://www.dotnetmonster.com

推荐答案

asp工作进程是否拥有mdb

文件位于?

Does the asp worker process have rights to the directory where the mdb
file is located?


Terry写道:
asp工作进程是否拥有该目录的权限mdb
文件位于?
Does the asp worker process have rights to the directory where the mdb
file is located?




我不知道因为我不知道asp工作进程权在哪里

已配置。配置它的配置文件的名称是什么?

默认存储在哪里?

-

消息通过< a rel =nofollowhref =http://www.dotnetmonster.comtarget =_ blank> http://www.dotnetmonster.com


这是一个网络应用程序还是一个Windows应用程序?

" CM Manager via DotNetMonster.com" < FO *** @ DotNetMonster.com>写在

消息新闻:53 *********** @ DotNetMonster.com ...
Is this a web app or a windows app?
"CM Manager via DotNetMonster.com" <fo***@DotNetMonster.com> wrote in
message news:53***********@DotNetMonster.com...
Terry写道:
asp worker进程是否拥有mdb
文件所在目录的权限?
Does the asp worker process have rights to the directory where the mdb
file is located?



我不知道因为我不知道asp在哪里配置了工作进程权限。配置文件的名称是什么配置

默认存储在哪里?

-
通过 http://www.dotnetmonster.com



这篇关于需要帮助VB.NET连接到Access数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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