佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1604|回复: 10

如何使用visual basic 的database 能够储存资料??求助

[复制链接]
发表于 24-7-2011 01:40 AM | 显示全部楼层 |阅读模式
本帖最后由 @真心的朋友@ 于 24-7-2011 01:55 AM 编辑

我在visual basic 做了一个注册表?但是我做好了, install 在电脑用的时候储存资料时出现这个error
请问一下是什么问题有人知道吗??
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 24-7-2011 01:46 AM | 显示全部楼层
回复

使用道具 举报

发表于 24-7-2011 02:19 AM | 显示全部楼层
意識是你的程序里有錯誤(exception)發生,打開你的代源碼,debug檢查看到底是什么exception
回复

使用道具 举报

 楼主| 发表于 25-7-2011 12:08 AM | 显示全部楼层
回复 3# doktorkoo


    不太明白可以解释多一点吗???
我是初学罢了??不好意思
回复

使用道具 举报

发表于 25-7-2011 12:48 AM | 显示全部楼层
回复  doktorkoo


    不太明白可以解释多一点吗???
我是初学罢了??不好意思
@真心的朋友@ 发表于 25-7-2011 12:08 AM


我不清楚你的程序有什么異常,需要你打開你的代源碼,即是vb文件,然后按play(意識是debug),然后測試你的程序功能
回复

使用道具 举报

 楼主| 发表于 25-7-2011 01:34 AM | 显示全部楼层
回复 5# doktorkoo


我在debug 的时候没有问题?所有的code 都对没有错误?
问题就是出现在我作了一个installer在电脑后,再电脑启动后就有那个error了??
回复

使用道具 举报

Follow Us
发表于 25-7-2011 01:39 AM | 显示全部楼层
回复  doktorkoo


我在debug 的时候没有问题?所有的code 都对没有错误?
问题就是出现在我作了一个 ...
@真心的朋友@ 发表于 25-7-2011 01:34 AM


你按那個error details 看有什么說明
回复

使用道具 举报

 楼主| 发表于 25-7-2011 10:51 AM | 显示全部楼层
回复 7# doktorkoo


那个error detail 里面的东西
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): Operation must use an updateable query.
   at Inventor_Projects.Database_For_Project_InventoryDataSetTableAdapters.TableAdapterManager.UpdateAll(Database_For_Project_InventoryDataSet dataSet) in C:\Users\User\Desktop\Project Inventory 123 - Copy\Project Inventory\Database_For_Project_InventoryDataSet.Designer.vb:line 4469
   at Inventor_Projects.frm_Model.btn_save_Click(Object sender, EventArgs e) in C:\Users\User\Desktop\Project Inventory 123 - Copy\Project Inventory\Model.vb:line 72
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.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.235 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Project Inventory
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Microsoft/Project%20Inventory/Project%20Inventory%20123%20-%20Copy/Project%20Inventory/bin/Debug/Project%20Inventory.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    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.232 built by: RTMGDR
    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.1 built by: RTMRel
    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.235 built by: RTMGDR
    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.1 built by: RTMRel
    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.1 (RTMRel.030319-0100)
    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.1 built by: RTMRel
    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.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Microsoft.VisualBasic.PowerPacks.Vs
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.PowerPacks.Vs/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.PowerPacks.Vs.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    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.1 built by: RTMRel
    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.1 built by: RTMRel
    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.1 built by: RTMRel
    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.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.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.
回复

使用道具 举报


ADVERTISEMENT

发表于 25-7-2011 05:30 PM | 显示全部楼层
回复  doktorkoo
System.Data.OleDb.OleDbException (0x80004005): Operation must use an updateable query.
@真心的朋友@ 发表于 25-7-2011 10:51 AM



    這個是數據庫的異常,當你安裝在電腦上,你確定電腦數據庫軟件里有你所創造的database?
回复

使用道具 举报

 楼主| 发表于 26-7-2011 09:59 AM | 显示全部楼层
回复 9# doktorkoo


  嗯...好的我试试看...谢谢你哦^~^
回复

使用道具 举报

发表于 10-11-2011 04:52 PM | 显示全部楼层
用Try Catch会有详情
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT


本周最热论坛帖子本周最热论坛帖子

ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 11-11-2025 03:25 AM , Processed in 0.148332 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表