Windows error 0x80131604, -2146232828

Detailed Error Information

COR_E_TARGETINVOCATION[1]

Message"Uncaught exception thrown by method called through Reflection."
Comment If the method called throws an exception

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code5636 (0x1604)

Questions

3votes
0answers

Windows Service hosting Web API 2 via Owin Starts and Immediately Stops with no Exceptions Thrown

The title sums up my issue. I have try-catch blocks around the service's OnStart method and the Main method in the service, and no exception is ever thrown. The service starts and immediately stops, with the following message: > The Foo service on Local Computer started and then stopped. Some [...] read more
c#
asp.net-web-api2
owin
2votes
1answer

Could not load type MessagePack with Azure signalR

I have been using Microsoft.Azure.SignalR library 1.1.1 which is dependent of MessagePack 1.7.3.4 in my .Net Core 3.0 library. Now, I am trying to use the latest version of MessagePack library (2.0.335). It results me the below error. Thanks in advance. System.Reflection.TargetInvocationException HResult=0x80131604 Message=Exception has been thrown by the target [...] read more
c#
nuget
signalr
msgpack
2votes
0answers

CLR host doesn't execute WPF applications but it does WinForms

I made a code very similar to https://code.msdn.microsoft.com/windowsdesktop/CppHostCLR-e6581ee0. The difference between both is that I'm loading the executable from memory while he's doing it from file. The other difference is that he calls some random method while I want to call Main method. My goal is to be something like [...] read more
c++
wpf
clr
2votes
0answers

How to load another assembly within the current app domain?

Issue is taken from this github issue, and is related specifically to building a WebHost using a Startup from another assembly. Calling .Build() on an IWebHostBuilder configured via WebHostBuilderExtensions.UseStartup(this IWebHostBuilder hostBuilder, Type startupType) where the startupType is retrieved from a separate .exe assembly via its string Assembly name fails at [...] read more
.net
asp.net-core
appdomain
2votes
1answer

Error when creating App Packages

Does anybody understand what the following paragraph is trying to say? What do I have to do to get rid of this error so that I can submit my app on Windows Store? Any solution might help. Thanks! 'Libraries imported are as follows: Imports Windows.Storage Imports Windows.Web.Http Imports Windows.UI.Popups Imports [...] read more
.net
vb.net
uwp
2votes
1answer

BizTalk host instance unable to start

BizTalk 2013, production server, on windows 2008 R2 64 bit all host instances failed to start, event log: > Error code 0x80131604, Error description: Exception has been thrown by the > target of an invocation. Googled a bit, there are threads saying it could be BizTalk configuration file issue, I [...] read more
biztalk
biztalk-2013
1vote
0answers

How to fix an inner NullReferenceException when working with a serializable class using the ISerializable interface?

I'm working on a project which uses 5 different libraries as modules. My task is to save and load this information from one of these libraries using another. I've made the functionality to save, however the loading/deserializing of the data gives me an Inner NullReferenceException. Here is the stack trace: [...] read more
c#
serialization
binary
formatter
iserializable
1vote
0answers

Windows 8.1 App's package report generation error

Windows App Certification Kit is throwing error and being closed by self without generating the report for created package App_x.x.x.x_AnyCPU_bundle.appxupload for windows store. The error popup message is An error occured while generating report. Application will exit. Once clicked on OK button Windows App Certification is being closed. The details [...] read more
xml
windows-store-apps
app-certification-kit
appxmanifest
1vote
1answer

Issue in edition upgrade of SQL Server

I have been trying to upgrade Enterprise edition to Standard edition, bit every time, the installer closes with following error in temp folder: > 08/21/2016 17:14:46.226 Attempting to launch process C:\Program > Files\Microsoft SQL Server\110\Setup > Bootstrap\SQLServer2012\x64\ScenarioEngine.exe > 08/21/2016 17:17:03.892 Process returned exit code: 0x80131604 > 08/21/2016 17:17:03.904 Local ScenarioEngine.exe [...] read more
sql-server
1vote
1answer

