'CreateObject("System.Security.Cryptography.MD5CryptoServiceProvider") Fails on home PC works on Work PC
The following Single line of executable code;
.. Works on my work PC (Win10 Pro 21H1)
.. Crashes on my home laptop (Win 10 Pro 21H1)
Exact same version of Excel on each machine and signed in using the same account
Public Sub Tester()
Dim oEnc As Object
Set oEnc = CreateObject("System.Security.Cryptography.MD5CryptoServiceProvider")
End Sub
Error as per image below
I don't recall having to add a specific Reference in VBA Project to get this to work (and don't see any in the references list either). Any help appreciated
Solution 1:[1]
On Windows 10 you will have to activate the feature .NET Framework 3.5 (includes .NET 2.0 and 3.0)
.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Unhandled Exception |