Team Foundation Server 2015 MsBuild 14 - visual-studio

I am getting the following Conflict which doesn't make sense:
2>ResolveAssemblyReferences:
No way to resolve conflict
between "System.Web.Mvc, Version=5.2.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" and "System.Web.Mvc, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing
"System.Web.Mvc, Version=5.2.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" arbitrarily.
No way to resolve conflict
between "System.Web.Mvc, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" and "System.Web.Mvc, Version=3.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35". Choosing
"System.Web.Mvc, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" arbitrarily.
Consider app.config
remapping of assembly "System.Web.Mvc, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" from Version "5.2.0.0" [] to Version
"5.2.3.0"
[C:\BuildAgent_work\1\s\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll]
to solve conflict and get rid of warning.
[warning]C:\Program Files
(x86)\MSBuild\14.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(1819,5):
Warning MSB3247: Found conflicts between different versions of the
same dependent assembly. In Visual Studio, double-click this warning
(or select it and press Enter) to fix the conflicts; otherwise, add
the following binding redirects to the "runtime" node in the
application configuration file:
The solution has 3 project and they all use Version=5.2.3.0. When i run local in Visual Studio I don't get this warning.
Any ideas how to fix it?

It seems your issue is because the assembly on your local machine and build agent machine are different. You can try to remove/uninstall the assemblies and reinstall them from Manage Nuget Packages, the warning should disappear.

Related

Visual Studio update 15.7.2 breaks Xamarin Android project

