locked
Crash occurs due to Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.dll in Visual Studio 2015 IDE RRS feed

  • Question

  •  

    Hi,

        I am getting (An unhandled exception of type 'System.ArgumenException' occurred in mscorlib.dll) exception at CurConfig.DebugSettings  code as mentioned below sample code in VS2015 IDE. But it is working fine in VS2010 IDE.Its only failing in VS2015 IDE alone. I don't have idea what will be the difference between both VS2010 and VS2015 IDE. Kindly suggest me what will be the solution for the below mentioned exception.

    void func()

    {

      VCProjEng = newMicrosoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim();

      VCProjectNewProject = VCProjEng.LoadProject(@"C:\Program Files\Eagle Test  Systems\Applications\MSTvs2015Sample\MSTvs2015Sample.vcxproj") asVCProject;

      // iterate through all of the configurations

      IVCCollectionConfigCollection = NewProject.Configurations asIVCCollection;

      foreach(VCConfigurationCurConfig inConfigCollection)

      {

       // set the debug path

       VCDebugSettingsDebugSettings = CurConfig.DebugSettings asVCDebugSettings;              

      }

    }

    Thanks,

    Bharathraj.

    • Moved by Just Karl Wednesday, May 11, 2016 8:21 PM Looking for the correct forum.
    Wednesday, May 11, 2016 10:41 AM

Answers

All replies

  • Hello,

    The 'Academic Initiatives - General Discussions' forum is for any posts not covered under any of the other forums as related to Microsoft's Academic Initiatives.

    As it's off-topic here, I am moving the question to the Where is the forum for... forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Wednesday, May 11, 2016 8:19 PM
  • Hello,

    You might ask in the Visual Studio General Questions forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Wednesday, May 11, 2016 8:20 PM