Jag får följande fel när jag försöker logga in på min sida. Det fungerar när jag kör den lokalt och det fungerar i firefox men inte i Internet explorer. Det har fungerat men slutade att fungera i helgen, jag har inte gjort några ändringar i koden.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Någon som vet vad som kan vara fel? Kan det vara något på webhotellet som ändrats?
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Public Shared Function Encrypt(ByVal cleanString As String) As String
Dim clearBytes As [Byte]()
clearBytes = New UnicodeEncoding().GetBytes(cleanString)
Dim hashedBytes As [Byte]() = CType(CryptoConfig.CreateFromName("MD5"), HashAlgorithm).ComputeHash(clearBytes)
Dim hashedText As String = BitConverter.ToString(hashedBytes)
Return hashedText
End Function
På en annan sida där jag använder samma kod så fungerar det för mig i både Ie och Firefox men inte i Ie för andra personer.
272 ms totalt · 4 externa anrop · v20260731065814-full.1dc6f849