exception call by ".ctor" with 1 argument

Jun 20, 2014 at 12:10 PM
Hi there,

i´m running into an error getting crl nextupdate info.
I would like to get the expiration date from our offline ca.
I downloaded our crl and run the get.crl command against.

I get an erro thrown with:
New-Object : Exception calling ".ctor" with "1" argument(s): "Object reference not set to an instance of an object."
In C:\windows\system32\windowspowershell\v1.0\Modules\PSPKI\Client\Get-CertificateRevocationList.ps1:23 Zeichen:4
  • New-Object Security.Cryptography.X509Certificates.X509CRL2 -ArgumentList $Pat ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
    • FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
calling a stacktrace brings me this:

at System.Security.Cryptography.X509Certificates.X509CRL2.get_type()
at System.Security.Cryptography.X509Certificates.X509CRL2.m_import(Byte[] rawData)
at System.Security.Cryptography.X509Certificates.X509CRL2..ctor(String path)

Any idea for thisß

Thanks in advance
Jun 22, 2014 at 9:44 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jun 22, 2014 at 9:54 AM
This is a bug in the code. This is fixed in an internal build. See working item for an updated DLL file.