Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8417913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:10:25+00:00 2026-06-10T02:10:25+00:00

Having trouble with ClickOnce manifests and our build server. We have a .p12 code

  • 0

Having trouble with ClickOnce manifests and our build server.

We have a .p12 code signing certificate (which is the same as a .pfx). I can assign this certificate on a developer machine in:

Visual Studio->Project->Properties->Signing->Select from file, then
enter the password for the certificate.

Everything builds/publishes fine locally.

However when checking in all files to our TFS build server the automatic build generates this error:

Cannot import the following key file: . The key file may be password
protected. To correct this, try to import the certificate again or
import the certificate manually into the current user’s personal
certificate store.

Is there a way to pass in the password to the build definition so that the built assembly is signed?

Also each developer who does a ‘get latest’ currently needs to re-sign the assembly with the correct password each time, is there a better way?

Note:

  • The build server does not have Visual Studio.
  • I have tried manually importing the certificate, under the account that the build runs on, to the personal certificates folder.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:10:27+00:00Added an answer on June 10, 2026 at 2:10 am

    This is what fixed my problem:

    1 ) Logon as the TFS build controller account and install the certificates manually there.

    2) With some older certificates there can be a problem with the root authorisation (chaining), in this case download the root certificate from your certificate issuer, and possibly an intermediate certificate.

    3) Make sure the computer/virtual machine that is running the service “Visual Studio Team Foundation Build Service Host” is running under an account that has the certificates installed. In our case this is the same as the build controller account.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having trouble with each function... Will try to explain by example... In my code,
Having trouble with an .htaccess file on WAMP. Works on the live server, but
Having trouble accessing javascript code in a mixed html/js ajax response. jQuery ajax doc
Having trouble with the following segment of code. I'm getting a parameter count mismatch.
Having Trouble with Entity Framework. I have been populating EntityReferences with an EntityKey inorder
Having trouble with Grails Domain Classes. I am overriding the constructor to build the
i am using VS 2010 and i am having trouble with clickonce deployment. My
Having trouble with some select statements. I have 2 tables. sms_log and sms_messages. sms_log
Having trouble where I think I need to provide most of my code to
Having trouble to start a new activity after progressbar have loaded. Im getting stucked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.