I am making a license key system in Win-forms (with C# in Visual Studio) and I ran into an error when executing the code4
The Error pictures:
The project is inspired by an License key system with the .WPF framework (Works fine on .WPF). Can someone help me fixing the error?
The full source code is available on github: LicenseKey.NET-C#
The error is originating from the following line:
using (StreamReader reader = new StreamReader(stream))
System.Argument Null Exception: Value cannot be null. Parameter name: stream at System.I0.StreamReader.ctor(Stream stream, Encoding encoding. Boolean dete at System. IO.StreamReader..ctor(Stream stream) at QP _Helpers.QP_Helpers. IsLicensed (String key, String resourceName) in C: \User at LicenseKey.NET buy btn_register _Click (Object sender, Event Args e)