用制作Microsoft Visual Studio .NET 2003的安装和部署项目作了个C#的windform安装程序,程序在没安装Microsoft Visual Studio .NET 2003的xp (sp2)上运行,一运行就提示错误:
An unhandled expcetion has occurred in your application.If you click Continue, the application will ignore this error and attempt to continue.If you click Quit,the application will be shut down immediately.No error information available: REGDB_E_CLASSNOTREG(Ox80040154)详细错误: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: No error information available: REGDB_E_CLASSNOTREG(0x80040154).
   at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
   at System.Data.OleDb.OleDbConnection.InitializeProvider()
   at System.Data.OleDb.OleDbConnection.Open()
   at zdfb.Form1.check_table(String table_name)
   at zdfb.Form1.Form1_Load(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.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
zdfb
    Assembly Version: 1.0.2291.16963
    Win32 Version: 1.0.2291.16963
    CodeBase: file:///E:/zdfb/zdfb.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Data
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (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 machine
rather than being handled by this dialog.
程序都是访问同一个网中的数据库和本机上的一个access数据库.在另一个安装有
Microsoft Visual Studio .NET 2003 就可以运行.而没安装Microsoft Visual Studio .NET 2003的xp (sp2)上就不能运行,此机已安装了docnet 1.1

解决方案 »

  1.   

    MDac是否装了,1.1好像是2.7的版本。
      

  2.   

    可以肯定地讲,没有装mdac 2.7或更高版本
      

  3.   

    那你需要装一下
    因为访问数据库,需要MDAC2.7的支持。
      

  4.   

    .net的安装盘就有,或者去微软去下载一个
      

  5.   

    http://www.microsoft.com/downloads/details.aspx?FamilyID=d91995d9-6840-4aa0-961b-42a7c5aa2cb3&DisplayLang=zh-cn或者用InstallShield连MDAC一起打包
      

  6.   

    谢谢!昨天没上网.
    mdac 2.5,2.6,2.7,2.8版本我在VB6.0的工程里都看到了.
      

  7.   

    把IIS和几个windows程序安装后就可以了,可能是XP 系统问题.