none
Visual Studio 2017 15.8 crashes on startup RRS feed

  • Question

  • Here are the first few errors in the activity log. I can't do ANYTHING with VS, including uninstalling or repairing it.

    I'd rather not reboot right now because I am running a performance test that needs to be going for several more hours, but I will if I have to.

      <entry>
        <record>29</record>
        <time>2018/08/16 15:58:19.047</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>PkgDef syntax or I/O error at line 1: Section header: additional characters after closing bracket</description>
        <hr>80004005 - E_FAIL</hr>
        <path>[$RootKey$\Setup\[ProductName]]</path>
      </entry>
      <entry>
        <record>30</record>
        <time>2018/08/16 15:58:19.047</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>PkgDef syntax or I/O error at line 3: Section header: additional characters after closing bracket</description>
        <hr>80004005 - E_FAIL</hr>
        <path>&quot;SrcPath&quot;=&quot;[SourceDir]&quot;</path>
      </entry>
      <entry>
        <record>31</record>
        <time>2018/08/16 15:58:19.047</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>Could not process PkgDef file</description>
        <hr>80004005 - E_FAIL</hr>
        <path>c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\community\detection_keys_reg.pkgdef</path>
      </entry>
      <entry>
        <record>32</record>
        <time>2018/08/16 15:58:19.047</time>
        <type>Warning</type>
        <source>VisualStudio</source>
        <description>Error scanning PkgDef file</description>
        <hr>80004005 - E_FAIL</hr>
        <path>c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\community\detection_keys_reg.pkgdef</path>
      </entry>
      <entry>
        <record>33</record>
        <time>2018/08/16 15:58:19.093</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>PkgDef syntax or I/O error at line 1: Section header: additional characters after closing bracket</description>
        <hr>80004005 - E_FAIL</hr>
        <path>[$RootKey$\Setup\[ProductName]]</path>
      </entry>
      <entry>
        <record>34</record>
        <time>2018/08/16 15:58:19.093</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>PkgDef syntax or I/O error at line 3: Section header: additional characters after closing bracket</description>
        <hr>80004005 - E_FAIL</hr>
        <path>&quot;SrcPath&quot;=&quot;[SourceDir]&quot;</path>
      </entry>
      <entry>
        <record>35</record>
        <time>2018/08/16 15:58:19.093</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>Could not process PkgDef file</description>
        <hr>80004005 - E_FAIL</hr>
        <path>c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\professional\detection_keys_reg.pkgdef</path>
      </entry>
      <entry>
        <record>36</record>
        <time>2018/08/16 15:58:19.093</time>
        <type>Warning</type>
        <source>VisualStudio</source>
        <description>Error scanning PkgDef file</description>
        <hr>80004005 - E_FAIL</hr>
        <path>c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\professional\detection_keys_reg.pkgdef</path>
      </entry>
      <entry>

    Thursday, August 16, 2018 5:10 PM

All replies

  • Hi,

    Error code 0x80004005 means a file missing or can't be accessed.

    Repair visual studio installation can help you download missing and corrupted file. If the issue persists, I need your help to collect the complete VS installation log. Please usehttp://aka.ms/vscollect to gather the installation logs. After using it, you will find vslogs.zip under %temp% folder. Please upload the file to https://onedrive.live.com/ and share the link here.

    Best regards,

    Joyce


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, August 24, 2018 1:52 AM
  • Sollution is simple, some the the dll are not correctly registered in the assambly.

    Do the followinng:

    1. Open the visualstudio command prompt (not CMD)

    2. Type: CD c:\Program Files (x86)\Microsoft Visual Studio\2017\Community

    3. Type: for %a in (Common7\IDE\PublicAssemblies\*.dll) do gacutil -if %a

    4. Start Visual Studio

    Change step 2 to the version you have!

    That should get it going.

    Friday, September 28, 2018 7:19 PM