发布VB2008项目 [英] Publishing VB2008 projects

查看:93
本文介绍了发布VB2008项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在发布之前能够发布的项目时遇到问题。我最初在2015年写了这个,并试图更新软件并发布它。我得到一个错误说明;




错误  2 签名时出错:无法签署bin \Release\app.publish\\ setupup.exe。 SignTool错误:Signtool需要CAPICOM 2.1.0.1或更高版本。请

  SignTool.exe的目录中。如果CAPICOM.dll存在,您可能没有< g class =" gr_ gr_25 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace"数据-GR-ID =" 25" id =" 25"> right< / g>

< g class =" gr_ gr_25 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace"数据-GR-ID =" 25" ID = QUOT; 25">&NBSP;权限< / g取代;安装CAPICOM。  BedLabels

 




我已下载并安装了capicom.dll,它与signtool位于同一位置。 exe。




当我运行regsvr32来注册< g class =" gr_ gr_21 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling"数据-GR-ID =" 21" ID = QUOT; 21"> DLL< / g取代;我有两个错误; 




1;)模块已加载,但调用< g class =" gr_ gr_20 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins -del multiReplace"数据-GR-ID =" 20" ID = QUOT; 20"> dllregister< / g取代;失败。






2;)模块无法加载




确保二进制文件存储在指定的路径或调试它以检查二进制或从属的问题。无法找到指定的模块






我检查并仔细检查拼写,文件确实在正确的位置。我在互联网上搜索了解决方案,发现< g class =" gr_ gr_26 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace"数据-GR-ID =" 26"
id =" 26">几个,< / g>但没有一个有用。我希望有人可以帮助我。




谢谢你 




Jim

解决方案

你好Jim_723,



< span style ="font-size:10.0pt; font-family :'Segoe UI',sans-serif;颜色:#3B3838">欢迎来到MSDN论坛。



在我给你一些解决方法之前,我需要为你确认一些信息:



>>正在尝试更新软件并将其发布。



你的意思是你之前使用VS 2008创建一个VB项目,现在你想用VS 2008更新和发布它吗?



您是否通过Clickonce发布了您的项目?您是否对其他项目有同样的问题,或者只是与此相关?



>>错误  2 签名时发生错误:无法签署bin \Release\app.publish\\setup.exe .SignTool错误:Signtool需要
CAPICOM版本2.1.0.1或更高版本。请将最新版本的CAPICOM.dll复制到包含  SignTool.exe的目录中。如果CAPICOM.dll存在,您可能没有 
正确 权限
安装CAPICOM。  BedLabels



>> 1;)模块已加载,但调用
 
dll register 失败。


2;)模块加载失败,确保二进制文件存储在指定路径或调试它以检查二进制文件或从属文件是否存在问题。
找不到指定的模块。 / span>



我们知道,CAPICOM是一个只有32位的组件,64位regsrv32.exe注意到这个DLL是32位的,我们自动称为32位
regsvr32.exe。但是当32位regsvr32.exe访问当前工作文件夹%windir%\ system32,它会自动重定向到%windir%\ SysWOW64,其中没有DLL。



请按照以下步骤操作:



  1. 从以下位置下载Capicom SDK:
    https:/ /www.microsoft.com/en-us/download/details.aspx?id=25281
  2. 从此zip文件中提取
    capicom.dll
  3. 复制将此文件粘贴到C:/ windows / SysWOW64目录
  4. 以管理员权限打开CMD - >键入" cd C:/ windows / SysWOW64 " - >键入
    'REGSVR32 capicom.dll'并按"Enter"
  5. 测试再次发布。



期待您的回复。



最好的问候



I am having a problem with publishing a project that I was able to publish before. I wrote this originally in 2015 and was trying to update the software and publish it. I get an error stating;

Error 2 An error occurred while signing: Failed to sign bin\Release\app.publish\\setup.exe. SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please
 copy the latest version of CAPICOM.dll into the directory that contains
 SignTool.exe. If CAPICOM.dll exists, you may not have <g class="gr_ gr_25 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="25" id="25">proper</g>
<g class="gr_ gr_25 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" data-gr-id="25" id="25"> permissions</g> to install CAPICOM. BedLabels
 

I have downloaded and installed the capicom.dll and it exists in the same location as signtool.exe.

When I run regsvr32 to register the <g class="gr_ gr_21 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="21" id="21">dll</g> I have gotten two errors for that; 

1;) the module loaded, but the call to the <g class="gr_ gr_20 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="20" id="20">dllregister</g> failed.

2;) the module failed to load

make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent. the specified module could not be found

I have checked and double checked the spelling and that the file is indeed in the right location. I have searched the internet for solutions and found <g class="gr_ gr_26 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="26" id="26">several ,</g> but none have worked. I hope someone out here can help me with this.

Thank- you 

Jim

解决方案

Hi Jim_723,

Welcome to the MSDN forum.

Before I give you some work around, I require to confirm some info for you:

>> was trying to update the software and publish it.

Did you mean you create a VB project by using VS 2008 before and now you want to update and publish it with VS 2008?

Have you published your project via Clickonce? Do you have the same problem with other projects or is it just related to this one?

>> Error 2 An error occurred while signing: Failed to sign bin\Release\app.publish\\setup.exe. SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please  copy the latest version of CAPICOM.dll into the directory that contains  SignTool.exe. If CAPICOM.dll exists, you may not have proper permissionsto install CAPICOM. BedLabels

>>1;) the module loaded, but the call to the dll registerfailed.

2;) the module failed to load make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent. the specified module could not be found.

As we know, CAPICOM is a 32-bit only component, 64-bit regsrv32.exe noticed that the DLL is 32-bit an automatically called 32-bit regsvr32.exe for us. But when 32-bit regsvr32.exe accesses the current working folder %windir%\system32, it is automatically redirected to %windir%\SysWOW64, where there is no DLL.

So please follow these steps:

  1. Download the Capicom SDK from: https://www.microsoft.com/en-us/download/details.aspx?id=25281
  2. Extract capicom.dll from this zip file
  3. Copy Paste this file in your C:/windows/SysWOW64 directory
  4. Open CMD with administrator privilege -> type "cd C:/windows/SysWOW64" -> type 'REGSVR32 capicom.dll' and press "Enter"
  5. Test to publish again.

Looking forwards your reply.

Best Regards

May


这篇关于发布VB2008项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