Failed to initialize PowerShell Tools for Visual StudioSystem.NullReferenceException: Object reference not set to an instance of an object.

Issue #247 new
Максим Бугрий created an issue

I have this error after i open project in VS:


PowerShell Tools for Visual Studio Error

a

at PowerShellTools.HostService.ServiceManagement.Debugging.PowerShellDebuggingService.InitializeRunspace(Int32 processId, PSHost psHost, Boolean sta)

at PowerShellTools.HostService.ServiceManagement.Debugging.PowerShellDebuggingService..ctor(IDebugEngineCallback callback, Int32 processId, Boolean sta)

at PowerShellTools.ServiceManagement.ConnectionManager.OpenClientConnection()

at PowerShellTools.ServiceManagement.ConnectionManager..ctor()

at PowerShellTools.PowerShellToolsPacakage.<InitializePowerShellHostAsync>d__44.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at PowerShellTools.PowerShellToolsPackage.<InitializeInternalAsync>d__37.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at PowerShellTools.PowerShellToolsPackage.<InitializeAsync>d__33.MoveNext()

ОК

Comments (1)

  1. Максим Бугрий reporter

    I have found workaround - running Visual Studio using local administrator account. But is it posible to use ps tools via user account?

  2. Log in to comment