Visual Studio 2013 Crashed after Update 2? - crash

I just installed Visual Studio 2013 Update 2 (my OS is Windows 8).
After installing, whenever I open Visual Studio I got the following error :
It's OK until here, but if I open a project, Visual Studio crash
Last records in ActivityLog.xml :
<entry>
<record>964</record>
<time>2014/05/20 19:38:45.997</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
</entry>
<entry>
<record>965</record>
<time>2014/05/20 19:38:45.997</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [JSONPackage]</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
</entry>
<entry>
<record>966</record>
<time>2014/05/20 19:38:45.998</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [JSONPackage]</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
<hr>80070002</hr>
<errorinfo>Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Languages\Microsoft.VisualStudio.JSON.Package.dll' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>
<entry>
<record>967</record>
<time>2014/05/20 19:38:46.013</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [JSONPackage]</description>
<guid>{A6EFEF5F-BE9B-432A-ADFE-74A119AB4478}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo>Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Languages\Microsoft.VisualStudio.JSON.Package.dll' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>
<entry>
<record>968</record>
<time>2014/05/20 19:38:54.439</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{60116BB0-6F13-49E2-A1CE-A185C783B68B}</guid>
</entry>
<entry>
<record>969</record>
<time>2014/05/20 19:38:54.439</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [ScssPackage]</description>
<guid>{60116BB0-6F13-49E2-A1CE-A185C783B68B}</guid>
</entry>
<entry>
<record>970</record>
<time>2014/05/20 19:38:54.498</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [ScssPackage]</description>
<guid>{60116BB0-6F13-49E2-A1CE-A185C783B68B}</guid>
<hr>80131522</hr>
<errorinfo>Could not load type 'Microsoft.Scss.Editor.ScssPackage' from assembly 'Microsoft.VisualStudio.Web.Extensions, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
</entry>
<entry>
<record>971</record>
<time>2014/05/20 19:38:54.498</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [ScssPackage]</description>
<guid>{60116BB0-6F13-49E2-A1CE-A185C783B68B}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo>Could not load type 'Microsoft.Scss.Editor.ScssPackage' from assembly 'Microsoft.VisualStudio.Web.Extensions, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
</entry>
I also checked windows error logs :
1:
Failed to schedule Software Protection service for re-start at 2014-06-19T18:46:39Z. Error Code: 0x80070005.
2:
Faulting application name: devenv.exe, version: 12.0.30501.0, time stamp: 0x5361f453
Faulting module name: csproj.dll, version: 12.0.21005.1, time stamp: 0x524fcb78
Exception code: 0xc0000005
Fault offset: 0x0003151e
Faulting process ID: 0x15d0
Faulting application start time: 0x01cf74627d760129
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Faulting module path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC#\VCSPackages\csproj.dll
Report ID: 7b06404e-e056-11e3-8172-74f06dc3132d
Faulting package full name:
Faulting package-relative application ID:
3:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at Microsoft.VisualStudio.Shell.Interop.IVsTaskBody.DoWork(Microsoft.VisualStudio.Shell.Interop.IVsTask, UInt32, Microsoft.VisualStudio.Shell.Interop.IVsTask[], System.Object ByRef)
at Microsoft.VisualStudio.Services.VsTask+<>c__DisplayClass29.<GetCallbackForMultipleParent>b__28(System.Threading.Tasks.Task`1<System.Object>[])
at Microsoft.VisualStudio.Services.VsTask+<>c__DisplayClass2f.<GetCallback>b__2e()
at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(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.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
at System.Threading.Tasks.TaskScheduler.TryExecuteTask(System.Threading.Tasks.Task)
at Microsoft.VisualStudio.Services.TaskSchedulerService.VsUIThreadBlockableTaskScheduler.DoOneTask()
at Microsoft.VisualStudio.Services.TaskSchedulerService.VsIdleTimeScheduler.FDoIdle(UInt32)
4:
Failed to schedule Software Protection service for re-start at 2014-06-19T18:46:39Z. Error Code: 0x80070005.
5:
Failed to schedule Software Protection service for re-start at 2014-06-19T18:46:39Z. Error Code: 0x80070005.
How can I fix the problem ?
Edit:
The problem doesn't solve with re installing update 2.

The problem stems from the extension: "Visual Studio Extensions for Windows Library for Javascript." This was updated as part of VS 2013 Update 2.
If you uninstall this extension, the error messages should go away. This must be done from the "Programs and Features" control panel window outside of Visual Studio.
After uninstalling this and restarting Visual Studio, it will say that it is still installed (for me, anyways). However, the errors should go away.

Running VSE 2013 for Web, did Update 4, got above message:
CreateInstance failed for package [JSONPackage]
Checked Control Panel, I had VSE for JS v1.0.9200.20789 AS WELL AS and 2.1.30324.53 installed. First I uninstalled the older version, tried loading VSE, got same message.
Then uninstalled other instance of newer version, got same message.
Then tried "Repair" of Update 4, will see if that helps.

In my case VS2013 Update 5, I had exactly the same issue. I solved it uninstalling all the Resharper Extensions.
Resharper -> Extension Manager -> Installed extensions

Related

Visual Studio 2017 cast to SqlDatabaseTestClass error when opening SQL unit test cs file

In Visual Studio 2017 (15.9.3) when opening a SQL unit test file I get the following error and the test designer refuses to display:
[A]Microsoft.Data.Tools.Schema.Sql.UnitTesting.SqlDatabaseTestClass cannot be cast to [B]Microsoft.Data.Tools.Schema.Sql.UnitTesting.SqlDatabaseTestClass.
Type A originates from 'Microsoft.Data.Tools.Schema.Sql.UnitTesting,
Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the context 'LoadNeither'
at location 'C:\Users\myaccount\AppData\Local\Microsoft\VisualStudio\15.0_892b908b\ProjectAssemblies\hxuywdf401\Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll'.
Type B originates from 'Microsoft.Data.Tools.Schema.Sql.UnitTesting,
Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the context 'LoadFrom'
at location 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\ENTERPRISE\COMMON7\IDE\EXTENSIONS\MICROSOFT\SQLDB\Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll'.
Call stack:
at Microsoft.VisualStudio.Data.Tools.Package.UnitTesting.Design.Serialization.SqlUnitTestClassSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)
The SQL unit test files used to open and other members of my team do not have this problem (so the problem must be local to my machine rather than being a problem with the project itself).

Unit tests pass with "dotnet test" but fail when run from Visual Studio 2017 Test Explorer

My XUnit 2.2 tests all pass when run from the command line with dotnet test. When running them from Visual Studio 2017's Test Explorer some of the tests fail with Assembly Binding errors.
My test project targets .Net 4.6.2 and references an ASP.Net Core 1.1 application also targeting .Net 4.6.2. The unit tests were working fine in VS 2015 prior to upgrading to the .NET Core 1.1 release tooling and Visual Studio 2017.
The workaround was to create an app.config file for the test project and add all of the needed binding redirects to it via trial and error. I'm not sure why I have to do this, though.
It appears that when using dotnet test the runtime uses the newer assembly versions without complaint. When running from Visual Studio, the redirects are necessary.
Why is there a difference in the assembly binding behavior between these two methods of running the tests?
Sample assembly binding error:
The operation failed.
Bind result: hr = 0x80131040. No description available.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\vstest.executionengine.x86.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Extensions.Configuration.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
(Fully-specified)
LOG: Appbase = file:///C:/xx/xx/xx.Tests/bin/Debug/net462
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = C:\Users\xxxxx\AppData\Local\Temp\a1ec4d3c-04ff-4fa0-9e56-129e799dd870
LOG: AppName = a1ec4d3c-04ff-4fa0-9e56-129e799dd870
Calling assembly : Serilog.Settings.Configuration, Version=2.2.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\vstest.executionengine.x86.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.Extensions.Configuration.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/xx/xx/xx.Tests/bin/Debug/net462/Microsoft.Extensions.Configuration.Abstractions.DLL.
LOG: Assembly download was successful. Attempting setup of file: C:\xx\xx\xx.Tests\bin\Debug\net462\Microsoft.Extensions.Configuration.Abstractions.dll
LOG: Entering download cache setup phase.
LOG: Assembly Name is: Microsoft.Extensions.Configuration.Abstractions, Version=1.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: The assembly reference did not match the assembly definition found.
ERR: Setup failed with hr = 0x80131040.
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
And the redirect needed to solve it:
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" culture="neutral" publicKeyToken="adb9793829ddae60" />
<bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="1.1.1.0" />"
</dependentAssembly>
It turns out this issue is being tracked at https://github.com/Microsoft/vstest/issues/428
The workaround is to add the following two items to the test project's csproj file:
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
This eliminates the need for manually adding binding redirects.

System.Runtime.InteropServices.COMException | vb.net

I know this question has been answered many times but I have tried all previous suggested resolution.
1.) The target CPU is x86
2.) I have registered the ocx and dll files
The application is working fine on old machines (all OS) but not on new images.
Here is the log :
Framework Version: v4.0.30319 Description: The process was terminated
due to an unhandled exception. Exception Info:
System.Runtime.InteropServices.COMException at
System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(System.Guid
ByRef, System.Object, Int32, System.Guid ByRef) at
System.Windows.Forms.AxHost.CreateWithLicense(System.String,
System.Guid) at
System.Windows.Forms.AxHost.CreateInstanceCore(System.Guid) at
System.Windows.Forms.AxHost.CreateInstance() at
System.Windows.Forms.AxHost.GetOcxCreate() at
System.Windows.Forms.AxHost.TransitionUpTo(Int32) at
System.Windows.Forms.AxHost.CreateHandle() at
System.Windows.Forms.Control.CreateControl(Boolean) at
System.Windows.Forms.Control.CreateControl(Boolean) at
System.Windows.Forms.AxHost.EndInit() at
Restaurant.frmMain.InitializeComponent() at
Restaurant.frmMain..ctor()
Exception Info: System.InvalidOperationException at
Restaurant.My.MyProject+MyForms.Create__Instance__[System.__Canon,
mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089] at
Restaurant.frmMain.Main()
Here is how I am registering the files :
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Caspol -q -machine -addgroup 1 -url file://C:/xyz/* FullTrust -name "V Drive"
regsvr32 c:\xyz\crystl32.ocx
regsvr32 c:\xyz\MSCOMCT2.OCX
regsvr32 c:\xyz\MSDATGRD.OCX
regsvr32 c:\xyz\cpeaut32.dll
regsvr32 c:\xyz\msstdfmt.dll
Crystal reports runtime engine for .NET 4 framework in installed on the system (both x86 and x64).
I had this issue once.
I ran Visual Studio as administrator.
Also make sure you know which setting your platform is for the build: AnyCPU, x86, x64
For you its x86 so try using AnyCPU!
Try debugging the issue
I read an article from Microsoft which said you can debug where this exception is occurring by:
Debug > Exceptions... and use the Find option to locate System.Runtime.InteropServices.COMException. Tick the option to break when it's thrown and then debug your application.

Visual Studio 2015 Community Crashes on Startup

I've been using VS 2015 Community Edition without any issues for the past 2 months. Then one day it decided to crash (I wasn't doing anything when it crashed). After I tried starting it up again, it only gets to the home-page screen then crashes. No project is being opened, it crashes on its own.
Things I tried with no success:
Repairing the install.
Uninstalling then Reinstalling.
Running in /safemode (still crashes in safemode!)
I don't have anything custom installed (especially after the clean install).
At this point my only hope is re-installing windows (running Windows 7), and hoping the problem goes away then. Any other ideas, things I can try?
Here's the log dump from starting VS2015 in safemode (I wanted to post the contents here, but they exceed the allowed post size):
http://wikisend.com/download/447654/vs_log.txt
I did search through the log for error tags, and found the following instances:
<entry>
<record>2196</record>
<time>2016/03/16 19:49:43.330</time>
<type>Error</type>
<source>UserConnection</source>
<description>Failed to get IAccountManager from service provider.</description>
</entry>
<entry>
<record>2416</record>
<time>2016/03/16 19:49:44.273</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Dev14.VsixTemplatesPackage.V2.443cca91-ec20-41e5-a165-f28e56b89650&apos; is already loaded at C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\OZPNHXDR.G5H\...</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\NUGETIFIEDEXTENSIBILITYTEMPLATES\</path>
</entry>
<entry>
<record>2417</record>
<time>2016/03/16 19:49:44.274</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.VisualStudio.TeamFoundation.TeamExplorer.Extensions&apos; is already loaded at C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\MKTRGVMI.4Y3\...</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TEAMFOUNDATION\TEAM EXPLORER\</path>
</entry>
EDIT 1:
Following magicandre1981's advice I ran procdump, but the resulting file is 0.5 GB, so it's too much to upload. Here's a screenshot from the dump file. The exception seems to be 0xE0434352.
EDIT 2:
I looked at Event Viewer, and found the following Error related to the crash. Looks like the exception is caused by Microsoft.VisualStudio.Services.Experimentation.FlightsClient:
Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.NullReferenceException at Microsoft.VisualStudio.Services.Experimentation.FlightsClient+<ReadStreamFromRemoteAsync>d__20`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Services.Experimentation.ShippedFlightsClient+<SetRemoteFlightsAsync>d__4.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Services.Experimentation.VSExperimentationService+<<FlightDataCallback>b__33_0>d.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Services.Experimentation.VSExperimentationService+<FlightDataCallback>d__33.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_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()
EDIT 3:
Searching for TestFlight related posts, I found the following from Microsoft (opting out of Experience Improvement Program). Looked very promising, but sadly didn't resolve my issue:
https://connect.microsoft.com/VisualStudio/feedback/details/2082049/crash-on-startup
I fixed the problem by installing Visual Studio 2015 Update 2 RC (I was running Update 1), and unchecking every single optional install feature (I just need C#/WPF). Chances are, simply installing Update 2 RC would fix the issue, but I've wasted too much time on it already to keep trying over and over again.
Here's a link to Update 2 RC:
https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

Visual Studio Online test runner can't load SpecFlow dll

I've added SpecFlow using Nuget and have a single spec (so it is a simple project). I've created a build in VS online 2015 using the web build editor.
Maybe it's a Nuget new build system issue? I'm not sure if it just a SpecFlow thing and haven't gotten a chance try straight MS unit tests yet.
An exception occurred while invoking executor
'executor://mstestadapter/v1': Could not load file or assembly
'TechTalk.SpecFlow, Version=1.9.0.77, Culture=neutral,
PublicKeyToken=0778194805d6db41' or one of its dependencies. The
system cannot find the file specified.
Here's a larger stack trace:
1. 2015-08-03T21:26:27.6325511Z Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\tasks\VSTest\1.0.16\VSTest.ps1
2. 2015-08-03T21:26:28.4231183Z ##[debug]Calling Invoke-VSTest for all test assemblies
3. 2015-08-03T21:26:28.4481177Z Working folder: C:\a\14076a40
4. 2015-08-03T21:26:28.4481177Z Executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe "C:\a\14076a40\SpecByExample\SpecByExample.Specs\bin\Debug\SpecByExample.Specs.dll" "C:\a\14076a40\SpecByExample\SpecByExample.Specs\bin\Debug\SpecByExample.Specs.dll.config" "C:\a\14076a40\SpecByExample\SpecByExample.Specs\obj\Debug\SpecByExample.Specs.dll" /logger:trx
5. 2015-08-03T21:26:29.4654019Z Microsoft (R) Test Execution Command Line Tool Version 14.0.23107.0
6. 2015-08-03T21:26:29.4664025Z Copyright (c) Microsoft Corporation. All rights reserved.
7. 2015-08-03T21:26:29.4664025Z Starting test execution, please wait...
8. 2015-08-03T21:26:29.7564024Z Warning: Unable to load types from the test source 'C:\a\14076a40\SpecByExample\SpecByExample.Specs\obj\Debug\SpecByExample.Specs.dll'. Some or all of the tests in this source may not be discovered. If you are running unit tests for Windows Store apps and referencing custom WinMD type then please visit http://go.microsoft.com/fwlink/?LinkId=238340 for more info. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'SpecResults, Version=0.1.0.7, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
9. 2015-08-03T21:26:29.7574029Z .
10. 2015-08-03T21:26:40.6922424Z Passed TheUserVisitsTheWebsite
11. 2015-08-03T21:26:41.3214684Z ##[error]Error: An exception occurred while invoking executor 'executor://mstestadapter/v1': Could not load file or assembly 'TechTalk.SpecFlow, Version=1.9.0.77, Culture=neutral, PublicKeyToken=0778194805d6db41' or one of its dependencies. The system cannot find the file specified.
12. 2015-08-03T21:26:41.3224680Z ##[error]
13. 2015-08-03T21:26:41.4936886Z Results File: C:\a\14076a40\TestResults\buildguest_TASKAGENT-0007 2015-08-03 21_26_40.trx
14. 2015-08-03T21:26:41.4956876Z Total tests: 1. Passed: 1. Failed: 0. Skipped: 0.
15. 2015-08-03T21:26:41.4966881Z ##[error]Test Run Failed.
16. 2015-08-03T21:26:41.4966881Z Test execution time: 11.8787 Seconds
17. 2015-08-03T21:26:41.7581094Z ##[error]VSTest Test Run failed with exit code: 1
18. 2015-08-03T21:26:41.7741099Z Publishing Test Results...
2015-08-03T21:26:43.0372165Z Test results remaining: 1
UPDATE: I disabled the SpecFlow test and added the simplest AboutController test possible (from file new project MVC in Visual Studio). I still get a 'could not load assembly problem. SpecByExample.Web is my MVC project in my solution.
2015-08-07T16:16:56.7251975Z ##[error]Error Message:
2015-08-07T16:16:56.7261978Z ##[error] Test method
SpecByExample.Web.Tests.Controllers.HomeControllerTests.AboutTest
threw exception: 2015-08-07T16:16:56.7261978Z
[error]System.IO.FileNotFoundException: Could not load file or assembly 'SpecByExample.Web, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot
find the file specified.WRN: Assembly binding logging is turned OFF.
2015-08-07T16:16:56.7271982Z ##[error]To enable assembly bind failure
logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
2015-08-07T16:16:56.7271982Z ##[error]Note: There is some performance
penalty associated with assembly bind failure logging.
2015-08-07T16:16:56.7281979Z ##[error]To turn this feature off, remove
the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
2015-08-07T16:16:56.7281979Z ##[error] 2015-08-07T16:16:56.7291971Z
[error]Stack Trace: 2015-08-07T16:16:56.7291971Z ##[error] at SpecByExample.Web.Tests.Controllers.HomeControllerTests.AboutTest()
2015-08-07T16:16:56.7831986Z Results File:
C:\a\14076a40\TestResults\buildguest_TASKAGENT-0007 2015-08-07
16_16_56.trx 2015-08-07T16:16:56.7861977Z Attachments:
2015-08-07T16:16:56.7861977Z ##[error]Test Run Failed.
Here's a screenshot of my build definition:
In Run unit test step. click advance and give path to your packages folder. (if you are using nuget it will download all dependencies there) give it a try and let me know how it goes.