Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Evaluation License Key (Read 4036 times)
audi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 21st, 2022
Evaluation License Key
Jan 6th, 2023 at 10:20am
Print Post  
Hi,

I would like to get a evaluation license key to test in my deployed program.

The difficulty that I faced is after I changed to use Nuget Package MindFusion.Diagramming version 6.8.4, the program works fine when I run in Visual Studio.

However, after it's deployed via Azure, when I navigate to UI which use MindFusion.Diagramming, it will freeze and stop working. I wonder if this is caused by invalid license key.

I'm aware that our old license key might invalid for latest version 6.8.4. I just want to ensure that the root cause is due to invalid license. Is there any other way to verify this issue?

Regards,
Yap
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Evaluation License Key
Reply #1 - Jan 6th, 2023 at 1:12pm
Print Post  
Hi,

The control does not support evaluation license keys at this time. Anyway it should not be decoding the key string until you create 20 items in the diagram, so you could try investigating by creating only a few nodes or showing an empty diagram.

Check if the Windows Event Viewer shows anything useful under Windows Logs -> Application category. Error events by ".NET Runtime" source should be showing the type of unhandled exception. I imagine freeze before crash could happen while searching for a missing assembly, or while overflowing the stack.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
audi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 21st, 2022
Re: Evaluation License Key
Reply #2 - Jan 9th, 2023 at 6:46am
Print Post  
Hi Slavcho,

Unfortunately, there is no .NET Runtime events. I only found the Application Hang error message which did not tell the root cause.
(Kindly refer to attachment)

Is there any other users also face this same issue when using old license key/invalid license key/no license key with Nuget Package?

Besides that, when using nuget package, how is it going to validate the license in my deployed program? How am I going to know if my license is valid? Because there is no error during development but it freeze after deployment.

  

Screenshot_2023-01-09_142109.png ( 26 KB | 61 Downloads )
Screenshot_2023-01-09_142109.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Evaluation License Key
Reply #3 - Jan 9th, 2023 at 4:36pm
Print Post  
Hi,

If you've just now started using the nuget package, maybe check if your installer deploys all the mindfusion.*.dll assemblies you are seeing copied to output folder when running on the development machine.

You could try running this and check logs to see if it's assembly-not-found exception or a different problem -

Code
Select All
try
{
	LicenseManager.AddLicense("your key");
	Debug.WriteLine(LicenseManager.CheckLicense(
		new DateTime(2022, 10, 16), "MindFusion.Diagramming.WinForms"));

	var view = new DiagramView();
	Controls.Add(view);
}
catch (Exception ex)
{
	// log exception details to file
} 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
audi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 21st, 2022
Re: Evaluation License Key
Reply #4 - Jan 10th, 2023 at 3:07am
Print Post  
Hi Slavcho,

I think I get the error message when the program freeze somehow. Kindly refer the attachment.

I remembered last time I did remove some of the unused .dll in the packages such as MindFusion.Common.WinForms.dll. Could this be the root cause of this issue?

Regards,
Yap
  

2023-01-10_11_04_55.png ( 9 KB | 57 Downloads )
2023-01-10_11_04_55.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Evaluation License Key
Reply #5 - Jan 10th, 2023 at 7:17am
Print Post  
Hi Yap,

Older versions might have worked without it, but now DiagramView implements interface from the common.winforms assembly, so the CLR will try to load it when instantiating the view.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
audi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 21st, 2022
Re: Evaluation License Key
Reply #6 - Jan 10th, 2023 at 10:30am
Print Post  
Hi Slavcho,

After I remain the nuget reference, the program still freezing but with different error message. Kindly refer attachment.

Could this be the proof of invalid license key issue?
  

2023-01-10_18_25_15.png ( 5 KB | 54 Downloads )
2023-01-10_18_25_15.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Evaluation License Key
Reply #7 - Jan 10th, 2023 at 11:04am
Print Post  
Hi,

Missing assemblies have nothing to do with license key. Make sure your installer deploys all mindfusion*.dll files from project's bin\release output.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Evaluation License Key
Reply #8 - Jan 11th, 2023 at 9:20am
Print Post  
Verify your installer isn't getting older assemblies from a locally installed diagram distribution - then the executable being compiled against newer assembly versions from nuget could show errors like that.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
audi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 21st, 2022
Re: Evaluation License Key
Reply #9 - Jan 11th, 2023 at 10:42am
Print Post  
Thanks Slavsho, I will discuss with the respective team to further decide on license purchasing.
  
Back to top
 
IP Logged
 
audi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 21st, 2022
Re: Evaluation License Key
Reply #10 - Jan 17th, 2023 at 9:47am
Print Post  
Hi Slavsho,

Refer to your reply earlier,
Quote:
Older versions might have worked without it, but now DiagramView implements interface from the common.winforms assembly, so the CLR will try to load it when instantiating the view.


In the latest version, besides the MindFusion.Common.WinForms.dll that I need to deploy, is there any other related .dll will implements interface from other assembly?

The attachment are the files that we currently deploy in older version.
  

dlls_.png ( 4 KB | 49 Downloads )
dlls_.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Evaluation License Key
Reply #11 - Jan 17th, 2023 at 2:01pm
Print Post  
Hi Yap,

It's also implementing some interfaces from MindFusion.Barcodes.dll now, used to draw BarcodeNodes. If you are targeting .NET 5+, running "dotnet.exe YourApp.dll" from command line should report the names of missing assemblies,

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
audi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 21st, 2022
Re: Evaluation License Key
Reply #12 - Jan 18th, 2023 at 2:12am
Print Post  
Hi Slavcho,

Our application is using .NET Framework 4.8. I think the command line doesn't work for me. (Kindly refer to attachment).

For the MindFusion.Barcodes.dll, if our application didn't use this. Will it still hit error?

Regards,
Yap

  

2023-01-18_10_03_15.png ( 17 KB | 50 Downloads )
2023-01-18_10_03_15.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3148
Joined: Oct 19th, 2005
Re: Evaluation License Key
Reply #13 - Jan 18th, 2023 at 7:03am
Print Post  
Hi Yap,

For .NET 4 you can use the Assembly Binding Log Viewer tool to figure out what missing assemblies stop the executable from loading -

https://learn.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-b...

Yes, you must also install the barcodes assembly at this time. We'll try to reduce the number of assemblies for next release.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
audi
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 12
Joined: Oct 21st, 2022
Re: Evaluation License Key
Reply #14 - Feb 17th, 2023 at 7:32am
Print Post  
Hi Slavcho,

Our company has purchased the license and to apply the license key in our application using MindFusion.Licensing.LicenseManager.AddLicense() function.

I would like to know if this function will only need to call once when the program runs or it should be called each time the before the MindFusion.Diagramming.DiagramView control is initialized?

The attachment is the implementation to apply the license key.

Regards,
Yap
  

control.png ( 23 KB | 44 Downloads )
control.png
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint