Posted 19 years ago
by Boyd
-
Sr. Software Developer,
Patterson Consulting, LLC
I was recently plagued by some odd behavior in the designer for some UIStudio controls as well as controls from other vendors. Designed controls would disappear from my forms or configurations were not being restored from the previous design session. The issue was hard to track down, but, with the excellent help of Actipro Support, came across the solution.
The problem was that I was setting CopyLocal to True for the DLL references to 3rd-party controls used in my application. Normally this is okay, but these 3rd-party control DLL's were also installed in the Global Assembly Cache. This resulted in two copies of the same DLL being used by the designer for loading/saving data, and that prevents data from being properly converted between classes.
The solution... set CopyLocal to False for any assemblies used in the designer that are also installed in the GAC. Alternatively, you could remove the assmeblies from the GAC if it is not necessary for them to be there.
This is just an issue with Visual Studio's designer, and is not an issue with the excellent controls provided by Actipro Software. I wanted to share this experience with others to hopefully prevent the loss of data and time from designer issues in Visual Studio.
The problem was that I was setting CopyLocal to True for the DLL references to 3rd-party controls used in my application. Normally this is okay, but these 3rd-party control DLL's were also installed in the Global Assembly Cache. This resulted in two copies of the same DLL being used by the designer for loading/saving data, and that prevents data from being properly converted between classes.
The solution... set CopyLocal to False for any assemblies used in the designer that are also installed in the GAC. Alternatively, you could remove the assmeblies from the GAC if it is not necessary for them to be there.
This is just an issue with Visual Studio's designer, and is not an issue with the excellent controls provided by Actipro Software. I wanted to share this experience with others to hopefully prevent the loss of data and time from designer issues in Visual Studio.