English 中文(简体)
2010年视觉演播室 签署: 有与会者试图提及不存在的证明
原标题:Visual Studio 2010 Assembly Signing: An attempt was made to reference a token that does not exist

在我进入私人钥匙的密码之后,我试图在2010年视力演播室上用我们的笔迹,在我“试图提及一个不存在的信号”

最佳回答

我有同样的问题。 视力演播室指挥的“信号”(signtool)。 有时,<代码>signtool将要求您的密码无效,但通常在为我工作的两家工厂之后。

signtool.exe sign /f YOURCERT.pfx /p YOURPASSWORD YOURTARGET.exe

问题回答

视像演播室作为署长,把这个问题留给我处理。

这是我的工作。

首先是尝试用关键签字办法建设你的项目,使你的项目得以实施。 该建筑将失败,进入产出窗口,你发现一个错误,如:

Error 1 Cannot import the following key file: MyKey.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key container name: VS_KEY_7B9423FE45F4DBEB Project.SomeName

除主要仓库名称外(例如VS_KEY_7B9423FE45F4DBEB),你稍后将需要这一名称。

现在采取这些步骤:

  1. Import the digital certificate key (PFX) in the Windows Certificate Store. Double click the PFX key in Windows Explorer and install/import it into your key store (I actually imported it into the trusted root certificates store by selecting manually choose store).
  2. Start Visual Studio 2010 as regular user (I don t face this key signing issue as an Administrator, but I want to debug my apps as a user) (keep it open through this entire process)
  3. From the Start Menu open the Visual Studio Command Prompt (2010) shortcut (x64 if you on a x64 machine) AS AN ADMINISTRATOR (right click on the Visual Studio 2010 Command Prompt shortcut and select run as Administrator). This should open an administrative command prompt with the Visual Studio environment setup. (not a regular command prompt)
  4. In the command prompt, enter sn -d VS_KEY_xxxx with Key Store name from error message you saved at the beginning
  5. Then enter sn -i xxx.pfx VS_KEY_xxxx, enter password when prompted, xxx.pfx if your digital certificate
  6. Go back to Visual Studio and rebuild your project




相关问题
BlackBerry Code Signing for Multiple OS es

I wanted to do a couple of things and am wondering if they re possible, and if so, how to do them. I was going to make a Virtual Machine to run code-signing in. That way if my computer dies I can ...

.NET Code Signing Pricing

I am looking into options for code signing our company s application, and it seems there are several different providers such as: VeriSign Thawte Comodo GoDaddy Are there pros and cons for each ...

Authenticode checking slows .NET build

In other posts, e.g. Why are signed assemblies slow to load? it is shown how to avoid checking of signed assemblies when an app runs in a non- or slow-connected environment, by using the ...

Device driver code signing for windows XP 32 bit

I have written a device driver for a device but each time I connect the device in windows XP 32 bit, "found new hardware" wizard appears. I am signing the driver using a Comodo code signing ...

Code signing didn t complain when I changed an exe file?

I purchased a code signing certificate and all looks well. When tested inside a clean Virtual PC OS I no longer get the "The Publisher could not be verified" message. So just for grins, using a hex ...

Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

热门标签