Windows error 0x80131513, -2146233069

Detailed Error Information

COR_E_MISSINGMETHOD[1]

Message"Method does not exist."
Comment An attempt was made to dynamically invoke a method that does not exist

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 Code5395 (0x1513)

Questions

3votes
2answers

Running SSIS package in C# .NET

I am trying to run an SSIS package from a simple console app. Unfortunately I am stuck on some errors` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.SqlServer.Management.IntegrationServices; using System.Data.SqlClient; namespace SSIStutorial { class Program { static void Main(string[] args) { // Variables string targetServerName = [...] read more
c#
sql-server
ssis
etl
3votes
0answers

Runtime exception when using System.Web.Http.HttpRouteCollectionExtensions.MapHttpRoute

Getting a runtime exception when using MapHttpRoute extension method Library: Microsoft.AspNet.WebApi (5.2.4), System.Web.Http (5.2.4) Exception: System.MissingMethodException HResult=0x80131513 Message=Method not found: 'System.Web.Http.Routing.IHttpRoute System.Web.Http.HttpRouteCollectionExtensions.MapHttpRoute(System.Web.Http.HttpRouteCollection, System.String, System.String, System.Object, System.Object, System.Net.Http.HttpMessageHandler)'. Web.config dependent assembly mapping is also present <dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-5.2.4.0" newVersion="5.2.4.0" /> </dependentAssembly> I have tried re-installing the [...] read more
c#
asp.net-web-api2
2votes
0answers

LocalReport in full .net class library referenced in .net core project

I'm trying to build a service to export a rdlc Localreport from one of my actions in my webapi. Webapi is built on .net core 3.1 I know that reportviewer is not compatible with .net core, so to try and mitigate that I've got a class library project added to [...] read more
core
reportviewer
2votes
2answers

Installing MS SQL Server Express 2017 with Inno Installer

I'm desperately trying to install SQL Server Express 2017 with Inno Installer. Within my installer I include the extracted installer files. That means that I already executed the common SQLEXPR_x64_ENU.exe, to avoid the "extract-temp-folder" prompt while my installer is running. I execute the following on the cmd: {somePath}\SQLEXPR_x64_ENU\setup.exe /ACTION=Install /Q [...] read more
inno-setup
sql-server-express
2votes
3answers

C# .NET Missing Method Exception when opening ZipArchive created with System.IO.Compression

I have a C# WinForms .NET app in which I'm trying to write to a zip archive and read from it using System.IO.Compression. Here's now I create the ziparchive: public void SaveStdV20ZipProject(string strfilepath, clsProjectInfo GameInfo) { using (var ms = new MemoryStream()) { using (var archive = new ZipArchive(ms, ZipArchiveMode.Create, [...] read more
c#
.net
winforms
system.io.compression
2votes
2answers

Untouched code suddenly throws Method not found: 'Void Swashbuckle.Application.SwaggerDocsConfig.RootUrl' on startup

I just opened an application of which I need it's API to create the necessary data required for the application I'm actually working on. On startup of the API I get this error: System.MissingMethodException HResult=0x80131513 Message=Method not found: 'Void Swashbuckle.Application.SwaggerDocsConfig.RootUrl(System.Func`2<System.Net.Http.HttpRequestMessage,System.String>)'. Source=Scanner.Api StackTrace: at Scanner.Api.Configuration.SwaggerConfiguration.<>c.<ConfigureApiDocumentation>b__0_0(SwaggerDocsConfig c) in C:\MyApplication.Api\Configuration\SwaggerConfiguration.cs:line 176 at Swashbuckle.Application.HttpConfigurationExtensions.EnableSwagger(HttpConfiguration [...] read more
c#
.net
asp.net-web-api2
swashbuckle
2votes
1answer

ASP.NET Core 2.0 Azure Webjobs SDK adding project reference throws exception

