本帖最后由 zhenhunfan4 于 2015-01-02 10:05:03 编辑

解决方案 »

  1.   

    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Runtime.InteropServices.COMException
    Stack:
       at System.Windows.Forms.AxHost.CreateInstance()
       at System.Windows.Forms.AxHost.GetOcxCreate()
       at System.Windows.Forms.AxHost.TransitionUpTo(Int32)
       at System.Windows.Forms.AxHost.CreateHandle()
       at System.Windows.Forms.Control.CreateControl(Boolean)
       at System.Windows.Forms.Control.CreateControl(Boolean)
       at System.Windows.Forms.AxHost.EndInit()
       at DataTransferFromVDFormToDB.Form1.InitializeComponent()
       at DataTransferFromVDFormToDB.Form1..ctor()
       at DataTransferFromVDFormToDB.Program.Main()
    目测是COM组件调用不正确,无法生成COM实例。看这句就知道了:
    Exception Info: System.Runtime.InteropServices.COMException
    Stack:
       at System.Windows.Forms.AxHost.CreateInstance()
    错误模块路径: C:\Windows\syswow64\KERNELBASE.dll
    目测是这个dll调用的。检查版本和兼容性,还有权限吧
      

  2.   

    按照说明书去安装你的什么 AxXXXX 组件。使用第三方组件时,尤其要注意避免选择坑爹的 COM 的。10几年的 .net 的主要目的之一就是为了解决 COM 的这类部署问题的。
      

  3.   

    另外,你的“本地”引用第三方组件的那个DLL或者exe,要修改平台,不要是 AnyCPU,要改为 x86。如果一个工程不是直接引用,则不需要修改。只有直接引用的才需要修改。
      

  4.   

    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Runtime.InteropServices.COMException异常信息显示,是非托管异常导致的应用程序终止,是COM组件捣鬼了。没在服务器注册COM组件吧?