.net-assembly

Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies

三世轮回 提交于 2019-12-10 19:12:10
问题 This one error is driving me nuts. I installed the SendGrid NuGet package in one of my class libraries named BaseServices , which has a dependency on Newtonsoft.Json v7.0.1 , so it installs that in my packages folder and references that. In the class library, I have this binding redirect: <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" /> </dependentAssembly>

Nuget Assembly reference Microsoft Owin after upgrade to 3.0.1

做~自己de王妃 提交于 2019-12-10 18:53:19
问题 In the package manager it states the version is 3.01, But when I build the project in Visual Studio 2013, is gives this message. I have looked everywhere and can't find a reference to Microsoft Owin 3.0 except in web.config. It is 3.0.1 in the packages.config file. In the web.config all the Owin files still say 3.0.0. Please let me know if there is anything I can do beside remove Owin from the project. Error 6 Assembly 'Microsoft.Owin.Host.SystemWeb, Version=3.0.1.0, Culture=neutral,

The AssemblyTitle never changes once set, I want it to be changed per configuration

元气小坏坏 提交于 2019-12-10 17:45:25
问题 I would like to change the text shown in the screenshot below based on the Product name. I know, the text is taken from Assembly.Title property which is a read only property and so can not be changed at runtime. So how do I change it at compile time? We sell the application to multiple customers and the name of the application should change per customer. We have a configurations for each customer. So at build time, Assembly title should be selected as per the configuration. Any suggestion how

.NET assembly binding, can I map an assembly to a version in another assembly?

纵然是瞬间 提交于 2019-12-10 17:12:46
问题 Good Morning, Is it possible to map assembly requests to the version within another assembly? For instance our product uses NHibernate 3.2. We are moving to NServiceBus 3.2.2. For DBSubscription storage it uses NHibernate and it's baked in version of NHibernate which is 3.3 in NServiceBus.NHibernate. How can I map requests for NHibernate 3.2.0.2002 to NServiceBus.NHibernate which is 3.3... <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />

GAC seems to contain two assemblies with identical name, version and public key token

无人久伴 提交于 2019-12-10 15:04:19
问题 I'm currently staring into this page that claims to list the contents of GAC on a typical Azure VM. Note that the following assemblies and many others are listed twice. AuditPolicyGPManagedStubs.Interop, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 TWICE CustomMarshalers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a TWICE CustomMarshalers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a TWICE ISymWrapper, Version=2.0.0.0, Culture

IOException when dynamically compiling code

孤者浪人 提交于 2019-12-10 13:23:40
问题 I have the following line of code: CSharpCodeProvider c = new CSharpCodeProvider(); CompilerParameters cp = new CompilerParameters(); cp.ReferencedAssemblies.Add("system.dll"); cp.CompilerOptions = "/t:library"; cp.GenerateInMemory = true; CompilerResults cr = c.CompileAssemblyFromSource(cp, sb.ToString()); Which results in an IOException being thrown. Additional information: The process cannot access the file 'C:\Users\Username\AppData\Local\Temp\dgl5fb1i.err' because it is being used by

Can a .Net namespaces span multiple assemblies?

拈花ヽ惹草 提交于 2019-12-10 10:37:32
问题 Can a .Net namespaces span multiple assemblies? Specific examples would be helpful. 回答1: Yes. Eg. System is, some of it is in mscorlib.dll , other parts are in System.dll and System.Core.dll (and, I assume, others). 回答2: Yes. And this is the right approach to separate different logic parts of your application. YourApp.Dal - separate assembly with data access layer. YourApp.Infrastructure - separate assembly with some infrastructure. YourApp.Web - web part of your application. 来源: https:/

Automate AssemblyFileVersion Incrementation using GIT

限于喜欢 提交于 2019-12-10 08:26:37
问题 Ok I understand that this is probably not conventional, but that aside: I am using the AssemblyFileVersion as kind of my "Build Name" string. It is formated like this: ' File Version information for an assembly consists of the following four values: ' ' Year ' Month ' Day ' Commit Number for that day ' ' Build Name can either be alpha | beta | hotfix | release ' alpha - is a development buildname with rapid changing API ' beta - is a production build for our beta users ' hotfix - is a

Assembly Dependencies Change After Installation

懵懂的女人 提交于 2019-12-10 03:16:56
问题 I have a .NET application that seems to have some of its dependency versions change between debugging and running as an installed release app. I'll just focus on the Castle.Core assembly for my details, but the same issue occurs with a couple others as well. A NuGet package I'm using requires Castle.Core as a dependency (all cases of my issue are related to assemblies originating from NuGet, in case it matters). In Visual Studio, when I install the NuGet package with the Castle.Core

Namespace System.Web.Http.Results not found within asp.net web api application

偶尔善良 提交于 2019-12-09 21:45:28
问题 I have an asp.net web api application in which I have this line : using System.Web.Http.Results; My problem is that the namespace isn't recognized, I verified the dll system.Web.Http exists in the bin folder !! So I need to know: What is the reason of this problem? How can I fix it? 回答1: You need reinstalling the NuGet package, which corrects broken dependencies. Open package manager and run Update-Package Microsoft.AspNet.WebApi -reinstall. 回答2: The above solution didn't work for me as it