assemblybinding

Could not load file or assembly Autofac, Version=3.3.0.0

北城以北 提交于 2019-12-03 17:13:22
问题 After upgrading my project from Autofac 2.6.3.862 to 3.4.0.0, I had the following error. I even didn't add any reference to Autofac 3.3.0.0 in any project in solution. === Pre-bind state information === LOG: DisplayName = Autofac, Version=3.3.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da (Fully-specified) LOG: Appbase = file:///C:/Projects/Drive/temp/drive/Src/Web/ LOG: Initial PrivatePath = C:\Projects\Drive\temp\drive\Src\Web\bin Calling assembly : Autofac.Configuration, Version=3.3

Could not load file or assembly System.Web.Http, Version=5.2.2.0

我只是一个虾纸丫 提交于 2019-12-03 14:56:41
问题 I've just uploaded a Asp.Net Web Api 2.2 project to production server and I got the error stated in the title. In my Web.config I already have this: <dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-5.2.2.0" newVersion="5.2.2.0" /> </dependentAssembly> The file does exist in the bin. What would cause this? All my Asp.Net Web API files are up to date and show 5.2.2 as the version. It works

What is the meaning/reason for the generated entries in web.config>configuration>runtime>assemblyBinding?

无人久伴 提交于 2019-12-03 14:22:55
问题 I've noticed this section in my web.config files for a while and I'm now trying to reason out what exactly the purpose is: <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect

Could not load file or assembly System.Web.Http, Version=5.2.2.0

喜你入骨 提交于 2019-12-03 04:44:53
I've just uploaded a Asp.Net Web Api 2.2 project to production server and I got the error stated in the title. In my Web.config I already have this: <dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-5.2.2.0" newVersion="5.2.2.0" /> </dependentAssembly> The file does exist in the bin. What would cause this? All my Asp.Net Web API files are up to date and show 5.2.2 as the version. It works fine on my dev machine. Set Copy Local to true in the properties for the System.Web.Http and System.Web

Assembly Binding Redirection and Code Analysis

亡梦爱人 提交于 2019-12-02 17:25:48
I'm using DotNetOpenAuth (which references System.Web.Mvc version 1.0.0.0) in a Mvc 3.0.0.0 project in Visual Studio 2010. I'm using assembly binding redirection as follows:- <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> Everything works fine, except code analysis which gives me the following errors:- CA0001 : The following error was encountered while

Error loading System.Management.Automation assembly

一世执手 提交于 2019-12-01 04:58:33
问题 I am developing a WPF application which is running a powershell script. string scriptPath = "/script/myscript.ps1"; Runspace runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); Pipeline pipeline = runspace.CreatePipeline(); pipeline.Commands.AddScript(scriptPath); Collection<PSObject> results = pipeline.Invoke(); I have added the following assembly. C:\Program Files (x86)\Reference Assemblies\Microsoft\WindowsPowerShell\3.0\System.Management.Automation.dll But when program runs

.Net Assembly Binding Redirect with Differing Public Key Tokens

本秂侑毒 提交于 2019-11-30 06:02:27
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, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null and System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 Should the following assembly binding redirect work in the Asp.Net web.config... <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc"

How can I enable Assembly binding logging?

别等时光非礼了梦想. 提交于 2019-11-28 03:39:41
I'm getting, "Could not load file or assembly 'Bla' or one of its dependencies. An attempt was made to load a program with an incorrect format." A portion of the detailed info says: "WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]." So, thinking this may give me some insight in why I'm getting the

How can I enable Assembly binding logging?

☆樱花仙子☆ 提交于 2019-11-27 00:08:31
问题 I'm getting, "Could not load file or assembly 'Bla' or one of its dependencies. An attempt was made to load a program with an incorrect format." A portion of the detailed info says: "WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM