none
How do I fix this: An exception was encountered while constructing the content of this frame.

    Question

  • I am using Visual Studio Community and it shows this message:

    An exception was encountered while constructing the content of this frame.  This information is also logged in "C:\Users\kokti\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml".

    Exception details:
    System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
       at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext(Guid& packageGuid, Int32 reason, Guid& context)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

    Wednesday, March 16, 2016 12:47 PM

Answers

  • Hi OngKT,

    >>While selecting the programs to be installed, "Visual Studio 2015 Update 1" is grayed out, with an "i" icon and "(Deprecated)" following.

    Could you share me a screen shot about this result?

    The latest VS2015 update 2 was released, maybe you could install the latest VS version with update 2.

    Best Regards,

    Jack


    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.

    Monday, April 11, 2016 8:51 AM
    Moderator

All replies

  • Hi OngKT,

    If possible, please delete the project Cache from the below location:

    C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplatesCache

    C:\Program Files(x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplatesCache

    Then run commend line: "devenv.exe /setup" to re-build the cache.

    C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /setup

    Check it again.

    Please also run your VS in safe mode, so we could know that whether it is related to the add-ins or extension tools:

    devenv /SafeMode

    Best Regards,

    Jack


    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.


    Friday, March 18, 2016 10:08 AM
    Moderator
  • There is no "Microsoft Visual Studio 14.0" folder in "C:\Program Files", so I only deleted the folder:
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplatesCache

    I opened cmd and run the following line (both with/without admin rights)
    "C:\Program Files (x86)\
    Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" /setup

    A message box by Microsoft Visual Studio jumped out, saying "The operation could not be completed"

    Friday, March 18, 2016 1:11 PM
  • Repair doesn't fix either. Any more suggestions?
    Tuesday, March 22, 2016 9:42 AM
  • Hi OngKT,

    >>A message box by Microsoft Visual Studio jumped out, saying "The operation could not be completed"

    You would open the VS's command line window.

    CD to the VS setup folder, and then run the command line:

    Devenv.exe /setup

    Best Regards,

    Jack


    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, March 23, 2016 6:57 AM
    Moderator
  • It didn't work either.
    I typed cd setup and press enter, typed devenv.exe /setup and press enter. It gave me "The operation could not be completed" message again.

    Wednesday, March 23, 2016 12:55 PM
  • Hi OngKT,

    Thanks for your friendly response.

    What is your windows Environment, 32 bit or 64 bit? Do you install the VS in the default path like C:\Program Files(x86)\Microsoft Visual Studio 14.0\Common7(64 bit windows)? Maybe you could run the command prompt as the admin, check it again.

    I test it in my side:

    (1) Delete the project cache files.

    (2) Run the Developer Command prompt as the admin, run the command line, it would re-create the project cache file.

    Like my previous reply, do you run your VS in safe mode? Is it still has this issue in safe mode?

    Please also open your VS as the admin, check the result.

    Or you could repair your VS, please also install the update 1.

    If still no help, maybe we could collect the detailed VS setup logs.

    Please use http://aka.ms/vscollect  to gather the VS and .Net Frameowrk installation logs. After using it, you will find vslogs.cab from %temp% folder. Please upload the file to Onedrive and share the link here.

    Best Regards,

    Jack


    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.

    Thursday, March 24, 2016 7:40 AM
    Moderator
  • The message is still showing even:
    1) After deleting the project cache files and recreate them using Developer Command prompt as admin.
    2) In safe mode.
    3) When opening VS as admin.

    I am using the Update 1, repair and uninstall cannot fix it.

    I didn't find vslogs.cab, but I found vslogs.zip

    https://onedrive.live.com/redir?resid=E6DD4941A7C785B7!430571&authkey=!AE5LLM2nraoOwDs&ithint=file%2czip

    I think the problem happened when I did a system restore to when I haven't installed it.

    Wednesday, March 30, 2016 6:43 AM
  • Hi OngKT,

    If possible, please remove all extension tools under Extensions and updates windows except the default tools.

    >>I think the problem happened when I did a system restore to when I haven't installed it.

    If so, maybe you could run the windows updates, and restart your machine.

    If there are some setup files in your local machine even if you uninstall it, I suggest you clean up them using the command line.

    The detailed steps:

    Download the setup application you used to originally install Visual Studio 2015. If you installed from media, please insert that media.
    2.Open a command prompt.
      a.Click Run on the Start menu (Start + R).
      b.Type cmd and press OK (Enter).
    3.Type in the full path to the setup application and pass the following command line switches: /uninstall /force
      Example: D:\vs_xxx.exe /uninstall /force
    4.Click the Uninstall button and follow the prompts.

    And then re-download the latest VS version: VS2015 community with update 2:

    https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx

    Check it again.

    Best Regards,

    Jack


    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.

    Friday, April 01, 2016 8:38 AM
    Moderator
  • I don't know which extension tools are not the default ones, I installed all the things inside the setup package.

    Running Windows Updates and restarting won't fix it.

    After uninstalling Visual Studio Community 2015 with Update 1 using the Command Line, this message is shown:
    https://onedrive.live.com/redir?resid=E6DD4941A7C785B7!430579&authkey=!AKUVbxqw0WohBlQ&v=3&ithint=photo%2cPNG
    Should I do anything before installing the VS Community with Update 2?


    • Edited by OngKT Friday, April 01, 2016 5:12 PM Better description
    Friday, April 01, 2016 5:10 PM
  • Hi OngKT,

    Do you install certain NuGet package in your VS?

    Like this kind of package:

    https://www.nuget.org/packages/Microsoft.VisualStudio.SDK.VsixSuppression/

    >>Should I do anything before installing the VS Community with Update 2?

    If you have uninstall the VS2015 now, I suggest you remove the VS2015 folder in the default folder C:), and then re-install the new VS version, check it again.

    In addition, you could also open the NuGet console window to list all packages you have installed in your VS after you installed the latest one.

    Best Regards,

    Jack


    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.

    Monday, April 04, 2016 9:23 AM
    Moderator
  • Default folder is C:\Program Files (x86)\Microsoft Visual Studio 14.0 ? Delete the entire folder?
    PS: My system is 64 bit.

    Monday, April 04, 2016 1:57 PM
  • Default folder is C:\Program Files (x86)\Microsoft Visual Studio 14.0 ? Delete the entire folder?
    PS: My system is 64 bit.

    If you uninstalled the VS, you could check it using the following steps:

    Remove the Program Files (x86)\Microsoft Visual Studio 14 directory

    Remove the %AppData%\Local\Micrsoft\Visual Studio 14 directory

    And then re-install your new VS version.

    Best Regards,

    Jack


    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.

    Tuesday, April 05, 2016 7:29 AM
    Moderator
  • Hi OngKT,

    Any update? Would you mind letting us know the latest information about this issue?

    Best Regards,

    Jack


    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.

    Thursday, April 07, 2016 12:47 AM
    Moderator
  • While selecting the programs to be installed, "Visual Studio 2015 Update 1" is grayed out, with an "i" icon and "(Deprecated)" following.
    Pointing to the "i" icon and it shows: This component was already found on your system. No action will be taken.
    Pointing to the "Deprecated" and it shows: This feature is outdated or has been replaced or deprecated from Visual Studio.

    What should I do now?

    Thursday, April 07, 2016 6:01 AM
  • Hi OngKT,

    >>While selecting the programs to be installed, "Visual Studio 2015 Update 1" is grayed out, with an "i" icon and "(Deprecated)" following.

    Could you share me a screen shot about this result?

    The latest VS2015 update 2 was released, maybe you could install the latest VS version with update 2.

    Best Regards,

    Jack


    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.

    Monday, April 11, 2016 8:51 AM
    Moderator
  • I downloaded the "vs_community_ENU.exe" after you gave me the link above. Then, I execute the command "C:\Users\kokti\Desktop\vs_community_ENU.exe /layout" to download the whole package which is around 19GB. And I started the "vs_community_ENU.exe" in the downloaded folder.

    https://onedrive.live.com/redir?resid=E6DD4941A7C785B7!430583&authkey=!AO1tAQy445GhuIQ&v=3&ithint=photo%2cPNG

    Monday, April 11, 2016 5:23 PM
  • Hi OngKT,

    How about downloading it directly? And then install the .exe using web or ISO file.

    Please make sure that you download the VS like the following option:

    In addition, whether you installed the VS2015 and Update 1 separately before? For example, you installed the VS2015 community, and then you downloaded the update 1 and installed it again.

    Open your Control panel->Programs and features->View Installed updates, maybe there are the update package you installed before.

    You could uninstall it, run the windows update, and then restart your PC, re-download the VS2015 with update 2, check it again.

    If you still get the same result, please still install your VS, check the result in your side.

    Best Regards,

    Jack


    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.

    Tuesday, April 12, 2016 7:37 AM
    Moderator
  • Why is it not listed in the Settings -> System -> Apps and Features nor the Control Panel -> Uninstall or change a program list?

    Here's the screenshot:

    https://onedrive.live.com/redir?resid=E6DD4941A7C785B7!430584&authkey=!AMFr97r4MaQLmuo&v=3&ithint=photo%2cPNG

    Should I uninstall the second one too?

    Tuesday, April 12, 2016 12:16 PM
  • Hi OngKT,

    Thanks for your friendly response.

    >>Why is it not listed in the Settings -> System -> Apps and Features nor the Control Panel -> Uninstall or change a program list?

    For this issue, it is by design, the update/KB for VS would be in the "View Installed updates" settings.

    >>Should I uninstall the second one too?

    So you uninstalled the Whole previous VS2015 IDE, and you don't install the VS2015 with update 2 now, am I right?

    If so, I suggest you remove/uninstall the two KBs, and then re-install your whole VS 2015 with update 2.

    Of course, if you use the ISO file, please compare the SHA-1 Value, so we could know that it is not the setup file issue.

    https://www.visualstudio.com/en-us/downloads/visual-studio-2015-iso-sha1-vs.aspx

    And then install it, check the result.

    Best Regards,

    Jack


    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, April 13, 2016 1:59 AM
    Moderator
  • >>So you uninstalled the Whole previous VS2015 IDE, and you don't install the VS2015 with update 2 now, am I right?

    Yes.

    >>If so, I suggest you remove/uninstall the two KBs, and then re-install your whole VS 2015 with update 2.

    Those two KBs cannot be removed. They both showed the message in the screenshot immediately right after I clicked Uninstall -> Yes. And they both remain there.

    https://onedrive.live.com/redir?resid=E6DD4941A7C785B7!430592&authkey=!AKAurFa5JH8KRH0&v=3&ithint=photo%2cPNG


    • Edited by OngKT Thursday, April 14, 2016 12:17 PM Better description
    Thursday, April 14, 2016 12:15 PM
  • I have compared the ISO file. The SHA-1 Value is matched. Yet in the menu, "Visual Studio 2015 Update 1" is still grayed out as before.
    Thursday, April 14, 2016 4:19 PM
  • Hi OngKT,

    Generally the latest update package will cover the previous old version package if we install the latest one.

    If possible, I suggest you ignore this issue "Visual Studio 2015 Update 1 is still grayed out ", just click "Next" to install the VS community with update 2, check the result in your side.

    Best Regards,

    Jack


    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.

    Friday, April 15, 2016 8:04 AM
    Moderator
  • It indeed covers the previous one even it says "No action will be taken.". Now the error messages are not showing anymore.

    Thank you very much. :)

    Which one should I mark as answer?

    Sunday, April 17, 2016 6:52 PM
  • Glad to know that this issue has been resolved. OngKT:)

    Have a nice day,

    Jack


    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.

    Monday, April 18, 2016 1:57 AM
    Moderator