After updating Visual Studio, I can no longer build the release version of my Xamarin project:
1>Foobar.Android ->
C:\Apps\foobar-telerik-mobile-app\foobar\Android\bin\Release\foobar.Android.dll1>No
way to resolve conflict between "mscorlib, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib,
Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e".
Choosing "mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" arbitrarily.1>The
"LinkAssemblies" task failed
unexpectedly.1>Mono.Linker.MarkException: Error processing method:
'System.Void
Telerik.XamarinForms.DataGrid.RadDataGridResourceDictionary::InitializeComponent()'
in assembly: 'Telerik.XamarinForms.DataGrid.dll' --->
Mono.Cecil.ResolutionException: Failed to resolve
System.Func`2
Xamarin.Forms.Internals.ResourceLoader::get_ResourceProvider()
If the Android option "Use Shared Runtime" is true, it will build - except you cannot publish with that option set! So there is no point.
I have no idea how to fix this. Any Microsoft/Xamarin/Telerik insiders out there with some ideas?

Unity dependency based warning: mscorlib, System

I get this when I add Unity to my project, and no longer get this once I remove it. Tried package -reinstall..
I'm using .net 4.7 in VS 2017
No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
12>No way to resolve conflict between "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes". Choosing "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.

Webmatrix crashing whenever site is opened or created

A couple of days ago I tried to open my Orchards MVC site from WebMatrix and it crashed. Currently any site I try and open, or even if I attempt to create an empty site, causes WebMatrix to stop working. I get windows error dialog box telling me that "Web Matrix Has Stopped Working". I am completely at a loss on what caused this. I already posted on the iis.net forums (http://forums.iis.net/post/2061458.aspx) but have not received a reply.
I have restarted, uninstalled and resinstalled both WebMatrix and IIS 8 express.
There are two errors in the event viewer. Detailed below. Anyhow would be very appreciated since this is keeping me from working on my site.
Thanks in advance.
First Error
Application: WebMatrix.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
at Microsoft.WebMatrix.Core.DynamicHelp.DynamicHelpManager.GetMatchedContent(Microsoft.WebMatrix.Core.DynamicHelp.DynamicHelpProviderLevelContent, Microsoft.WebMatrix.Core.DynamicHelp.IApplicationStateChangedContext)
at Microsoft.WebMatrix.Core.DynamicHelp.DynamicHelpManager+HelpContent.<GetContent>b__22(Microsoft.WebMatrix.Core.DynamicHelp.DynamicHelpProviderLevelContent)
at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Linq.Enumerable+WhereEnumerableIterator`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Linq.Enumerable+<SelectManyIterator>d__14`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Collections.Generic.KeyValuePair`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Linq.Lookup`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Create[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, System.Func`2<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>,System.__Canon>, System.Func`2<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>,System.__Canon>, System.Collections.Generic.IEqualityComparer`1<System.__Canon>)
at System.Linq.GroupedEnumerable`3[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetEnumerator()
at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Linq.Buffer`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.Collections.Generic.IEnumerable`1<System.__Canon>)
at System.Linq.Enumerable.ToArray[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>)
at Microsoft.WebMatrix.Core.DynamicHelp.DynamicHelpManager+HelpContent.GetContent(System.Collections.Generic.IEnumerable`1<Microsoft.WebMatrix.Core.DynamicHelp.IDynamicHelpContentProvider>)
at Microsoft.WebMatrix.Core.DynamicHelp.DynamicHelpManager+<GetHelpHistoryEnumerator>d__1b.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Func`2<System.__Canon,Boolean>)
at Microsoft.WebMatrix.Core.DynamicHelp.DynamicHelpManager.get_LatestHelp()
at Microsoft.WebMatrix.Core.DynamicHelp.DynamicHelpManager.RaiseLatestHelpContentUpdated()
at Microsoft.WebMatrix.Core.DynamicHelp.DynamicHelpManager.OnApplicationStateChanged(System.Object, Microsoft.WebMatrix.Core.DynamicHelp.ApplicationStateChangedEventArgs)
at Microsoft.WebMatrix.Core.DynamicHelp.ApplicationStateWhenInputIdleNotifier.<.ctor>b__0()
at Microsoft.WebMatrix.Utility.SingletonBackgroundAction+<>c__DisplayClass2.<.ctor>b__0(System.Object)
at Microsoft.WebMatrix.Utility.SingletonBackgroundAction`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].RunAction(System.__Canon)
at Microsoft.WebMatrix.Utility.SingletonBackgroundAction`1+<>c__DisplayClass3[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<Schedule>b__1(System.Object)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Second Error
Faulting application name: WebMatrix.exe, version: 7.1.1932.0, time stamp: 0x52589c06
Faulting module name: Microsoft.WebMatrix.Core.ni.dll, version: 7.1.1932.0, time stamp: 0x52589c13
Exception code: 0xc0000005
Fault offset: 0x005e9398
Faulting process id: 0x2318
Faulting application start time: 0x01cedff7bbec8f10
Faulting application path: C:\Program Files (x86)\Microsoft WebMatrix\WebMatrix.exe
Faulting module path: C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.W38826ba1#\89265eccf2f3657048b6111d09c73386\Microsoft.WebMatrix.Core.ni.dll
Report Id: fd0ed1bd-4bea-11e3-bec0-98fc11e3977e
Faulting package full name:
I did NOT have to uninstall WebMatrix 3. I just deleted this folder and its contents.
C:\Users\your_username\AppData\Local\Microsoft\WebMatrix
Uninstall Webmatrix3 and install Webmatrix2, this is solved my problem
I have the same issue. I guess the issue is caused by a php component installed. Anyway, the following steps solve my issue.
1) Remove Webmatrix 3
2) Delete C:\Users\your_username\AppData\Local\Microsoft\WebMatrix
3) Reinstall Webmatrix 3
I had the same problem. To solve it:
Uninstall Web Matrix
Backup My Web Sites directory
search for WebMatrix on the C:\ and delete everything including DLL
Re-install WebMatrix
Even if I try and open my site with webmatrix3, to create an empty site causes WebMatrix to stop working.
Solution for me
1.) Remove Webmatrix 3
2.) Delete C:\Users\your_username\AppData\Local\Microsoft\WebMatrix
3.) Reinstall Webmatrix 3
I didn't have to uninstall webmatrix. Just deleting the folder as above worked.
Delete C:\Users\your_username\AppData\Local\Microsoft\WebMatrix
Unbelievable though that it's still an issue? How many years later..?
uninstalled Webmatrix 3
Delete C:\Users\your_username\AppData\Local\Microsoft\WebMatrix
installed webmatrix 2 works for my sites

how to resolve runtime error in mvc3 razor view (Assembly 'MvcApplication2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')

I want to create a mvc3 web razor application in visual studio 2010 professional. I added mvc3 web project with razor view but when i compile it it gives error of MVC.WEB.dll older version. then i updated mvc.web.dll to version 4 and web.mvc.webpages to version 2 in my refference assemblieis.
I already added the web.config file configurations when it gives compile time error as show below
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
</assemblies>
</compilation>
but now it not give the compile time error as shown below.
Assembly 'MvcApplication2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Please help me to resolve this matter.
I want to create a mvc3 web razor application
and then
i updated mvc.web.dll to version 4
what?
Exception ... which has a higher version than referenced assembly ...
Try to remove reference from project references (left click on System.Web.Mvc and press delete), then References -> Add reference sort by name on first tab and select System.Web.Mvc with 4.0.0.0 in second column (version).
Under the References you will find the System.Web.Mvc referenced
remove this reference and add a new reference of higher version i.e 4.x

Assembly created by Moles in VS2010 is referencing MVC3 and MVC4 after install of VS2012

Assembly 'dllname.Moles, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
A MVC3 solution targetting the .NET4.0 framework, with a unittest project using the Moles framework, worked perfectly in Visual Studio 2010. MVC4 was not installed on this computer.
After installation of Visual Studio 2012 (and the mandatory in place replacement of .NET4.0 by .NET4.5 and the installation of MVC4), the unittest project doesn't compile anymore in VS2010, it complains about the given error.
When we inspect the assembly, we see effectively that it is referencing MVC4 and MVC3??
BoneSoft.CSS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
itextsharp, Version=5.1.2.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca
Microsoft.ExtendedReflection, Version=0.94.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Microsoft.Moles.Framework, Version=0.94.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
NHibernate.Validator, Version=1.3.1.4000, Culture=neutral, PublicKeyToken=70154e18752585bd
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
MVC4 is never referenced in the whole solution, but Moles somewhere thinks it must be included when generating a 'moles assembly' of a assembly who is referencing MVC3.
I have also moles assemblies of other assemblies who are not referencing MVC3 and there no problem at compiling time.
I deleted already the moles assembly in the project, rebuilded and recreated the moles assembly: same error.
Ideas where to search the problem?
When you installed VS 2012, it installed MVC4 on the box. MVC 3 wont work well SxS with MVC 4. You need to update MVC 3 app to work on machine where MVC 4 is installed.This is documented in release notes for MVC 4.0. Please read section Installing ASP.NET MVC 4 breaks ASP.NET MVC 3 RTM applications. Follow setps "Required updates".
I was getting a similar error on a project so I removed the reference to MVC and re-added the reference to MVC 3, then I was able to compile.
Looking at the .csproj file, before it read:
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
and after re-adding the reference:
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
So it looks like the tag <SpecificVersion>False</SpecificVersion> was letting the project look for the reference to the newer version of MVC, which was causing the version conflict.

Resources