xsharp.eu • Issue with DevExpress Control
Page 1 of 1

Issue with DevExpress Control

Posted: Sun Nov 24, 2024 2:37 pm
by TrevorLE
Hi Guys

I have an issue with a DevExpress control we have just started using called PivotGridControl. I have created a test app in the zip in the drop box link below.

In my test app I have created a winform and added a TableLayoutPanel control to it and added the Devexpress PivotGridControl to the bottom section of the tablelayoutpanel control. It displays correctly initially and then if I say change the Docking property on the PivotGridControl to be fully docked in that section it behaves as expected until you save and close the winform designer. When you try to re-open the designer it gets the message saying that there is an error trying to open the window and that the PivotGridControl has a duplicate declaration, which it doesn't. It will allow me to open the window if I ignore the warning but any property changes to the control are then lost.

https://www.dropbox.com/scl/fi/dl7dakdg ... wdf5n&dl=0

Please let me know if you need anything else from me to check this out.

thanks
Trevor

Re: Issue with DevExpress Control

Posted: Sun Nov 24, 2024 2:39 pm
by TrevorLE
Sorry - I also meant to add that I am using VS 17.11.5 with X# 2.20.0.3

thanks
Trevor

Re: Issue with DevExpress Control

Posted: Sun Nov 24, 2024 11:03 pm
by Chris
Hi Trevor,

Seems to be working well here, maybe it was a problem in 2.20 that is already fixed in our current build.
But I will install back 2.20 to see if it is reproducible with it, to be sure.

Re: Issue with DevExpress Control

Posted: Mon Nov 25, 2024 1:30 pm
by Chris
Hi Trevor,

It actually works fine here also in 2.20. Please try again with 2.21 just in case, and if the problem persists, we'll need to investigate further. Does it happen in all of your development machines?

Re: Issue with DevExpress Control

Posted: Tue Nov 26, 2024 7:24 pm
by Chris
Hi Trevor,

With the help of Fabrice I managed to reproduce the problem at least once here, needed to do a rebuild before closing and reopening the form. Just to make sure it's the same problem, can you please confirm that if you close and reopen the solution, then the form opens again fine in the designer?

Also in some cases I get an error when building your sample, it is related to the license resource:

Code: Select all

Exception occurred creating type 'DevExpress.XtraPivotGrid.PivotGridControl, DevExpress.XtraPivotGrid.v22.2, Version=22.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' System.TypeInitializationException: The type initializer for 'DevExpress.XtraEditors.ComponentBase' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'DevExpress.Data.Desktop.v22.2, Version=22.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The system cannot find the file specified
I don't have this file here, but can you please add a reference to DevExpress.Data.Desktop.v22.2 n your project, does it now make any difference?

Re: Issue with DevExpress Control

Posted: Mon Dec 02, 2024 9:59 pm
by TrevorLE
Hi Chris

thanks for taking a look at it. I have added the DevExpress.Data.Desktop.V22.2 to the project and it still gets the same error when I re-open the winform in the app per the screen shot attached. One interesting thing though is that I added the same project to my laptop which I only use when travelling that has the same version of X# 2.20.0.3 on it and it doesnt have the issue on that machine when using the exact same project downloaded from source control that my main machine has the issue on. I have put a fresh copy of the project in the zip file at the below dropbox link - is there a way for me to trouble shoot the issue on my main machine to see why the winform gui designer thinks there is a "Duplicate declaration of member 'pivotGridControl1'" when trying to re-open the window?

https://www.dropbox.com/scl/fi/dl7dakdg ... c06mt&dl=0

cheers

Trevor

Re: Issue with DevExpress Control

Posted: Tue Dec 03, 2024 12:13 pm
by robert
Trevor,

I found the issue.

Can you download the file https://1drv.ms/u/c/0350a2c78f49da7d/EQ ... Q?e=0JgT2f
and extract the 2 files in that zip to the "c:\Program Files (x86)\XSharp\MsBuild" folder.
Please make sure that you make a backup of the MsBuild folder first and that you unblock the ZIP before unpacking it.
This should fix the issue that a Rebuild causes the form not to load after a Recompilation.

Robert

Re: Issue with DevExpress Control

Posted: Tue Dec 03, 2024 12:30 pm
by TrevorLE
Robert

thank you very much - you are a legend - that now works as expected when opening the window.

When do you think this change will be included in a new release version as I was going to update to the latest version soon but may wait if this isn't too far away?

thanks

Trevor

Re: Issue with DevExpress Control

Posted: Tue Dec 03, 2024 12:51 pm
by robert
Trevor,
If you install 2.21.0.5 then you will still need to update this DLL afterwards.
And I think we'll release a 2.21.0.6 installer for FOX subscribers around Christmas.

Robert

Re: Issue with DevExpress Control

Posted: Tue Dec 03, 2024 1:27 pm
by TrevorLE
Thanks for that Robert.

I am away at present, so we will wait for the .6 release and then upgrade to that once released.

cheers
Trevor