Default Certificate could not be created. Publish aborting.

dstern27 1 Reputation point
2022-09-09T19:36:31.987+00:00

I have been tasked to fix an old VB.NET project. I was succesfully able to get all the forms loaded and the project running. When I try to deploy the project I get "default certificate could not be created. publish aborting." I also started VS.NET in admin mode and got the same errors. When I go to Properties > Signing > Sign the Click-Once manifest, I try to create a test Certificate and I get "error: The compute must be trusted for delegation and the current user account must be configure to allow delgation". I went into gpedit.msc > Computer Configuration > Security Settings > local policies > User Rights Assignment and have added my Administrator account to "Enable Computer Account and user account to be trusted for delegation" and added my admin account. I am still getting the same error. Thanks in advance for any assistance you can give.

Developer technologies | Windows Forms
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Microsoft 365 and Office | Development | Microsoft 365 Publishing
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,926 Reputation points
    2022-09-12T20:14:43.723+00:00

    Hello there,

    You need to tell the Publisher where to get the Certificate from:

    Go to Project-> Properties
    Go to the tab named “Signing”
    Check the Checkbox labeled ‘Sign the ClickOnce manifests’. This enables the section where you can point to a certificate.
    Click on the button labeled ‘Select From File…”. In the directory listing, choose a key file (.pfx) and Open.
    From the step 3, click the button labeled “More Details…”. This will display the certificate you’ve just selected.
    Click “Install Certificate” and follow the prompts.
    Save and Publish your Solution.

    I hope this information helps. If you have any questions please let me know and I will be glad to help you out.

    --------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.