Debugging exception no longer working

I am developing for Windows Phone 8, and recently, not sure what I have done, the debugger no longer throw me the line number of the CS file where exception occur. This is the only message I get (TaskHost) Unhandled exception at 0x76C91EDB (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, [...] read more
c#
exception
windows-phone-8
0votes
0answers

CLR Hosting and private assembly issue

I'm loading an assembly AA through CLR Hosting. It works... In this Assembly, I add a reference to another custom assembly XX (A minimal class "Hello world") and instantiate this XX within a method in AA. But now running again AA with CLR Hosting raises the error : 0x80131604 : [...] read more
visual-studio
clr
gac
clr-hosting
0votes
1answer

Owin/System.Web.Http.SelfHost - Won't Start after migration to .NET Core

I migrated the project from .NET Framework to .NET Core, by creating a new project, importing the code and installing dependencies. Everything has gone well, except for the API component.Previously I used System.Web.Http.Selfhost, however now when I try to run the program I get the following exception: > System.TypeLoadException HResult=0x80131522 [...] read more
c#
.net-core
owin
self-host-webapi
0votes
0answers

Visual studio issue when starting Exception thrown at 0x16D7AA45 in devenv.exe: 0xC0000005: Access violation reading location 0x00000020

When I start visual studio ,I get the below message Error message [https://i.stack.imgur.com/f46GE.png] enter image description here [https://i.stack.imgur.com/OvjTE.png] When I click debug and click debug devenv.exe I get the below error > System.Reflection.TargetInvocationException HResult=0x80131604 > Message=Exception has been thrown by the target of an invocation. > Source=mscorlib StackTrace: at System.RuntimeMethodHandle.InvokeMethod(Object [...] read more
visual-studio
visual-studio-2019
0votes
0answers

How to get the HRESULT of an ApplicationException thrown from a managed library which is called in native c++ using reflection?

Using the code sample here: Calling A .NET Managed Method from Native Code With only the following change: Throw ApplicationException derived exception in Test method public class TestException : ApplicationException { public TestException(string message) : base(message) { this.HResult = unchecked((int)0x80040201); } } public class Class1 { public void Test() { [...] read more
c#
visual-c++
reflection
interop
0votes
0answers

.net Core Newtonsoft.Json had 'Exception has been thrown by the target of an invocation' error

I am developing on .net core 3.1 platform. I use log4net for cross cutting concerns logging. When I take any error from any service, It will convert to json object then write to log file. I use .NET STANDARD library 2.1, this is code bellow var logEvent = new SerializableLogEvent(loggingEvent); [...] read more
c#
asp.net-core
json.net
0votes
1answer

Neo4j - Neo4jClient - Deserialize from Cypher Results

I have a basic Neo4j DB and I'm getting my head around getting data from it into C# under .Net Core. I am using the bolt connection on a 4.03 DB. Windows 10. I may have not grasped Graph Databases yet, but I am trying to build a Person object [...] read more
c#
cypher
neo4jclient
0votes
0answers

using MySqlBulkCopy of MySqlConnector to upload a datatable into MySql. Exception thrown

Well i switched to MySqlConnector in order to be able to use its functionality to upload a Datatable into a MySql Table. I'm following their simple example for this function as follow : DataTable datatable = Globals.ds.Tables["Song"]; using (var connection = new MySqlConnection(Globals.connString + "AllowLoadLocalInfile = true;")) { await connection.OpenAsync(); [...] read more
c#
mysql
mysql-connector
0votes
0answers

Could not load file or assembly 'WebDriver, Version=3.141.0.0, Culture=neutral, PublicKeyToken=null

I am trying to execute code with WebDriver but getting this exception, I do have WebDriver reference, Any thoughts what might be causing this exception > "Error: TAEF: [HRESULT: 0x80131604] A failure occurred while preparing to run > tests in class ''. (Failed to create an instance of ''. (Failed [...] read more
c#
.net
selenium
active-directory
azure-active-directory
0votes
2answers

Unable to login into PluginRegistrationTool - "Plugin Registration Tool stopped working"

I have 2 different accounts with Dynamics 365 online, few hours back I was able to login with 1 account. But then suddenly when I tried to login with another account, it is throwing errors as below: Plugin Registration Tool has stopper working! [https://i.stack.imgur.com/5lAbs.png] And when I clicked on DEBUG [...] read more
dynamics-crm
dynamics-crm-online
dynamics-365
dynamics-crm-365
0votes
0answers

Type.InvokeMember Throwing "COMException: Type mismatch" inside Extension method

I'm working with Adobe Acrobat SDK, and I am trying to clean up the COM calls by wrapping the InvokeMember call in an Extension method to make the code a bit more readable. The extension method I am trying to write is as follows: using System; using System.Reflection; public static [...] read more
c#
com
extension-methods
acrobat-sdk
0votes
1answer

Search photos and progressbar display

I have one form with a search button and a progress bar to find photos on a network dir. It returns a error: System.Reflection.TargetInvocationException HResult=0x80131604 Message=O destino de uma invocação accionou uma excepção. Source=mscorlib StackTrace: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] [...] read more
c#
photo
0votes
1answer

ABP Boilerplate using SQL CE

I have a simple ASP.NET application using EntityFramework and a SQL Server EF DB. The problem is that if I try to use SQL CE (Compact Edition), my application services throws an exception on the second call to the repository with the error: ExecuteReader requires an open and available Connection. [...] read more
sql-server-ce
aspnetboilerplate
asp.net-boilerplate
0votes
1answer

.Net MVC - source code that renders a model to html? (Render view outside MVC)

I'm doing some exploration into trying to render html from a console application WITHOUT relying on tools like RazorEngine. I want to see if it's possible using straight mvc code; at the same time learn more about how MVC view renders work in general. I've been following the source code [...] read more
c#
asp.net-mvc
razor
0votes
1answer

Could not load file or assembly 'System.Web.Http, Version=4.0.0.0' after upgrading from vs2013 to vs2017

we recently upgraded from Visual Studio Community 2013 to Community 2017. My REST Service project started breaking after starting it (build passes). This is only happening on one out of 3 machines. We are using Microsoft.AspNet.WebApi.Owin for creating our REST endpoints. The issue seems to be on loading System.Web.Http, the [...] read more
c#
asp.net
.net
asp.net-web-api
owin
0votes
1answer

Trying to Resolve supported APIs test detected the errors:

Hi I' getting following Error While Creating App Package Locally. Error Found: > The supported APIs test detected the following errors: > ◦System.UnauthorizedAccessException: Access to the path 'C:\Program Files > (x86)\Windows Kits\10\App Certification Kit\SupportedAPIs-x64.xml' is denied. > at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at > System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, [...] read more
c#
xaml
uwp
-1votes
0answers

I've begun getting MVVM Light's WeakAction error messages, but can't find out where it's being raised

About 6 weeks ago I started to get errors from MVVM Light's WeakAction, such as this: > System.Reflection.TargetInvocationException HResult=0x80131604 > Message=Exception has been thrown by the target of an invocation. > Source=mscorlib StackTrace: at System.RuntimeMethodHandle.InvokeMethod(Object > target, Object[] arguments, Signature sig, Boolean constructor) at > System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] > parameters, [...] read more
c#
wpf
mvvm
mvvm-light
-1votes
1answer

Problem in "Integrate WSDK into Application" Tutorial DJI-SDK

I follow this tutorial https://developer.dji.com/windows-sdk/documentation/application-development-workflow/workflow-integrate.html I have this error: Severity Code Description Project File Line Suppression State Error CS7069 Reference to type 'Task<>' claims it is defined in 'System.Runtime', but it could not be found DJIWSDKDemo C:\Users\almendro.avellano\source\repos\DJIWSDKDemo\DJIWSDKDemo\MainPage.xaml.cs 61 Active If I comment that lines and run it, show me the [...] read more
c#
uwp
dji-sdk
visual-studio-2019

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0