NullReferenceException' in Microsoft.TestPlatform.CommunicationUtilities.dll

Matt Ortiz 1 Reputation point
2021-07-01T17:34:46.353+00:00

VS2017
Once I open a project and run 111038-debug-log.txtDebug Unit Tests, the next time I run it, I get NullReferenceException' in Microsoft.TestPlatform.CommunicationUtilities.dll exception and can't run any more Debug Unit Tests.
Build/Run Debug Log is attached.

System Info:
Microsoft Visual Studio Professional 2017
Version 15.9.36
VisualStudio.15.Release/15.9.36+28307.1525
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Professional

Microsoft Visual Studio Tools for Applications 2017 00369-60000-00001-AA269
Microsoft Visual Studio Tools for Applications 2017

Application Insights Tools for Visual Studio Package 8.14.20131.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017 15.9.04012.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services 15.8.31590
Provides languages services for ASP.NET Core Razor.

ASP.NET Web Frameworks and Tools 2017 5.2.61435.0
For additional information, visit https://www.asp.net/

Atalasoft DotImage Activation Wizard for Visual Studio 2017 11.2.12
Atalasoft DotImage Activation Wizard for Microsoft Visual Studio 2017.
(c) 2000-2017 Atalasoft. All rights reserved. Use is subject to license terms.
For more information, visit https://www.atalasoft.com/

Automatic Versions 2.0.48
Provides tools for managing assembly versions.

Azure App Service Tools v3.0.0 15.9.03024.0
Azure App Service Tools v3.0.0

Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio 2.3.3000.2
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools 15.9.03024.0
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio 2.3.3000.2
Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service 2.0
JavaScript Language Service

JustMock 2020.3.1124.2
Telerik JustMock Extension.

Microsoft Azure HDInsight Azure Node 2.3.3000.2
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service 2.3.3000.2
Language service for Hive query

Microsoft Azure Stream Analytics Language Service 2.3.3000.2
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node 1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.20417.1

Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager 1.0
Install client-side libraries easily to any web project

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

NuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Progress Telerik UI for ASP.NET AJAX Extension 2021.1.218.1
Progress® Telerik® UI for ASP.NET AJAX Extension

Progress Telerik UI for ASP.NET MVC Extension 2021.1.108.2
Progress® Telerik® UI for ASP.NET MVC Extension

Progress Telerik UI for WPF Extension 2021.1.108.2
Progress® Telerik® UI for WPF Extension

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Redgate SQL Prompt 10.5.0.16982
Write, format, and refactor SQL effortlessly

ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info

ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info

SlowCheetah - XML config transforms 1.0
This package enables you to transform your app.config or any other XML file based on the build configuration. It also adds additional tooling to help you create XML transforms.

Snippet Designer 1.8.1
Snippet Designer is a Visual Studio plug in which allows you to create and search for snippets inside the IDE

SQL Server Data Tools 15.1.62002.01090
Microsoft SQL Server Data Tools

Telerik Reporting Tools 3.44.11.0
Complete .NET Reporting Solution for Web, Mobile and Desktop Applications. For more information please visit http://www.telerik.com/reporting.

ToolWindowHostedEditor 1.0
Hosting json editor into a tool window

TypeScript Tools 15.9.30718.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 10.2 for F# 4.5 15.8.0.0. Commit Hash: 6e26c5bacc8c4201e962f5bdde0a177f82f88691.
Microsoft Visual F# Tools 10.2 for F# 4.5

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
329 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PengGe-MSFT 3,336 Reputation points
    2021-07-02T05:44:55.773+00:00

    Hi, @Matt Ortiz

    Welcome to Microsoft Q&A!

    So you mean that you could run unit tests before, but you can’t run them now? Or do you mean that you have not been able to run unit tests?

    According to the log you uploaded, I found this information:

    Exception thrown:'System.NullReferenceException' in Microsoft.TestPlatform.CommunicationUtilities.dll  
    Object reference not set to an instance of an object.  
    

    Please make sure that the dll file referenced by your project exists.
    Regarding NullReferenceException, you can refer to this document.

    Can you provide more detailed information? For example, screenshots of run Exception.

    Sincerely,
    Peng
    *
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread

    0 comments No comments