I'm getting this error when I add EntityFramework to my project .
TypeLoadException: Could not load type 'CultureAwaiter' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Microsoft.AspNet.Diagnostics.Entity.DatabaseErrorPageMiddleware.Invoke(HttpContext context)
Microsoft.AspNet.Diagnostics.ErrorPageMiddleware.d__1.MoveNext()
Related
+$exception {Quartz.JobPersistenceException: Couldn't store job: Type
'System.Collections.Specialized.NameValueCollection' in Assembly
'System.Collections.Specialized, Version=4.1.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable. --->
System.Runtime.Serialization.SerializationException: Type
'System.Collections.Specialized.NameValueCollection' in Assembly
'System.Collections.Specialized, Version=4.1.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.
This is caused by .NET Core incompatibility for serialization, please switch to using JSON serialization as described in this issue. - #lahma.
Hope this helps others.
I am using EF6 but got this error Assembly 'TBLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' which has a higher version than referenced assembly 'EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
You have to uninstall related packages and re-install them by using package manager console
I am adding MvcSiteMapProvider in my sample site using Package Manager console like
PM> Install-Package MvcSiteMapProvider.MVC4
but after installation completion facing below Error.
i.e.
uses 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral
Error is like below :
Error 18 Assembly 'MvcApplication1121097jhgf7621jhg9999, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' c:\Offline\MvcApplication1121097jhgf7621jhg9999\MvcApplication1121097jhgf7621jhg9999\bin\MvcApplication1121097jhgf7621jhg9999.dll MvcApplication1121097jhgf7621jhg9999.Tests
I have changed all references form config files, which are referencing to version 4.0.0.0 to 4.0.0.1, but even after that above error is coming. Please help me.
When we run FxCopCmd keeping *.dll as the input , is there anything we can do to just run the ones with pdb , so that we don't get the error Failed to Load assemblies without the pdb?
UPDATE: It's not an error maybe because the execution continues, strangely I'm not getting Failed to Load assemblies warnings. But i get te below warnings due which the Process.Errorcode is not 0
Conflicting target platforms 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' vs 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.Conflicting target platforms 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' vs 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.Conflicting target platforms 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' vs 'mscorlib,
I have an NServiceBus endpoint configured to UseNHibernateTimeoutPersister.
I use EL 5 for logging:
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
I also added a reference in the project to the NServiceBus.Core.
Why do I get the following CodeAnalysis warning:
Warning 36 CA0060 : The indirectly-referenced assembly 'Common.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: c:\NServicebus3.3.2\NServiceBus.NHibernate.dll.
You need to add a reference to Common.Logging v2, you can get that from nuget using the following:
PM> Install-Package Common.Logging -Version 2.0