Skip to content

Crash decrypting strings encrypted in different environment #224

@aarnold-sd68

Description

@aarnold-sd68

Please make sure to fill out this form completely, and attach your program logs (set to Debug setting). You can delete this line.

  • Searched to see if this issue exists
  • [ X] Completed below form
  • [ X] Attached debug log file
  • Copy output in File -> UPS Variable

**WinNUT Version: 2.3..9437.23054
**Windows OS Version: Server 2025

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to - Run on Server 2025 seems to crash, on first run.

Expected behavior
Program should load the GUI

Additional context
Add any other context about the problem here.

CrashReport_2025-11-10T10.56.20.txt

@gbakeman's Addendum

Exception

{
  "ClassName": "System.Security.Cryptography.CryptographicException",
  "Message": "Key not valid for use in specified state.
",
  "Data": null,
  "InnerException": null,
  "HelpURL": null,
  "StackTraceString": "   at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
   at WinNUT_Client_Common.SerializedProtectedString.Unprotect(String protectedString) in C:\Users\Glen\Repositories\nutdotnet\WinNUT-Client\WinNUT_V2\WinNUT-Client_Common\SerializedProtectedString.vb:line 75
   at WinNUT_Client_Common.SerializedProtectedString.ToString() in C:\Users\Glen\Repositories\nutdotnet\WinNUT-Client\WinNUT_V2\WinNUT-Client_Common\SerializedProtectedString.vb:line 84
   at WinNUT_Client.WinNUT.UPS_Connect(Object retryOnConnFailure) in C:\Users\Glen\Repositories\nutdotnet\WinNUT-Client\WinNUT_V2\WinNUT-Client\WinNUT.vb:line 370
   at WinNUT_Client.WinNUT.WinNUT_Shown(Object sender, EventArgs e) in C:\Users\Glen\Repositories\nutdotnet\WinNUT-Client\WinNUT_V2\WinNUT-Client\WinNUT.vb:line 250
   at System.Windows.Forms.Form.OnShown(EventArgs e)
   at System.Windows.Forms.Form.CallShownEvent()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions