Click here to Skip to main content
15,921,295 members

Comments by Tijn Rodrigo (Top 6 by date)

Tijn Rodrigo 31-Mar-22 11:35am View    
The code is valid, the original project is an different framework (.WPF)

The code is inspired by this one: https://github.com/QuasimodoPrograms/Database-Content-Aligner/tree/main/DBelign/DBelign
Tijn Rodrigo 31-Mar-22 10:15am View    
I try'd to run it in the debugger and got the same results.
Tijn Rodrigo 31-Mar-22 9:06am View    
The debugger in Visual studio:

'LicenseKey.NET.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'LicenseKey.NET.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\tijnr\source\repos\LicenseKey.NET\bin\Debug\LicenseKey.NET.exe'. Symbols loaded.
'LicenseKey.NET.exe' (CLR v4.0.30319: LicenseKey.NET.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'LicenseKey.NET.exe' (CLR v4.0.30319: LicenseKey.NET.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'LicenseKey.NET.exe' (CLR v4.0.30319: LicenseKey.NET.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'LicenseKey.NET.exe' (CLR v4.0.30319: LicenseKey.NET.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'LicenseKey.NET.exe' (CLR v4.0.30319: LicenseKey.NET.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'LicenseKey.NET.exe' (CLR v4.0.30319: LicenseKey.NET.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'System.ArgumentNullException' in mscorlib.dll
An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
Value cannot be null.

'LicenseKey.NET.exe' (CLR v4.0.30319: LicenseKey.NET.exe): Loaded 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Remote Debugger\x86\Runtime\Microsoft.VisualStudio.Debugger.Runtime.Desktop.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The program '[16480] LicenseKey.NET.exe' has exited with code 4294967295 (0xffffffff).

Details:

System.ArgumentNullException
HResult=0x80004003
Message=Value cannot be null.
Parameter name: stream
Source=mscorlib
StackTrace:
at System.IO.StreamReader..ctor(Stream stream, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean leaveOpen)
at System.IO.StreamReader..ctor(Stream stream)
at QP_Helpers.QP_Helpers.IsLicensed(String key, String resourceName) in C:\Users\tijnr\source\repos\LicenseKey.NET\QP_Helpers.cs:line 38
at LicenseKey.NET.buy.btn_register_Click(Object sender, EventArgs e) in C:\Users\tijnr\source\repos\LicenseKey.NET\buy.cs:line 52
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at Syst
Tijn Rodrigo 31-Mar-22 8:52am View    
I added the Source code, link to the github repo, sorry for this.

I normally don't ask things on forums, normally i can get it fixed myself, now i was unable to do this myself.
Tijn Rodrigo 31-Mar-22 8:49am View    
Deleted
I added the Source code, link to the github repo, sorry for this.

I normally don't ask things on forums, normally i can get it fixed myself, now i was unable to do this myself.