168 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
91
views
An error occurred while validating. HRESULT = '80004005'
I'm implementing CI/CD for a couple applications using GithubActions in GHES with a self-hosted runner and I've been facing this problem "An error occurred while validating. HRESULT = '80004005'&...
1
vote
3
answers
308
views
How to get HRESULT instead exception from a COM-method
I'm using the IAMCameraControl.GetRange method in C#. The description says nothing about exceptions. Only about returning the HRESULT error value. But in my code a COMException occurs, inside of which ...
0
votes
1
answer
118
views
.NET exception to throw for "xyz software not installed" or "required windows feature not installed/not detected"
Just as the title states, I'm curious as to what .NET exception would best fit a scenario where a dependent piece of software (3rd party application, Windows optional feature/role, etc) -- not ...
0
votes
1
answer
352
views
When WINAPI calls my code and an exception is thrown, should I catch it and return an HRESULT instead?
I have implemented IThumbnailProvider which gets compiled to a dll and then registered using regsvr32.
Within the code, I make use of STL containers such as std::vector:
std::vector<double> ...
-2
votes
1
answer
4k
views
How do I fix the HRESULT: 0x800A03EC error when loading data from a DataTable?
First of all I know there are some answers to this error messsage, but nothing has helped, whether it is the removal of 0 indexing etc.
The part where I export the data from my SQL query to the ...
2
votes
1
answer
281
views
Exception from HRESULT: 0x800A03EC for Excel in powershell
I am having the worst luck with this line of code...
$Myexcel.visible = $true
$Myworkbook = $Myexcel.workbooks.add()
$Sheet1 = $Myworkbook.worksheets.item(1)
$Sheet1.name = "Summary"
$Sheet1....
0
votes
1
answer
211
views
Datagridview Error After Rowfilter -> Data Update/Add and Fill Process
I have a datagridview which filled by SQL table. When I search a value with a textbox in the data and update/insert the some values and use fill function again I get this error
"System....
0
votes
0
answers
1k
views
Catastrophic failure(Exception HRESULT: 0x8000FFFF (E_UNEXPECTED)) while trying to use MS WebView2 in ASP,NET Web API in production environment
I'm getting 'Catastrophic failure(Exception HRESULT: 0x8000FFFF (E_UNEXPECTED))' run-time error while trying to use MS WebView2 in ASP.NET Web API in production environment (Win10, IIS v.20H2 (OS ...
1
vote
2
answers
7k
views
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 ...
0
votes
1
answer
135
views
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 # ...
0
votes
1
answer
291
views
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 ...
5
votes
0
answers
3k
views
Trying to create a Gatt Client application for Windows C++ that doesn't fail when connection established
I am using the Windows api Gatt Client BLE for C++, my goal is to connect two devices (but in this case I will try just one) and keep reading and writing data constantly without closing the device at ...
0
votes
0
answers
186
views
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 ...
1
vote
1
answer
2k
views
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.
0
votes
0
answers
484
views
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 ...