Search code examples
c#.net-3.5deploymentclickoncehresult

Finding HRESULT '-2146697191' Error message - clickonce setup error


I want to know what exactly HRESULT error means? This is occuring when user is trying to download clickonce application from our server. Hence to figure what is the problem behind it I want to know what does this HRESULT number refers to. I tried to use error lookup tool but it says message not found. Is there any way to find this error message? Also it would be great if anyone can tell me how to lookup for error message if HRESULT is given as decimal number?

For reference here is the error log in short:

Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 5.1.3 {version}
Running checks for package '.NET Framework 3.5 SP1', phase BuildList
Reading value 'SP' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5'
Read integer value 1
Setting value '1 {int}' for property 'DotNet35SP'
The following properties have been set for package '.NET Framework 3.5 SP1':
Property: [DotNet35SP] = 1 {int}
Running checks for command 'DotNetFX35SP1\dotNetFx35setup.exe'
Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet35SP' and value '1': true
Result of checks for command 'DotNetFX35SP1\dotNetFx35setup.exe' is 'Bypass'
'.NET Framework 3.5 SP1' RunCheck result: No Install Needed
Launching Application.
URLDownloadToCacheFile failed with HRESULT '-2146697191'
Error: An error occurred trying to download 'https://SomeWebSite.com/SomeApplication.application'

Solution

  • HRESULT -2146697191 (0x800C0019) means "The Secure Sockets Layer (SSL) certificate is invalid." See INET_E_INVALID_CERTIFICATE.