Questions tagged [hresult]

HRESULT is used as a return value to determine the success or failure of a function.

168 questions
0
votes
1 answer

InitializeComponent() Error Help

Im a beginner programmer for Visual Studio 2005 and coding in VB and i required some help. I've been hitting this error everytime i call InitializeComponent() : ComException was unhandled Class not registered (Exception from HRESULT : 0x80040154…
0
votes
3 answers

Win32: What is HRESULT 0x80070002?

I can't find the definition of HRESULT: 0x80070002 I can usually find these searching the include paths but this code was not found. Does anyone have the explanation of what it is? I think it is coming from the shell. Thanks.
user3161924
  • 1,849
  • 18
  • 33
0
votes
1 answer

Pythonic ways to catch exceptions based on their properties

pywintypes exposes a com_error like this: from dataclasses import dataclass from typing import Optional @dataclass class com_error(Exception): hresult: int # The COM hresult strerror: str # The error message excepinfo:…
Greedo
  • 4,967
  • 2
  • 30
  • 78
0
votes
1 answer

oleaut32.dll returns negative hresult in debugger, but the correct result in a different app and even in my built app

My Windows Forms app needs to find an active instance of SolidEdge.Application, and for this I've copied all the required code from https://github.com/SolidEdgeCommunity/SolidEdgeSpy. It uses a custom classes MarshalEx and NativeMethods, with a…
Jan Willem
  • 122
  • 11
0
votes
0 answers

How fix HRESULT E_FAIL?

I'm working in a wind form which open a link in a selected browser iexplorer, chrome or edge I use SHDocVw.IWebBroser2.navigate2(url, 0x08000) to open iexplorer in a new tab but in some times this line gets this error…
0
votes
1 answer

How to fetch the message string from Win32 provided HRESULT C#

I'm curious if there is a function in C# to convert an Win32 HRESULT (long) error code gotten from unmanaged code into the representation string.
arsdever
  • 1,111
  • 1
  • 11
  • 32
0
votes
0 answers

Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)) when i try to connect client .net app with OPC server

i have two .net apps: the first allows to start OPC server the second connects to the first to get data from the server. The OPC server is saved in the register, but when i try to connect to the OPC server, an exception HRESULT is…
Sakatoro
  • 1
  • 1
0
votes
0 answers

VS2015 C# Localhost ASHX Error (But it works on Server?) HRESULT 0x80131401

I'm building a website in VS2015 (C# using Razor) I see many posts where people say that they receive this error on their server, but not localhost - my issue is the opposite. I'm seeing this error in every *.ashx file preamble in this specific…
Sanya
  • 1,270
  • 5
  • 21
  • 47
0
votes
0 answers

Generate a specific HResult value of Exception that must be caught in COM

I need to thrown an exception from C#.Net application and catch it in COM to process an error massage for my app. I would like to know is there any accessible range of values of HRESULT that can be used for specific exception? Or it's OK to pass any…
programmer0
  • 147
  • 7
0
votes
1 answer

Windows 10 COMException HRESULT:0X800A03EC while saving Excel file

I have a VB.Net windows forms application which is working fine in windows 7 environment. Now, I want to upgrade to windows 10. So I have started to test my application in windows 10 server machine. I am getting an Exception (Exception from…
0
votes
1 answer

Determine two ComException types with the same HResult

When Interop with Outlook, I need to handle several exceptions, they are all COMException with the same HResult, the only difference is in their Message property. I have to tell them from each other by examining the Message property, but such code…
kennyzx
  • 12,845
  • 6
  • 39
  • 83
0
votes
2 answers

Where can I find a list of HP QC HEX Error codes

After a certain action (no conclusive evidence as to which action) Quality Center returns the following error: [...] HRESULT: 0x8004dddd Where the 'd' stands for any digit. The fact that I do get such an error code might be normal. It is a way of…
Matthias dirickx
  • 141
  • 2
  • 10
0
votes
1 answer

Visual Studio 2012 throwing error while building website

I am getting the errors below while building an ASP.NET website in Visual Studio 2012 over and over again. These errors are very random and sometimes I'm able to run the site after many…
Ajay Agrawal
  • 145
  • 2
  • 10
0
votes
1 answer

0x88982F50: "The component cannot be found" When using DirectXTK's CreateWICTextureFromMemory()

I'm working on a (Universal Windows) c++/cx Directx project, which builds to a dll used in a c# UWP project. I'm using the DirectX Toolkit to load textures. I already use it to create a texture from file, but now I need it to create a texture from…
Stef
  • 315
  • 3
  • 14
0
votes
0 answers

Right Mouse Button in FileOpenDialog window gives an error

I have a FileOpenDialog that gets a selected folder name, this works perfectly however when I click an item in a folder or another folder with the right mouse button the application crashes and throws an Unhandled Exception:Module Not Found. I'd…