Problems with ....?

Hello,

So far I have used the controls for .Net Framework 4.x, which do not require a licence. Now I have switched to .Net8 and have to use the NuGet packages which require a licence.

The link https://help.syncfusion.com/windowsforms/licensing/how-to-register-in-an-application describes how to register the licence in Program.cs.

Now I am not creating a stand-alone application, but add-ins for a CAD programm (Autodesk Inventor 2025). 

The add-in provides a button on the UI that opens a form when clicked.

It looks something like this:

       private void CmdBtnTEST_OnExecute(NameValueMap Context)
       {
           WinFormsApp_Net8.SfForm1 form1 = new();
           form1.ShowDialog();
       }

How can I register the Licence?

In the meantime, I have found out that the problem goes much deeper. It is apparently not a licence problem, as initially thought.

Clicking the button fires CmdBtnTEST_OnExecute Method above, and it opens the form, as long as it is a standard System.Windows.Forms Form with controls out of the box.

If I now place any Syncfusion control on the form, the CmdBtnTEST_OnExecute event is no longer fired in the AddIn.

If I delete the form, create a new standard form and use it, the event is fired again.

I have no idea what's going on and no idea what the reason could be.

Maybe someone has an idea what could be the cause.

Thanks,

Christoph


I added a picture to make it more clear. Without a solution, I would have to rework an AddIn with +70 forms and 2-300 controls and convert them back into standard winforms elements.

Image_3038_1717951747066


12 Replies

SB Sweatha Bharathi Syncfusion Team June 10, 2024 09:08 AM UTC

Hi Christoph,


We have reviewed your scenario and suspect that the issue occurs because, when loading the Syncfusion controls, the licensing popup is shown, which prevents the form from opening. If you are referring to the assembly reference, please check that the licensing DLL is included. If you are using the NuGet package, install the licensing package and confirm whether the issue is resolved.



CH Christoph June 10, 2024 02:33 PM UTC

Hi  Sweatha Bharathi,

Thanks for reply.

My first assumption was also that it is a licence problem. 

Image_6355_1718028301204

As I use .net 8 throughout, I have downloaded the NuGet package and added code to register the licence. 

I have attached a video to show it more clearly. This shows the program sequence when you click on the button that the AddIn provides. After adding the Licence register code, the event that is triggered by the click is no longer fired.

Thanks

Christoph




Attachment: 20240610_161839_bbeccc5c.7z


SB Sweatha Bharathi Syncfusion Team June 11, 2024 02:05 PM UTC

Hi Christoph,


We have reviewed the video you provided. Can you clarify which control you are loading into the form and where the Syncfusion control should be declared? In a previous update, you mentioned that when you load the Syncfusion control, the event is not triggered, but in your video, no Syncfusion control is loaded. Please provide details about the control and its declaration. This information will help us proceed further.


Furthermore, declaring the Syncfusion license code in the button click event is not the recommended approach. You should register the licensing code in the static void Main method before calling the Application.Run() method in C#. Refer the below link for further reference.



Link : https://help.syncfusion.com/windowsforms/licensing/how-to-register-in-an-application









CH Christoph June 11, 2024 04:49 PM UTC

Thanks for reply.

First, I do not have a static void main nor a Application.Run Method. 

I load the form from an AddIn that runs in Autodesk Inventor 2025. How can I provide a licence in this situation?

Earlier versions supported .Net Framework 4.8 and I didn't have these problems. Now with Inventor 2025 only .Net8 is supported.

As described in my initial post, Inventor loads an AddIn and provides a button. An event is fired when this button is clicked.

See "private void CmdBtnTEST_OnExecute" in the video.

private void CmdBtnTEST_OnExecute(NameValueMap Context)
{
//WinFormsApp_Net8.StandardForm standardForm = new();
   //standardForm.ShowDialog();

   //Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(...");
   //WinFormsApp_Net8.SfForm1 form1 = new();
   //form1.ShowDialog();
}

CmdBtnTEST_OnExecute is fired, when I uncomment the standard form.

CmdBtnTEST_OnExecute is NOT fired, when I uncomment the licence line or the SfForm1 (which is derived from SfForm).

When I place a SyncFusion Control on a standard form, an Exception is thrown in the forms constructor, on InitializeComponent():

System.IO.FileNotFoundException: "Could not load file or assembly 'Syncfusion.Core.WinForms, Version=25.2.7.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'.

This happens even though I have loaded the Nuget packages.

I uploaded a new Video and VS-Project. Perhaps you can do something with it. I am completely at a loss.

Thanks

Christoph




Attachment: Video_d60ae8e9.7z


CH Christoph June 11, 2024 04:49 PM UTC

The VS-Project.


Attachment: Inventor_2025_AddIn_f3c3579b.7z


SB Sweatha Bharathi Syncfusion Team June 12, 2024 02:14 PM UTC

Hi Christoph,

We have reviewed your provided video. In your video, you are dragging the SfButton. You need to install the Syncfusion NuGet packages for the control you are using. Refer to the documentation below to determine which NuGet packages are needed for each control. Kindly check if the Core.WinForms NuGet packages are referred to properly.

Based on your query, the event is not triggered when loading the Syncfusion control. We need time to validate this. Currently, we are installing the Autodesk Inventor software. We need time to install and check your scenario with your provided sample. We will provide a further update on or before June 18, 2024.

Control dependencies | Windows Forms | Syncfusion

















CH Christoph June 13, 2024 09:34 AM UTC

Thank you very much for your efforts.

From my point of view, all necessary NuGet packages are installed.

Image_8389_1718270768652

Solution >  Manage NuGet Packages

Image_5686_1718270898051

What am I missing?

If you need any support regarding inventor and the addin, i will be happy to help you at any time.

Christoph



MA Manikanda Akash Munisamy Syncfusion Team June 14, 2024 02:26 PM UTC

Hi Christoph,


Thank you for your input. We will check and share further details on June 18, 2024, as mentioned earlier. We will seek your help if needed regarding Inventor and addin.


Regards,
Manikanda Akash



GS Gokul S Subramani Syncfusion Team June 18, 2024 03:41 PM UTC

Hi Christoph,


We regret the inconvenience. Currently we are analyzing the reported scenario, we need time to validate and will provide an update on or before June 20, 2024.

Regards,

Gokul S





GS Gokul S Subramani Syncfusion Team June 20, 2024 12:51 PM UTC

Hi Christoph,


We regret the inconvenience. We have used the trial version of Autodesk Inventor software 2025. Unfortunately, the trial version did not work properly. Could you please share your software license for Autodesk Inventor to help us analyze the issue? This will be helpful for diagnosing the problem and providing a solution as soon as possible.


Regards,

Gokul S



CH Christoph June 24, 2024 08:07 PM UTC

Hi Gokul,

I can provide a licence for testing purposes.

Please use the email address I have stored in my account to contact me.

I can also organise a Teams session in which I set up the add-in and show you the problem. My time zone is UTC+2 Germany.

Regards

Christoph



MA Manikanda Akash Munisamy Syncfusion Team June 25, 2024 03:06 PM UTC

Hi Christoph,

Please share your technical requirements in detail so that we can proceed further with the meeting. If you need to share any confidential details, please create a support ticket using the link below:

https://support.syncfusion.com/support/tickets/create

Regards,
Manikanda Akash


Loader.
Up arrow icon