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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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