Problem
Developed Using devexpressProgramCan run normally on the development machine and cannot run on other machines.
Solution
I searched the internet and found that the cause was the lack of devexpress. Data. v11.2.dll and devexpress. utils. v11.2.dll in Gau. For reference, the registration file was slightly modified as follows:
Version: v11.2.11.0
Registration file:
@ Echo offgacutil -U devexpress. Data. v11. 2 Mkdir % Windir % \ Assembly \ gac_msil \ devexpress. Data. v11. 2 \ 11.2 . 11 . 0 _ b88d1754d700e49acopy devexpress. Data. v11. 2 . Dll % WinDir % \ Assembly \ gac_msil \ devexpress. Data. v11. 2 \ 11.2 . 11 . 0 _ b88d1754d700e49agacutil -U devexpress. utils. v11. 2 Mkdir % Windir % \ Assembly \ gac_msil \ devexpress. utils. v11. 2 \ 11.2 . 11 . 0 _ b88d1754d700e49acopy devexpress. utils. v11. 2 . Dll % WinDir % \ Assembly \ gac_msil \ devexpress. utils. v11. 2 \ 11.2 . 11 . 0 _ b88d1754d700e49aecho ' OK ' Pause
TIPS: change the design to version to your own version.
After registration, other DLL used in the program can be directly placed under the execution folder to reference
Example
My demo is also a skin replacement demo found on the Internet. The release folder of my project contains the following:
Among them, devexpress. Data. v11.2.dll and devexpress. utils. v11.2.dll are the DLL to be registered.
Devexpress. bonusskins. v11.2.dll and devexpress. xtraeditors. v11.2.dll are the DLL referenced in the project.
Gacutil.exeand sn.exe are used to execute register. bat.
Execution result
For details about how to add the registration file to the installation package, refer to how Wu huacong deploys the devexpress control during the installation process.
ArticleThank you for your attention. If you have any shortcomings, please kindly advise. Thank you!