Thursday 22 October 2009

Error: CryptCertStrToNameW failed => 0x80092023 (-2146885597)

I was following a guide today on WCF and using makecert to create self signed certificates e.g. makecert –n "CN-FakeRootCA” –r –sv FakeRootCA.pvk FakeRootCA.cer

Whenever I tried to create the certificate, I got the error
Error: CryptCertStrToNameW failed => 0x80092023 (-2146885597)

The reason for this was the version of makecert being used was an old version. Even though I was running it from the visual studio 2008 command prompt, the environment mappings were causing it to run version 5.1, instead of version 6.

Using windows search I found that the latest version is at:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin

So you can either makecert from this directory, or alter you path variables.

Friday 16 October 2009

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Invalid character

I started receiving these errors a couple of weeks ago, very randomly, and always reporting a fault with ScriptResource.axd and a strange parameter being passed as "d" as a querystring to it.

After some reading around, I eventually came across the following thread that was dicussing the issue.

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=434997

The end of the thread, dated 12/10/09 states that this is a bug in IE8 that is hopefully going to be fixed soon, and that it doesn't affect the end users view of the site.