webbrows控件打包的问题:you must have a license to use the activex control

itcoco 2009-03-10 11:27:23
我的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新建安装部署项目,安装也出同样的问题.所以请问大家, 我是不是少打包了哪个文件,具体又是哪个文件呢?
...全文
375 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
itcoco 2009-03-12
  • 打赏
  • 举报
回复
不知道是哪个控件
oyljerry 2009-03-11
  • 打赏
  • 举报
回复
注册web browser控件
itcoco 2009-03-11
  • 打赏
  • 举报
回复
up up up
wjl_wjl520 2009-03-11
  • 打赏
  • 举报
回复
axwebbrows
Thank you for downloading Softuarium UnZipper v2.0 demo.Description~~~~~~~~~~~UnZipper is an ActiveX control designed to easily manipulate ZIP archives from within your application. It is compatible with both PKZip and InfoZip standards of compression. It offers additional features such as automatic output folder creation.Installation~~~~~~~~~~~~To use UnZipper in your projects you must first register it usingRegsvr32.exe (you‘ll find it in windowssystem directory). Alternatively, you can browse for it from within VB IDE, in which case it is registered automatically.NOTE: you must register the control BEFORE you attempt to use it or run sample project included in the package.Use~~~For practical demonstration please see included sample VB project.UnZipper has the following properties:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Directories (boolean)~~~~~~~~~~~This property determines if directory structure stored in ZIP archive will be re-created when unzipping. Default value is "True".Example: UnZip1.Directories=FalsePlease note that if ZIP archive includes files having identical names but stored in different directories and you unzip it with Directories property set to "False" such files will be overwritten without warning.InputFile (string)~~~~~~~~~This is the full path of the ZIP archive you want to unzip. Example: UnZip1.InputFile="c:windowsdesktop est.zip"OutputFolder (string)~~~~~~~~~~~~This is the path to the folder in which unzipped file(s) will be saved.Example: UnZip1.OutputFolder="c:windowsdesktop est folder"Note:1.Trailing backslash "" is optional, ie the following statements:UnZip1.OutputFolder="c:windowsdesktop est folder" andUnZip1.OutputFolder="c:windowsdesktop est folder" are equivalent2.If OutputFolder property is not explicitly specified the file(s) will be extracted to the folder in which input ZIP archive resides3.OutputFolder may be specified as either absolute or relative path. For example if input file is c:windowsdesktop est.zip the following values of OutputFolder property will give identical results:UnZip1.OutputFolder ="c:windowsdesktop est folder"UnZip1.OutputFolder ="test folder"In other words: specifying only the name of the output folder is equivalent to explicitly specifying output folder in the directory in which the input ZIP archive resides.4.If OutputFolder does not exist it will be created.5.If OutputFolder exists and contains files with identical names as files stored in ZIP archive, they will be overwritten without warning.UnZipper has one method:~~~~~~~~~~~~~~~~~~~~~~~~Go ~~It unzips the input ZIP archive and saves output on disk.Example: UnZip1.GoRelease information~~~~~~~~~~~~~~~~~~~UnZipper v2.0 was created and compiled using VB6 with SP3. If you intend to use UnZipper demo in development environment other than VB6 you will need to install VB6 runtime libraries. They are available for download (~1 MB) from our website or directly from Microsoft.The retail version of UnZipper includes all necessary support files as well as setup program, which installs them if required.Pricing~~~~~~~The cost of retail version of UnZipper is $15. Retail version of UnZipper may be compiled using Microsoft License Key to protect your investment. Ordering~~~~~~~~For up to date information on how to order the retail version please visit our web site at http://users.senet.com.au/~eszlapek or email us at eszlapek@senet.com.au Disclaimer~~~~~~~~~~UnZipper control is distributed "as is". No warranty of any kind is expressed or implied. While every precaution was taken to produce bug free code, you use it at your own risk. The author will not be liable for data loss, damages, loss of profits or any other kind of loss while using or misusing this software.Credits~~~~~~~This software is based in part on work of Info-ZIP group. Info-ZIP‘s software is free and can be obtained as source code and/or executables from various anonymous ftp sites, including ftp.uu.net:/pub/archiving/zip/*.Thank you for using Softuarium UnZipper.

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