now that asp.net core 2.0 is here I started to test out the new azure webjobs sdk. Everything works fine but when I Add a project reference (netstandard 2.0 class library) I get this exception.webjobs exception [https://i.stack.imgur.com/FjXqQ.png] Stack Trace: > System.MissingMethodException occurred HResult=0x80131513 Message=Method not > found: 'System.Collections.Generic.Dictionary2<System.String,System.Object> > Microsoft.Extensions.Configuration.IConfigurationBuilder.get_Properties()'. [...] read more
c#
asp.net
azure
azure-webjobssdk
.net-core-2.0
2votes
0answers

Errors when running Apps in ASP.NET MVC CORE

I am recently set up Visual Studio 2017, but When i try to start ASP.NET MVC CORE Project that runtime error appears: System.MissingMethodException occurred HResult=0x80131513 Message=Method not found: 'System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)'. Source= StackTrace: at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build() at WebApplication4.Program.Main(String[] args) in C:\Users\qqq\documents\visual studio 2017\Projects\WebApplication4\WebApplication4\Program.cs:line 14 and when i try to run another ASP.NET [...] read more
visual-studio
asp.net-core-mvc
1vote
0answers

protobuf-net version -3.0.73 ,SaveContractsToZipStream method is breaking with error: System.MissingMethodException

> Method not found: 'System.String ProtoBuf.Meta.TypeModel.GetSchema(System.Type, ProtoBuf.Meta.ProtoSyntax)'.' > Stack Trace: > System.MissingMethodException > HResult=0x80131513 > Message=Method not found: 'System.String ProtoBuf.Meta.TypeModel.GetSchema(System.Type, ProtoBuf.Meta.ProtoSyntax)'. > Source=Components.ProtoBuf.Generator > StackTrace: > at Components.ProtoBuf.Generator.ProtoDefinitionGenerator.GetProto3Definition(Type type, RuntimeTypeModel typeModel) > at Components.ProtoBuf.Generator.ProtoDefinitionGenerator.CreateProtoDefinition(Type type, IReadOnlyCollection`1 dependencies, RuntimeTypeModel typeModel) > at Components.ProtoBuf.Generator.SerializationUtility.<>c__DisplayClass5_0.<GenerateProtoDefinitionsOfUsedTypes>b__1(KeyValuePair`2 e) > at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 [...] read more
c#
serialization
protobuf-net
1vote
0answers

C# Having issues with UIAutomation Reference- get_BoundingRectangle() method not found

Creating a C# Console app in VS 20019 I have imported UIAutomationTypes & UIAutomationClient I try to add my Handler Automation.AddAutomationEventHandler( eventId: WindowPattern.WindowOpenedEvent, element: AutomationElement.RootElement, scope: TreeScope.Children, eventHandler: OnWindowOpened); When running the application I get the error System.MissingMethodException HResult=0x80131513 Message=Method not found: 'System.Windows.Rect System.Windows.Automation.Provider.IRawElementProviderFragment.get_BoundingRectangle()'. Source= StackTrace: I have not programmed [...] read more
c#
1vote
1answer

Using ExecuteInDefaultAppDomain to call the main function C# console application

Trying to load CLR from a unmanaged native c++ code and then use ExecuteInDefaultAppDomain function to call the function defined in win32 c# console application. Actually i am trying to call the static void Main(string [] args) i.e the entry point function.But on calling ExecuteInDefaultAppDomain as shown in below code [...] read more
c#
c++
clr
1vote
1answer

0x80131513 in Asp.net razor editor

> HRESULT: 0x80131513 'Method does not exist' This error shows in create view in asp.net in visual studio 2017. How can this be resolved? read more
visual-studio
razor
compiler-errors
1vote
1answer

C# RLNET/OPENTK System.MissingMethodException during run-time

I am trying to make a small 2d game in c# using the RLNET library. The RLNET library has OpenTK as a dependency, so I added the latest versions of both RLNET and OpenTK to my project using the NuGet packages manager in Visual Studio. I was following along with [...] read more
c#
runtime-error
opentk
missingmethodexception
1vote
1answer

nancy selfhost, with dryioc and bootstrapper -> Method not found exception

At work we require a small application, and decided to test some things we are not really familiar with for this project as well. I started with a console app, using topshelf to host nancy via the nancy selfhosting package. All of this works. Now I wanted to wire in [...] read more
nancy
topshelf
dryioc
1vote
0answers

Using Moq testing overloaded methods, get System.MissingMethodException: "Method Not Found"

I have this interface: public interface IProductsRepository { // Use this method for non transactional commits, and return the new primary key. Task<int> CreateNewProductItem(ProductExt product); // use this method for transactional commits, and return the new primary key Task<int> CreateNewProductItem(ProductExt product, MySqlConnection conn, MySqlTransaction transaction); Now I'm trying to write [...] read more
c#
unit-testing
moq
1vote
1answer

Method not found: 'System.Data.Entity.DbSet`1<..> ..Entities.get_tb_BrandManufacturer()'

added new tables to DB, run EF update (DB first), no errors, builds fine. When running it throws System.MissingMethodException occurred HResult=0x80131513 Message=Method not found: 'System.Data.Entity.DbSet`1 DAL.EF.LPEntities.get_tb_BrandManufacturer()'. Source=LP.Framework on new tables added. Only happens at runtime. Thanks Pavel read more
entity-framework-6
1vote
3answers

Signalr Core for ASP.net core 2.0 not working no matter what i try

trying to follow microsoft's video w/ Mikael Mengistu, Jon Galloway, Maria Naggaga. https://channel9.msdn.com/Shows/Code-Conversations/Introduction-to-SignalR-Core-with-Mikael-Mengistu 0. here is what my machine looks like. dotnet --version 2.0.0-preview2-006497 runtime Microsoft .NET Core Shared Framework Host Version : 2.0.0-preview2-25407-01 Visual Studio 2017 15.3 MVC Web Project with Docker Support here is the code repo of [...] read more
asp.net-core
signalr
signalr.client
1vote
2answers

Convert a C# code to Php using the DOTNET class

I'm trying to convert a C# code to php using DOTNET, I never use C# but a lot of php, so, I'm starting with a basic things, to se if usefull do the conversion, then have the next C# piece of code. using System.Text; class AES { private byte[] _key; [...] read more
c#
php
interop
1vote
1answer

referring asp.net dll to php

I am referring a ASP.NET assembly in php script using DotNet class i.e. $test = new DOTNET('assemblyname','classname'); I am getting a fatal error while running this script. Fatal error: > Uncaught exception 'com_exception' with message 'Failed to instantiate .Net > object [CreateInstance] [0x80131513] ' in C:\Program > Files\xampplite\htdocs\xampp\phptest.php:2 Stack trace: [...] read more
php
.net
0votes
0answers

Missing Method Exception MongoDB C# driver

I am getting the following error with the latest MongoDB C# driver. > System.MissingMethodException MongoDB.Bson.GuidRepresentationMode > MongoDB.Bson.BsonDefaults.get_GuidRepresentationMode() The exception occurs in MongoClient: var client = new MongoClient("mongodb+srv://____:___@_____.nrzff.mongodb.net/____?retryWrites=true&w=majority"); var database = client.GetDatabase("ResultsModelSummary"); var collection = database.GetCollection<BsonDocument>("Zones"); var bsonDocList = new List<BsonDocument>(); foreach (var r in resModSums) { var bsonDoc = BsonDocument.Parse(Serialization.Serialize<ResultsModelSummary>(r)); [...] read more
c#
mongodb
mongodb-.net-driver
0votes
1answer

WinUI 3.0 for desktop apps default project gives runtime error

Using Windows UI Library 3 Preview 2 (July 2020) that was released just yesterday. On latest version of VS2019 - Preview, followed this official tutorial Get started with WinUI 3 for desktop apps to create a desktop project. Project successfully compiles but gives the following error when running in debug [...] read more
c#
winui
winui-3
0votes
1answer

Nuget packing not including dependncies in right way

I have a C# library, let say "Utilities" that uses Log4net as dependency, I am using .net framwork 4.6.1, I finished developeing this library and do a nuget pack Utilities.projcs and then push this package. While I'm try to use this Utilities in another project that which is an asp.net [...] read more
asp.net-core
nuget
nuget-package
.net-4.6.1
nuget-spec
0votes
1answer

Ironbarcode.dll : System.MissingMethodException

i use Ironbarcode to read barcodes on an image, but i always get the exception message: > System.MissingMethodException HResult=0x80131513 Message=Method not found: > 'System.Collections.IEnumerator PdfSharp.Pdf.PdfPages.GetEnumerator()'。 > Source=IronBarCode I never use Pdfsharp in this project and can't figure out why i got this message! Could anyone help me? using ironbarcode; BarcodeResult [...] read more
c#
.net
0votes
1answer

Is Microsoft.AspNetCore.Identity.EntityFrameworkCore 3.1.2 valid for .NET 4.7.x projects?

I have a .NET console project targeting .NET Framework 4.7.2. It uses Microsoft EntityFrameworkCore 3.1.2 and Microsoft.AspNetCore.Identity.EntityFrameworkCore 2.2.0 it fails at runtime with the following error : System.MissingMethodException HResult=0x80131513 Message=Méthode introuvable : 'Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder`1.HasIndex(System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,System.Object>>)'. Source=Microsoft.AspNetCore.Identity.EntityFrameworkCore StackTrace: at Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext`5.<>c__DisplayClass20_0.<OnModelCreating>b__0(EntityTypeBuilder`1 b) at Microsoft.EntityFrameworkCore.ModelBuilder.Entity[TEntity](Action`1 buildAction) at Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext`5.OnModelCreating(ModelBuilder builder) at Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityDbContext`8.OnModelCreating(ModelBuilder builder) at RTE.Technologies.SafeProtect.Common.Data.DbContext.Core.IdentityDbContext.OnModelCreating(ModelBuilder [...] read more
c#
asp.net-core
entity-framework-core
0votes
1answer

"Found conflicts between different versions" OR System.MissingMethodException when using aspnetcore.identity

i'm am stuck with this dependency problem... My Setup: 1. .Net Standard libraries with aspnetcore.identity code (UserManager, IdentityUser, etc) + all needed extension packages like Microsoft.Extensions.Identity.Stores in version 2.2.0 (not 3.x.x) 2. Database is already migrated to aspnetcore.identity layout 3. .NET 4.7.2 WebForms GUI that is supposed to use the [...] read more
c#
asp.net-core
asp.net-identity
0votes
0answers

Problem with configuration of Dependency Injection in net framework 4.6.1 parameterless constructor

I am creating new WCF service, on base of some old code. I think that I have done everything the same but during creating class using DI I get error: NO PARAMETERLESS CONSTRUCTOR DEFINED FOR THIS OBJECT. Below is my new code that is done on basics of working one: [...] read more
c#
wcf
dependency-injection
config
simple-injector
0votes
0answers

Same project in two solutions throwing System.MissingMethodException in only one of the solutions

I've been stuck on this for weeks so I am completely at a loss at this point. Basically I have solution A and solution B. Solution B is a recent branch of solution A with some added compilation symbols in a few project for changing screen dimensions. These two solutions [...] read more
c#
.net
visual-studio-2019
solution
microsoft-sync-framework
0votes
0answers

Accessing Microsoft Dynamics from UWP app

I'm trying to create a UWP app to do some stuff with Microsoft Dynamics 365. The libraries I need are part of this nuget package: Microsoft.CrmSdk.CoreAssemblies If I try to install the latest version, I get the error: NU1202 Package Microsoft.CrmSdk.CoreAssemblies 9.0.2.12 is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299). Package Microsoft.CrmSdk.CoreAssemblies [...] read more
uwp
dynamics-crm
0votes
0answers

How to create a new DataGridViewRow and specify values using column names, not indices?

I have a DataGridView. I try to add rows to it by cloning the add-new-row row. When I add a row, I set some of the values of its cells. I try to access the DataGridViewCell instances by the Name of their column. Before the UI is shown, I do [...] read more
c#
winforms
datagridview
datagridviewcolumn
0votes
1answer

Access MySql with Entity Framework Core

I try to connect my MySQL database to the test code of the ASP.NET Core (v2.1) application. I created a sample application and added the MySql.Data.EntityFrameworkCore nuget package... Bellow is my code: // Context public class EntriesContext: DbContext { public EntriesContext(DbContextOptions<EntriesContext> options) : base(options) { } public DbSet<Entry> Entries { [...] read more
c#
mysql
asp.net-core
entity-framework-core
asp.net-core-2.1
0votes
1answer

Roslyn INamedTypeSymbol.GetMembers() throws Method Not Found Exception on Roslyn API

I am trying to use Roslyn to navigate to method declaration. I have Namespace name, class name and method name. Below in the code sample I am able to get classReference variable populated. But as soon as classReference.GetMembers() is called I am getting Method Not Found Exception. Although when I [...] read more
c#
roslyn
0votes
2answers

C# dotnet Http Pusher seems broken when updated via NuGet

Using PusherClient 0.5.1 with WebSocket4Net 0.15.2. After a pile of NuGet updates, my existing code now breaks when I try to Connect(). As below: var pusher = new Pusher("de504dc5763aeef9ff52"); pusher.Connect(); Error is: System.MissingMethodException HResult=0x80131513 Message=Method not found: 'Void WebSocket4Net.WebSocket..ctor(System.String, System.String, System.Collections.Generic.List1<System.Collections.Generic.KeyValuePair2<System.String,System.String>>, System.Collections.Generic.List1<System.Collections.Generic.KeyValuePair2<System.String,System.String>>, System.String, System.String, WebSocket4Net.WebSocketVersion, System.Net.EndPoint)'. Source=PusherClient StackTrace: at PusherClient.Connection.Connect() [...] read more
c#
pusher
websocket4net
0votes
2answers

Injecting custom repository in aspnetboilerblate

I am trying to setup a customrepository becuase I have a full text search based query. But trying to setup a custom repository is throwing exception. Looks like I have not properly wired up dependency. Here is the code public interface ICustomRepository<TEntity, TPrimaryKey> : IRepository<TEntity, TPrimaryKey> where TEntity : class, [...] read more
c#
castle-windsor
asp.net-core-2.0
aspnetboilerplate
0votes
1answer

Activator.CreateInstance - parameterless constructor issue

I'm trying to dynamically pull types from an assembly which have a base of EntityTypeConfiguration (Entity Framework-ism). After I have all the types, I want to instantiate an object for each and pass it to a builder (DbModelBuilder) function. Sample class: public class LocationConfiguration : EntityTypeConfiguration<Location> { public LocationConfiguration() { [...] read more
c#
system.reflection
0votes
1answer

jni4net return value from c# to java

I'm using jni4net to call a library i made in C# (using visual studio 2013) from Java (Eclipse). Here is the code of my C# library : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary2 { public class Class1 { // Simple method that just prints [...] read more
java
c#
jni4net
0votes
1answer

Calling static function of C# .NET in C (ICLRRuntimeHost_ExecuteInDefaultAppDomain)

I have this class KernelHelper which is written in C# .NET Framework 2.0. What I want to do is call its static functions in a C program. namespace Kernel.Client { public class KernelHelper { public static int testc(string msg) { // Removing the message box does not change anything System.Windows.Forms.MessageBox.Show(msg); [...] read more
c#
.net
visual-studio-2010
dll
clr

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