encryption - Wix setup failing with error 1603 -
I wrote a .NET 4 desktop application and when I try to run Setup.exe, I get the following error Log File.
I am using Visual Studio 2012 with Visual 3.7. [16: 51: 54: 890] Remote Custom Action DLL: C: \ windows \ Installer \ MSIFECD.tmp, Entrypoint: EncryptConfig SFXCA:
MSI (s) (E8: 1c) [16: 51: 54: 890] Removing the custom action from the temporary directory: C: \ windows \ Installer \ MSIFECD.tmp- \ SFXCA: Binding the CLR version v4.0.30319 for the custom action calling SecureConfig! SecureConfig.CustomActions.EncryptConfig EncryptConfig: An error occurred in the configuration section handler for security: file or assembly 'order. Could not load one of configuration.net 'or its dependencies. The system can not find the file specified. (C: \ program files (x86) \ orbit order system \ orbit order system.execonfig line 6) Custom Action Encrypted Configuration File with True Error Code 1603 (Note that this can not be 100% correct if the translation of the sandbox Inside) 51:55: Install Refill Return Value 3.
I can confirm that 'order. Configuration .net.net is present in the target file such as the application config file.
This App.config file:
& lt ;? XML version = "1.0"? & Gt; & Lt; Configuration & gt; & Lt; ConfigSections & gt; & Lt; Section name = "backup" type = "order configuration.backup config, order.config.net" /> & Lt; Section name = "normal" type = "command configuration. Normal config, order configuration.net" / & gt; & Lt; Section name = "security" type = "order configuration. Security configuration, order configuration.net" / & gt; & Lt; - ** This is line 6 ** & lt; / ConfigSections & gt; & Lt; Startup & gt; & Lt; Supported serial version = "v4.0" sku = ".NETFramework, version = v4.5" /> & Lt; / Startup & gt; & Lt; Backup configSource = "config \ backup.config" /> & Lt; Common configSource = "config \ general.config" /> & Lt; Security configSource = "config \ security.config" /> & Lt; ConnectionStrings & gt; & Lt; Clear /> & Lt; Add name = "OrderDb" connectionString = "data source = (local); initial catalog = OrbitOrder; user id = user; password = pass; multipleActiveResultSets = true;" /> & Lt; / ConnectionStrings & gt; & Lt; / Configuration & gt;
I also confirm that config \ security.config
exists in the target folder present.
I've spent three hours figuring out this error means that all files are actually present in the target folder. I actually copied the WIX set up from a previous solution that I had worked a year ago and that works fine without any issue.
The custom action that failed has been trying to encrypt security
configuration section.
I am telling you why MSI is throwing a 1603
error when something does not appear wrong.
I After adding the code to Wix custom action, I'm able to resolve it:
AppDomain.CurrentDomain.AssemblyResolve + = (Sender, Args) = & gt; {Return Assembly.LoadFrom (string.Format (@ "{0} Order Configuration.net.dll", installFolder)); };
It basically tells the assembly to load when it is resolved to a reference that needs to be resolved.
Comments
Post a Comment