none
Error while trying to run project: Invalid pointer - VS2015 Enterprise - U2

    Question

  • Hi all,

    I am getting this error when I try to run a console application "Error while trying to run project: Invalid pointer"

    I recently upgraded from V2012 to VS2015 Enterprise Update 1 and the error (among others) started occurring. Not sure if this is relevant, but prior to upgrading VS I upgraded SQL on my dev machine from 2008 to 2012.

    The .NET solution contains numerous console apps, wcf services, web app and some silverlight stuff too. Its pretty big and I am not in a position to make wholesale changes to it.

    EDIT: I have tried creating a new solution and bare-bones console app and the error still occurs.

    Tried the following:

    Clean and rebuild solution

    Repairing V22015 Ent Update 1

    Reinstalling V22015 Ent Update 1

    Upgraded to VS2015 Enterprise V14.0.25123.00 Update 2

    Googling

    Needless to say none of these things have resolved the issue so I'm posting here in the hope that one of you smart people on here can help me figure it out.

    Thanks in advance

    Bernie

    VS 2015 Info-----------------------------------------------------------------------------------------------------------------------------

    Microsoft Visual Studio Enterprise 2015
    Version 14.0.25123.00 Update 2
    Microsoft .NET Framework
    Version 4.6.01055

    Installed Version: Enterprise

    Architecture and Modeling Tools   00322-80000-00000-AA682
    Microsoft Architecture and Modeling Tools
        
    UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

    Visual Basic 2015   00322-80000-00000-AA682
    Microsoft Visual Basic 2015

    Visual C# 2015   00322-80000-00000-AA682
    Microsoft Visual C# 2015

    Visual C++ 2015   00322-80000-00000-AA682
    Microsoft Visual C++ 2015

    Application Insights Tools for Visual Studio Package   5.2.60328.3
    Application Insights Tools for Visual Studio

    ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11106.0
    ASP.NET and Web Tools 2015.1 (Beta8)

    ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
    For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

    ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
    For additional information, visit http://www.asp.net/

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

    JavaScript Language Service   2.0
    JavaScript Language Service

    JavaScript Project System   2.0
    JavaScript Project System

    JetBrains ReSharper Ultimate 2016.1.1    Build 105.0.20160504.101434
    JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2016 JetBrains, Inc.

    Microsoft Azure Mobile Services Tools   1.4
    Microsoft Azure Mobile Services Tools

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

    PreEmptive Analytics Visualizer   1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

    SQL Server Data Tools   14.0.60311.1
    Microsoft SQL Server Data Tools

    TypeScript   1.8.31.0
    TypeScript tools for Visual Studio




    • Edited by Bernie Russell Tuesday, May 10, 2016 11:19 PM Adding further info regarding investigation of problem
    Tuesday, May 10, 2016 11:16 PM

Answers

  • Looks like I worked it out.

    I reviewed the Activity Log (See here for info about the Activity Log) https://msdn.microsoft.com/en-us/library/bb166359.aspx

    and found this error in the stack trace

    [....Access to the path 'C:\ProgramData\Microsoft Visual Studio\14.0\TraceDebugging\' is denied.]:...]

    The directory did not exist so I created it and was thereafter able to run debug the project without the error.

    Wednesday, May 11, 2016 12:20 AM

All replies

  • Looks like I worked it out.

    I reviewed the Activity Log (See here for info about the Activity Log) https://msdn.microsoft.com/en-us/library/bb166359.aspx

    and found this error in the stack trace

    [....Access to the path 'C:\ProgramData\Microsoft Visual Studio\14.0\TraceDebugging\' is denied.]:...]

    The directory did not exist so I created it and was thereafter able to run debug the project without the error.

    Wednesday, May 11, 2016 12:20 AM
  • Hi Bernie Russell,

    I'm glad that you have worked the problem out. And thanks for sharing your solution here.

    Please mark your reply as answer, which is benefit to other communities who has the same problem.

    If any questions about Visual Studio IDE in future, please feel free to come back to our forum.

    Best Regards,
    Weiwei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, May 11, 2016 3:21 AM
    Moderator