Component creation time takes more than 15 seconds. What should I do?

There is an issue in older versions of .NET Framework on how X509Utils.OidToAlgId() and CryptoConfig.MapNameToOID() methods interact. This leads to the long work of the cryptographic algorithm that we are using in our licensing mechanism. In this case when you call the constructor of our licensed component you will have a long delay. In order to avoid it you need to add the following information into you configuration file:

<configuration>
<mscorlib>
<cryptographySettings>
<oidMap>
<oidEntry OID="1.2.840.113549.2.5" name="1.2.840.113549.2.5"/>
<!-- MD5 -->
<oidEntry OID="1.3.36.3.2.1" name="1.3.36.3.2.1"/> <!-- RIPEMD160 -->
<oidEntry OID="1.3.14.3.2.26" name="1.3.14.3.2.26"/> <!-- SHA1 -->
<oidEntry OID="2.16.840.1.101.3.4.2.1"
name="2.16.840.1.101.3.4.2.1"/> <!-- SHA256 -->
<oidEntry OID="2.16.840.1.101.3.4.2.2"
name="2.16.840.1.101.3.4.2.2"/> <!-- SHA384 -->
<oidEntry OID="2.16.840.1.101.3.4.2.3"
name="2.16.840.1.101.3.4.2.3"/> <!-- SHA512 -->
</oidMap>
</cryptographySettings>
</mscorlib>
</configuration>
LicenseManager ReportManager

Add Feedback