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.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,839 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,932 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
657 questions
Microsoft 365 Publishing
Microsoft 365 Publishing
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line. Publishing: The process of preparing, producing, and releasing content for distribution or sale.
598 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,396 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.