Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Problems publishing a VB.Net project  Help!!!

Posted on 2008-11-04
Medium Priority
Last Modified: 2010-05-18
Okay we created and published a VB.Net project  about a year ago...

We have been making changes to the development side and then publishing to the live side... all was good ..then about a month ago an error popped up...I can't remember the exact error...but I remember the solution was pressing  the "Create Test Certificate".. I entered a password twice and the project published with no problems...
 The next day I opened up the project and noticed that another "projectname_1_temporarykey.pfx" was created in my solution explorer...I assume this was created when I pressed the "Create Test Certificate" button the day previous

so there was now 2 .pfx files in my solution explorer...so I have been make changes to the project over the last couple of weeks and was ready to publish the project this afternoon to the live side , but an error popped up while I was trying to publish it...

Cannot publish because a project failed to build
SignTool reported an error 'Keyset does not exist"

Any ideas or suggestions as to why this is happening....
Question by:nomar2
  • 2

Accepted Solution

ScottParker earned 356 total points
ID: 22880873
Its not an easy fix....

First  get this
It is the source for a program called "RenewCert" from microsoft.
Complile it and put the exe in c:\dload   (if you follow my example below)

When a Click Once Cert expires do the following.

1. Find the .pfx file in the broken applicaitons source folder
2. Copy that to c:\dload
3. Start MSDos prompt and go to the dload folder
4. run...renewcert <OldCertificate>.pfx <NewCertificate>.pfx CN=<NewCertificateName> <Password>

example.....C:\dload>renewcert MRB_report_Build_TemporaryKey.pfx MRB_Report_Build.pfx CN=MRB_Report_Build

Did not use a password because it was not innitaly set up that way....Should end up wth something like the following.....

Certificate's container name is: {5913A143-7918-43A7-A24B-0D3515C4ED50} [39]
CertNameToStr: CN=MRB_Report_Build [20]
Created File: C:\dload\MRB_Report_Build.pfx

5. Copy the new file back to the source folder.
6. Open the project
7. Right click the main project name.. click properties.. go to the Signing Tab
8. Click "Select from File"
9. Pick the new cert and click open

Expiration date should now be set for sometime in 2013.  

Author Comment

ID: 22891544
That worked perfect!!!!

the guys on this board have so much knowledge...

10000 thank yous..

Author Closing Comment

ID: 31513284
Scott ...you are a life/project saver...THANK YOU for taking the time to answer my question

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses
Course of the Month15 days, 5 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question