我的winform应用程序中用了webbrows控件.现在的问题是做安装程序到客户的电脑上去,运行出现错误,我的开发电脑上没有错误.
错误是:
Unhandled excepetion has occurred in a componet in your application .if you click continue,the application will ignore this error and attempt to continue
you must have a license to use the activex control.点Details出来以下内容:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************
System.ComponentModel.LicenseException: You must have a license to use this ActiveX control.
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   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.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: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll我觉得是和webbrows控件有关,我程序去掉webbrows ,安装就没有问题,我想可能是我用了webbrows控件后,少打包了关联的ocx
但是我不知道应该是哪个文件,而且我用vs新建安装部署项目,安装也出同样的问题.所以请问大家, 我是不是少打包了哪个文件,具体又是哪个文件呢?