This doesn't tell us what is wrong. Are you getting an error? If so what error message, type and stack trace?
Is this crypto algorithm even supported on your OS? Use IISCrypto to identify whether the MD5 crypto algorithm is enabled on your OS version. It is an older version and, as the docs indicate, shouldn't be used. It is possible your OS version has disabled the older algorithms for security reasons.