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

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'

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

Also it would be great if anyone can tell me how to lookup for error message if HRESULT is given as decimal number?
The way I do this is to enter the number into the calculator and then switch to hexadecimal display.
In this case it gives FFFFFFFF800C0019. Removing the leading Fs gives an error code of 0x800C0019 which will be searchable.

Related

MIME MAPI IConverterSession COMException on Activator.CreateInstance

I have been trying to use IConverterSession to convert from EML to MSG (MIME to MAPI), but I keep stumbling on COM errors.
I use a C# MAPIMethods class to wrap IConverterSession (like the one found here : Save Mail in MIME format (*.eml) in Outlook Add-In).
First, I had the problems of unknown clsid, solved with this post (https://blogs.msdn.microsoft.com/stephen_griffin/2014/04/21/outlook-2013-click-to-run-and-com-interfaces/).
Now that the proper registry keys have been edited, I face a new problem: first, I get an error message The operating system is not presently configured to run this application, and I get a COMException: Retrieving the COM class factory for component with CLSID {4E3A7680-B77A-11D0-9DA5-00C04FD65685} failed due to the following error: 8007013d The system cannot find message text for message number 0x in the message file for . (Exception from HRESULT: 0x8007013D).
My code is :
Type converter = Type.GetTypeFromCLSID(MAPIMethods.CLSID_IConverterSession, true);
object obj = Activator.CreateInstance(converter);
MAPIMethods.IConverterSession session = (MAPIMethods.IConverterSession)obj;
The error is raised on "object obj = Activator.CreateInstance(converter);"
A COMException normally means that "type is a COM object but the class identifier used to obtain the type is invalid, or the identified class is not registered.". So either Type converter = Type.GetTypeFromCLSID(MAPIMethods.CLSID_IConverterSession, true); does not return the proper type, or there is still a registry key missing somewhere.
I am using Office 15 (2013) C2R 32 bits on Win 64bits. The application is setup on an x86 build configuration.
Is there something I am missing somewhere? Can anyone help?
"The operating system is not presently configured to run this application" - it sure sounds like your app is compiled as x64 on a machine with a 32 bit version of Outlook.
Have you tried to use Redemption? It wraps IConverterSession for .Net languages. Something like the following should do the job.
using Redemption;
...
Redemmption.RDOSession session = new Redemmption.RDOSession();
Redemmption.RDOMail msg = session.CreateMessageFromMsgFile(#"c:\temp\test.msg");
msg.Import(#"c:\temp\test.eml", Redemption.rdoSaveAsType.olRFC822);
msg.Save();
olRFC822 format will use IConverterSession if it is available or the internal Redemption converter if IConverterSesison is not available (e.g. under Exchange version of MAPI or the latest versions of Outlook 2016 C2R where IConverterSession cannot be used).
Use olRFC822_Redemption or olRFC822_Outlook if you always want to force Redemption or Outlook (IConverterSession) converter.

Type Initializer Error Thrown by linq2db InformixDataProvider when run in Web Application but not Console

I am trying to use the linq2db library (thanks by the way!) to retrieve records from an Informix database. I followed the steps from the documentation and was able to successfully get records from an ASP.NET console applicaiton using the Visual Studio debugger. However, I then tried to follow the same with a fresh and standalone ASP.NET MVC5 application and I am getting the error "The type initializer for 'IBM.Data.Informix.IfxDecimal' threw an exception." also running using Visual Studio debugger. I did some digging by downloading the source code and adding some break points and found that Line 125 and line 133 of the file LinqToDB.DataProvider.Informix.InformixDataProvider file are involved in causing the error. But that is as far as I got. So running in the context of a web application throws an error, but running in a console application is fine.
below is line 125 of LinqToDB.DataProvider.Informix.InformixDataProvider
MappingSchema.AddScalarType(_ifxDecimal, GetNullValue(_ifxDecimal), true, DataType.Decimal);
below is the GetNullValue method in that class (lines 130 to 134 of same file), error gets thrown on return getValue.Compile()()
static object GetNullValue(Type type)
{
var getValue = Expression.Lambda<Func<object>>(Expression.Convert(Expression.Field(null, type, "Null"), typeof(object)));
return getValue.Compile()();
}
Additional Info..
In the documentation titled Informix Client Software Development Kit (Version 4.10) in Table 2-1. Best-fit types for retrieving Informix data types it shows that there are three DECIMAL Informix types, each map to three different suggested .NET types
I am afraid you can't use Informix in partial trust environment. When I try to create IfxConnection in partial trust, I get SecurityException - 'That assembly does not allow partially trusted callers.'
Too old to comment, but, I had this error too. Solved it placing getValue.Compile() in place of getValue.Compile()();.
Works fine now.

Fusion Log Assembly Binder Error - Bind result: hr = 0x1. Incorrect function

I am trying to get to the bottom of a strange behavior on one machine. I have a trivial console application that will run interactively, but when I invoke it via WMI, it will start and exit immediately.
I enabled the Fusion log, since Procmon was unrevealing. I see the following error:
*** Assembly Binder Log Entry (31-01-2015 # 19:22:51) ***
The operation was successful.
Bind result: hr = 0x1. Incorrect function.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\CMCBOOTSTRAP\Cmc.Installer.Agent.Console.exe
--- A detailed error log follows.
BEGIN : Native image bind.
END : Incorrect function. (Exception from HRESULT: 0x00000001 (S_FALSE))
What is the cause for "incorrect function"? What else can I look at to determine why this application effectively dies on startup via WMI?
And I mean trivial...
class Program
{
static void Main(string[] args)
{
Thread.Sleep(30000);
}
}
Environment is Windows Server 2012 R2 and .NET 4.5.
This is an entirely normal mishap, you got it from Fuslogvw.exe by selecting the "Native Images" radio button in the Log Categories setting. Readily reproducible on my own machine as well, I see many of them.
The actual error code is S_FALSE, a COM error code that means "it successfully failed". Which is why it says The operation was successful. Misinterpreted for the diagnostic message as "Function failed", that's the description for Windows error 1 and returned by the FormatMessage() winapi function.
The successful failure is entirely expected, you didn't run Ngen.exe on your console mode app yet so the native image for it is not available. Keep looking, this is not it. Change the Log Category back to "Default", native images are not your problem.
This error can also occur if you have a 64 bit dependency while your process or IIS runs on 32 bit.

32feet.net: Invalid argument supplied - Parani module

I'm experiencing problems with Windows 8: the following code has always worked with previous versions of Windows.
BluetoothSecurity.PairRequest(_myAddress,PIN);
_BTClient.Connect(_myAddress,InTheHand.Net.Bluetooth.BluetoothService.SerialPort);
return _BTClient.GetStream();
The "Connect" method always throw an Exception
System.Net.Sockets.SocketsException: {"An invalid argument was supplied *_myAddress*:0000110100001000800000805f9b34fb"}."
The Discovery is working fine so I suppose the BT Radio is working.
The hardware is a "Dell Wireless 380 Bluetooth 4.0 Module".
I'm connecting to a a Parani Module ESD100V2
Thanks for any solution/advice/hint you may give.
Does the PairRequest you do return true or false?
Anyway, Parani devices I've worked with in the past have a bug for connect when not paired. So, to check that, pair manually through the Windows UI and see if the connect works then.

Ajax toolkit not working

On my developer environment ajax toolkit is working good. Rendering textbox as sliders. All good. But when I'm putting it into the web host, it's not working. The textboxes are left as well and enormous error on console (chrome and firfox)
Uncaught SyntaxError: Unexpected token < ScriptResource.axd:1
Uncaught Sys.ArgumentUndefinedException: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: baseType ScriptResource.axd:847
Uncaught Sys.ArgumentUndefinedException: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type ScriptResource.axd:847
2
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 ScriptResource.axd:847
I tried reinstalling ajaxtoolkitfrom packagemaneger but didn't work. Still same problem.
Any Ideas?
It's the just browser cache. Clearing those resolved the issue.
I had this error too. For me, it turned out that I had used the wrong Script manager.
On the page which uses the Ajax control, I had a standard <asp:ScriptManager>. My control (an <ajaxToolkit:ComboBox>) did not work. When I used a <ajaxToolkit:ToolkitScriptManager> instead, it started behaving as expected.
I don't know if this will solve the error in all cases, but it is one more thing to check for.
The baseType argument in ScriptResource.axd # line 847 is undefined. Same is true for the type parameter.
Here's what I would do. Try installing your bits on another machine, perhaps in your office right next to your development machine. The error indicates some resource IS NOT installed. Trying to repro a working copy of you setup, on a clean machine is the first step.
After you've done that, post an update here...

Categories