Mkbundle Mono Assembly binding redirection

I have a sample .NET application that runs fine on windows, and my Ubuntu environment using mono.

I am trying to use Mkbundle to create a single native assembly so I can docker containerize it using busybox and keep the size small instead of the usually huge bloated containers.

The problem I am running into is with, I think its due to assembly binding redirection from the app.config file, anyone else ran into this?

<?xml version="1.0" encoding="utf-8"?> <configuration> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" /></startup> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="" newVersion="" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>

And its producing the following error both with and without --static

Mkbundle Mono Assembly binding redirection

Category:c# Views:14 Time:2018-12-04

Related post

  • .Net Assembly Binding Redirect with Differing Public Key Tokens 2010-02-03

    Is it possible to perform an assembly binding redirect between different versions of a referenced assembly if the public key token is null on the older version and set on the newer version? For example, I have two assemblies... System.Web.Mvc, Versio

  • Assembly binding redirect does not work 2010-08-16

    I'm trying to set up an assembly binding redirect, using the following app.config: <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Microsoft.A

  • Assembly Binding Redirection and Code Analysis 2010-10-28

    I'm using DotNetOpenAuth (which references System.Web.Mvc version in a Mvc project in Visual Studio 2010. I'm using assembly binding redirection as follows:- <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1

  • MOSS 2007: 3 additional assembly binding redirects, where are they coming from 2009-06-26

    I have a web.config of a functioning MOSS server with our custom settings and a web.config of a freshly installed MOSS. Here's 3 redirects I don't know the source of: <dependentAssembly> <assemblyIdentity name="Microsoft.SharePoint.Portal.Si

  • How to use Assembly Binding Redirection to ignore revision and build numbers 2009-09-22

    I have several .NET applications in C#, along with an API for them to access the database. I want to put all versions of the API in the database, and have them pick the highest revision and build number, but stick with the major and minor number they

  • Assembly Binding Redirection: v4 app using v2 libraries, need to be using v2 redirects 2011-12-12

    What is the best way to configure my .Net 4 application to use the third party library redirects located in the .Net 2 machine.config other than copying the entries? If copying the entries is the only way, how can I do that using InnoSetup? ---------

  • I want my DotNetNuke modules to work under as many versions as possible while avoiding assembly binding redirection 2012-04-14

    I am developing DotNetNuke modules and naturally want them compiled before installing or distributing them. In the past I've simply referenced a specific version of DotNetNuke.dll by browsing to the /BIN folder of a local DotNetNuke installation. Thi

  • How to setup Binding redirect with Nunit's gui runner? 2010-04-21

    I am trying to run my unit tests with nHibernate 3 and fluentnHibernate, To do this I need to setup a assembly binding redirect so fluentnHibernate will work with the new version of nHibernate. I have tried to update my test project's app.config howe

  • Binding redirect problem in .net 2009-11-17

    I have a class library called "MyAssembly" that is internally referencing a.dll, b.dll of version; I have build the project which outputed MyAssembly.dll. On a different system (box) I have created a web application project and referenced the

  • Active Reports 3 new dll version binding redirects not working 2010-05-25

    I recently made some upgrades to one of the Active Reports 3 (AR3) report DLLs that I use and I needed to use the 5.3.1436.2 (previously using 5.2.835.2). Now, this is one report dll out of 30, and I didn't want to change the references for every rep

  • binding redirect not working in test project 2010-07-28

    When applying a binding redirect in the app.config of the test project. The runtime refuses to obey the redirect command and keeps searching for the old version of the assembly <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.

  • Preventing .NET Assembly Version Redirection for System.Web.Services as Referenced by WSE 2010-11-11

    I've got an ASP.NET web site application targeting the .NET 4.0 Framework and the application exposes some web services using WSE 3.0 (Microsoft.Web.Services3.dll) for security. I'm getting a SoapHeaderException: SOAP header Security was not understo

  • Is it possible to create a binding redirect at runtime? 2011-04-13

    Once an application has started is there a way to create a binding redirect that will apply to all future assembly loads? --------------Solutions------------- It could be possible using ICLRHostBindingPolicyManager::ModifyApplicationPolicy, but I've

  • Moles and Binding Redirects 2011-06-27

    The scenario I have is pretty common, one nuget package is using V1.0 and another is using V1.1 so I had to add a Binding Redirect. However, the moles runner appears to be ignoring the binding redirect in both the App.config and assembly config file.

  • Downgrade (use a lower-versioned library) with a binding redirect 2011-07-08

    I'm using an older version of NHibernate (v3.0.0.1001) and I'm stuck to it because the new LINQ provider breaks quite a few of my queries (something I'll be trying to fix later). I want to update a library that uses NHibernate v3.1.0.4000. I've tried

  • SideBySide Error with Binding Redirect in .net Windows Service 2014-09-11

    I have a .net windows service which needs to load two different versions of an assembly. It runs on a server 2012 R2 box. I am using a binding redirect in separate .config file which is loaded into the main app.config using this before the closing

  • How to enable assembly bind failure logging (Fusion) in .NET 2008-11-01

    How do I enable assembly bind failure logging (Fusion) in .NET? --------------Solutions------------- Add the following values to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion Add: DWORD ForceLog set value to 1 DWORD LogFailures set value to 1 DWORD Lo

  • Assembly binding problems in .NET 2008-12-10

    I am writing a .NET library that for various reasons cannot be registered in the GAC. This dll (let's call it SDK.dll) depends on other DLLs in order to be loaded. When writing a program that uses this SDK.dll, I noticed that my program failed loadin

  • .NET Framework 3.5, Assembly Binding Logging 2009-11-24

    I am getting the following error: Could not load file or assembly 'System.Web.DynamicData, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. I've researched the p

  • Why do I get assembly bind failure in IIS CGI program 2010-02-19

    I have a C# program that is running as a CGI app in IIS on XP Pro SP3. It runs fine until I reference a library assembly class and use it in the program's code. If I run the CGI program by hand it loads and executes. But when it is run by IIS the ref

  • Specify Search Path for .net assembly binding/Fusion in app.config? 2010-04-08

    I have an application that depends on other .net assemblies. When I start the application, I get an error that an assembly or one of its dependencies cannot be loaded. I do not want to put the assemblies into the GAC or into the Directory of the appl

  • Assembly Binding Log Viewer (fuslogvw) not logging any bindings 2010-07-13

    Assembly Binding Log Viewer (fuslogvw) is not logging bindings for any version of the framework installed on my machine. I tried using a custom log location, the default log location, the default category, and the native images category. Assembly Bin

  • assembly binding logging is turned off 2010-08-06

    im trying to run a web appilication in .net framework... and got error.. help me to resolve.. thanks in advance... Server Error in '/PSS.NET' Application. Configuration Error Description: An error occurred during the processing of a configuration fil

  • Infamous assembly binding error 2010-09-19

    I really need help on this because I lost my hopes to correct the problem. I am using Office Communications Server 64bit libraries. There are 3 dlls I use in the project, Microsoft.Rtc.Collaboration.dll, Microsoft.Rtc.Internal.Media.dll and SIPEPS.dl

  • Assembly binding error - fusion log and dependency browser mismatch 2010-11-16

    I'm chasing down an assembly loading/binding error that has popped up recently. During my investigation I've found a confusing contradiction (assuming I'm parsing the fusion log correctly). The exception that is thrown by my application at startup st

Copyright (C), All Rights Reserved.

processed in 0.134 (s). 11 q(s)