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

  • SEARCH
  • Home
  • 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 7715767
In Process

The Archive Base Latest Questions

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

Our code-signing certificate expired recently, so I renewed it and just published our first

  • 0

Our code-signing certificate expired recently, so I renewed it and just published our first version that uses the new certificate. Unfortunately, any customer who installs the upgrade loses the user-scoped application settings, and they get reset to the default values. I’m pretty sure that other upgrades always copied the user settings from the previous version, so I’d guess that there’s some problem related to the new certificate. We’re using a purchased certificate, not a test certificate. Our application is a WinForms application that targets .NET 3.5. The certificate authority seems to have changed hands in the three years since we bought the first certificate, so the issuer fields are different.

Is there any way to avoid losing the user settings when you renew a code-signing certificate?

  • 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-01T02:28:12+00:00Added an answer on June 1, 2026 at 2:28 am

    Thanks to some hints from Jirka’s answer, it turned out to be a pretty easy fix. It looks like the user settings framework can see the previous version, but they just didn’t get upgraded for some reason. I used Mitch’s technique for upgrading user settings to manually call Upgrade() the first time I run a new version. A useful trick for testing this upgrade process several times was Jason’s suggestion of copying old versions of the application manifest over the current version.

    It looks like I was fairly lucky. In some scenarios, customers have to completely uninstall and reinstall whenever you renew your certificate.

    RobinDotNet wrote a comprehensive article on certificate expiration and ClickOnce. I found that there is a bug report, but it doesn’t sound very likely to get fixed. It sounds like targeting .NET 4.0 would make this problem go away, but the transition from 3.5 to 4.0 can be a bit tricky.

    One thing that can make the expiry process a bit smoother is to timestamp the signing. That way, you don’t have to renew your certificate and publish a new version before the old certificate expires. The only timestamp server URL I’ve seen mentioned is this:

    http://timestamp.verisign.com/scripts/timstamp.dll

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

Sidebar

Related Questions

Our Java code signing certificates expires in a month and we just renewed it
I am looking for a code signing certificate that will be accepted by Java
I'm tasked with obtaining a code signing certificate. Our application actually consists of 2
Our code uses a lot of system properties eg, 'java.io.tmpdir', 'user.home', 'user.name' etc. We
We've been profiling our code recently and we've come across a few annoying hotspots.
I just saw some code in our code base (and it's OLD code, as
We all know that commenting our code is an important part of coding style
Our code has to run on both SLES9 (old) and an even older version
Our code base has a few decorators that are used extensively. When I create
Our code uses different settings for development and production environments so we were looking

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.