Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No content available - System.Security.Cryptography.CryptographicException: SignatureDescription could not be created for the signature algorithm supplied #339

Closed
TylerJaacks opened this issue May 15, 2017 · 10 comments
Labels
bug The issue relates to the wizard not working or a problem with the generated code. Wizard The issue relates to the wizard rather than the generated code.

Comments

@TylerJaacks
Copy link

When I create a new Windows Template Studio Project, I get a "No content available" in the wizard.

@crutkas
Copy link
Member

crutkas commented May 15, 2017

Is your temp DIR on a different drive than your install of VS? Can you upload the log from your programdata folder in the Window template studio?

This could be #333 and we do have a fix for that.

@nrweber
Copy link

nrweber commented May 15, 2017

I am having the same problem. Fresh install in VS Pro 2017. Here is the error in the Output window...

========== Tracked Exception [20170515 02:05:30.556] ==========
AdditionalMessage: The templates content can't be extracted.
[02:05:30.559 - Error]::Microsoft.Templates.Core.RepositorySynchronizationException: Error syncing templates. Status: 'Adquiring' ---> System.Security.Cryptography.CryptographicException: SignatureDescription could not be created for the signature algorithm supplied.
at System.Security.Cryptography.Xml.SignedXml.CheckSignedInfo(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignature(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignature(X509Certificate2 certificate, Boolean verifySignatureOnly)
at MS.Internal.IO.Packaging.XmlDigitalSignatureProcessor.Verify(X509Certificate2 signer)
at System.IO.Packaging.PackageDigitalSignature.Verify(X509Certificate signingCertificate)
at System.IO.Packaging.PackageDigitalSignature.Verify()
at System.IO.Packaging.PackageDigitalSignatureManager.VerifySignatures(Boolean exitOnFailure)
at Microsoft.Templates.Core.Locations.Templatex.ValidateSignatures(Package package)
at Microsoft.Templates.Core.Locations.Templatex.Extract(String signedFilePack, String targetDirectory)
at Microsoft.Templates.Core.Locations.RemoteTemplatesSource.ExtractContent(String file, String tempFolder)
at Microsoft.Templates.Core.Locations.RemoteTemplatesSource.Adquire(String targetFolder)
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.AdquireContent()
--- End of inner exception stack trace ---
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.AdquireContent()
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.b__24_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.Core.TemplatesRepository.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.UI.ViewModels.MainViewModel.d__74.MoveNext()
System.Security.Cryptography.CryptographicException: SignatureDescription could not be created for the signature algorithm supplied.
at System.Security.Cryptography.Xml.SignedXml.CheckSignedInfo(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignature(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignature(X509Certificate2 certificate, Boolean verifySignatureOnly)
at MS.Internal.IO.Packaging.XmlDigitalSignatureProcessor.Verify(X509Certificate2 signer)
at System.IO.Packaging.PackageDigitalSignature.Verify(X509Certificate signingCertificate)
at System.IO.Packaging.PackageDigitalSignature.Verify()
at System.IO.Packaging.PackageDigitalSignatureManager.VerifySignatures(Boolean exitOnFailure)
at Microsoft.Templates.Core.Locations.Templatex.ValidateSignatures(Package package)
at Microsoft.Templates.Core.Locations.Templatex.Extract(String signedFilePack, String targetDirectory)
at Microsoft.Templates.Core.Locations.RemoteTemplatesSource.ExtractContent(String file, String tempFolder)
at Microsoft.Templates.Core.Locations.RemoteTemplatesSource.Adquire(String targetFolder)
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.AdquireContent()

========== Tracked Exception [20170515 02:05:30.568] ==========
Microsoft.Templates.Core.RepositorySynchronizationException: Error syncing templates. Status: 'Adquiring' ---> System.Security.Cryptography.CryptographicException: SignatureDescription could not be created for the signature algorithm supplied.
at System.Security.Cryptography.Xml.SignedXml.CheckSignedInfo(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignature(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignature(X509Certificate2 certificate, Boolean verifySignatureOnly)
at MS.Internal.IO.Packaging.XmlDigitalSignatureProcessor.Verify(X509Certificate2 signer)
at System.IO.Packaging.PackageDigitalSignature.Verify(X509Certificate signingCertificate)
at System.IO.Packaging.PackageDigitalSignature.Verify()
at System.IO.Packaging.PackageDigitalSignatureManager.VerifySignatures(Boolean exitOnFailure)
at Microsoft.Templates.Core.Locations.Templatex.ValidateSignatures(Package package)
at Microsoft.Templates.Core.Locations.Templatex.Extract(String signedFilePack, String targetDirectory)
at Microsoft.Templates.Core.Locations.RemoteTemplatesSource.ExtractContent(String file, String tempFolder)
at Microsoft.Templates.Core.Locations.RemoteTemplatesSource.Adquire(String targetFolder)
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.AdquireContent()
--- End of inner exception stack trace ---
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.AdquireContent()
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.b__24_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.Core.Locations.TemplatesSynchronization.d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.Core.TemplatesRepository.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Templates.UI.ViewModels.MainViewModel.d__74.MoveNext()

@crutkas crutkas changed the title Creating a Windows Template Studio Project "No content available". No content available - System.Security.Cryptography.CryptographicException: SignatureDescription could not be created for the signature algorithm supplied May 15, 2017
@crutkas crutkas added this to the 1.01 - Critical Bug Fixes milestone May 15, 2017
@crutkas crutkas added bug The issue relates to the wizard not working or a problem with the generated code. Wizard The issue relates to the wizard rather than the generated code. labels May 15, 2017
@crutkas
Copy link
Member

crutkas commented May 15, 2017

@nrweber thanks for the stack trace.

@crutkas
Copy link
Member

crutkas commented May 16, 2017

@nrweber are there any other configurations to VS or your system? Offline on initial start, wifi that could have hiccuped?

First time i've seen this so unsure how to repro the condition.

@sibille
Copy link
Collaborator

sibille commented May 16, 2017

@nrweber Could you send us your windows version, visual studio version and a screenshot of the installed .NET frameworks from Programs and Features to track this down?
Thanks

@fcharlie
Copy link

If my temporary directory is set to another partition sush as D:\App\TEMP, this error occurs.

https://github.com/Microsoft/WindowsTemplateStudio/blob/master/code/src/Core/Locations/RemoteTemplatesSource.cs

MoveContent maybe not work

@crutkas
Copy link
Member

crutkas commented May 17, 2017

@fcharlie we have a fix checked in for that, and that issue is being tracked in #333. This is a different issue.

@nrweber
Copy link

nrweber commented May 17, 2017

I was using windows 7. I think from reading around that this is only targeted for windows 10 right now.

I installed this on my Windows 10 computer and everything works fine.

@mrlacey
Copy link
Collaborator

mrlacey commented May 17, 2017

Wow. looks like we need to verify the extension can't be installed on unsupported platforms. Or at least warn if trying to use it on a version of the OS before Windows 10.
I hadn't realized how many supported platforms there are for VS 2017

@crutkas
Copy link
Member

crutkas commented May 17, 2017

@TylerJaacks i'm going to close this out based on @nrweber. I opened up #357 to account for non-supported Windows versions.

We need logs / system information to see what configuration you were in.

@crutkas crutkas closed this as completed May 17, 2017
@ghost ghost locked as resolved and limited conversation to collaborators Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug The issue relates to the wizard not working or a problem with the generated code. Wizard The issue relates to the wizard rather than the generated code.
Projects
None yet
Development

No branches or pull requests

6 participants