none
The OptionsPagePackage did not load correctly

    Question

  • After running the Visual Studio Community 2015 Update 1, when I open Visual Studio I receive the following error box:

    The 'OptionsPagePackage' did not load correctly. The problem may have been caused by a configuration change or by installation of another extension. You can get more information by examining the file C:\Users\.....\VisualStudio\14.0\ActivityLog.xml.

    In the ActivityLog.xml is the following

    <description>SetSite failed for package [OptionsPagePackage][ExportProviderFactory must be called on the UI thread.]:{   at Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(String callerMemberName)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.get_ExportProviderFactory()&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.&lt;GetMEFV3ExportProviderWrapperAsync&gt;d__46.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod, JoinableTaskCreationOptions creationOptions)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetLazyValue[T](AsyncLazy`1 lazy)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()&#x000D;&#x000A;   at Microsoft.VisualStudio.PowerTools.OptionsPage.Common.GetMefService[T]()&#x000D;&#x000A;   at Microsoft.VisualStudio.PowerTools.OptionsPage.OptionsPagePackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description>

    I have run repair, had no effect.

    Microsoft Visual Studio Community 2015
    Version 14.0.24720.00 Update 1

    Thank You

    Mike


    Mike Nichols

    Wednesday, December 16, 2015 6:02 PM

Answers

All replies

  • I have the exact same issue.  Hope it gets fixed soon as my VS2015 Enterprise IDE is completely unusable in this state.  

    I thought it might be related to extensions I have installed:  Productivity Power Tools and RedGate .NET Reflector plugin.  I tried to go into Extensions and Updates to uninstall them, but clicking Extensions and Updates in the TOOL menu throws a NullReferenceException.  about 90% of my menus throw the same error.  

    I tried getting into the update notifications menu to auto install there, but I get the same NullReferenceException as I get with my file menu.  

    I already tried devenv /setup and devenv /resetusersettings which threw a ton of errors during that process.  

    The 'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' did not load correctly.

    "" 'OptionsPage' Did not load correctly

    'Microsoft.VisualStudio.TeamArchitect.LayerDesigner.Shell.LayerDesignerPackage, <Assembly info>' did not load correctly

    'DNX Project System' did not load correctly.  

    I pulled this out of my ActivityLog.xml.  Looks like a thread scheduling issue.  

     <entry>
        <record>227</record>
        <time>2015/12/16 18:29:32.773</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>SetSite failed for package [OptionsPagePackage][ExportProviderFactory must be called on the UI thread.]:{   at Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(String callerMemberName)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.get_ExportProviderFactory()&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.&lt;GetMEFV3ExportProviderWrapperAsync&gt;d__46.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod, JoinableTaskCreationOptions creationOptions)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetLazyValue[T](AsyncLazy`1 lazy)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()&#x000D;&#x000A;   at Microsoft.VisualStudio.PowerTools.OptionsPage.Common.GetMefService[T]()&#x000D;&#x000A;   at Microsoft.VisualStudio.PowerTools.OptionsPage.OptionsPagePackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description>
        <guid>{D177414D-2D6A-49F2-8497-C51A2629846B}</guid>
        <hr>8001010e</hr>
        <errorinfo>ExportProviderFactory must be called on the UI thread.</errorinfo>
      </entry>
      <entry>
        <record>228</record>
        <time>2015/12/16 18:29:32.773</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>End package load [OptionsPagePackage]</description>
        <guid>{D177414D-2D6A-49F2-8497-C51A2629846B}</guid>
        <hr>8001010e</hr>
        <errorinfo>ExportProviderFactory must be called on the UI thread.</errorinfo>
      </entry>

    And a duplicate package ID error...

     <entry>    <record>511</record>    <time>2015/12/16 18:29:46.074</time>    <type>Error</type>    <source>Extension Manager</source>    <description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.VisualStudio.TeamFoundation.TeamExplorer.Extensions&apos; is already loaded at C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\3UUVHE3I.PZW\...</description>    <path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TEAMFOUNDATION\TEAM EXPLORER\</path>  </entry>

    Then a bunch of identical nuget errors.

     <entry>    <record>553</record>    <time>2015/12/16 18:29:48.152</time>    <type>Information</type>    <source>VSGallery0f45e40879954375948586b8db553dc9</source>    <description>Extension &apos;MSAdvertisingSdk.5ae598eb-0d21-46b1-a895-6f7b60c70abf&apos; has a current version of &apos;8.1.40505.0&apos; that is less than the installed version &apos;8.1.40505.0&apos;</description>  </entry>

    And finally this...

    <entry>
        <record>561</record>
        <time>2015/12/16 18:29:50.074</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>SetSite failed for package [Microsoft.VisualStudio.Editor.Implementation.EditorPackage][ExportProviderFactory must be called on the UI thread.]:{   at Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread(String callerMemberName)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.get_ExportProviderFactory()&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.&lt;GetMEFV3ExportProviderWrapperAsync&gt;d__46.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod, JoinableTaskCreationOptions creationOptions)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetLazyValue[T](AsyncLazy`1 lazy)&#x000D;&#x000A;   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.EditorParts.get_ContentTypeRegistryService()&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.LanguageServiceToContentTypeMapper.MakeLanguageServiceContentTypes(SettingsStore settingsStore)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.LanguageServiceToContentTypeMapper.InitLanguageServiceToContentTypeMapper(IServiceProvider serviceProvider)&#x000D;&#x000A;   at Microsoft.VisualStudio.Editor.Implementation.EditorPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description>
        <guid>{E269B994-EF71-4CE0-8BCD-581C217372E8}</guid>
        <hr>8001010e</hr>
        <errorinfo>ExportProviderFactory must be called on the UI thread.</errorinfo>
      </entry>
      <entry>
        <record>562</record>
        <time>2015/12/16 18:29:50.074</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>End package load [Microsoft.VisualStudio.Editor.Implementation.EditorPackage]</description>
        <guid>{E269B994-EF71-4CE0-8BCD-581C217372E8}</guid>
        <hr>8001010e</hr>
        <errorinfo>Unspecified error
    </errorinfo>
      </entry>
    </activity>

    Wednesday, December 16, 2015 6:45 PM
  • I have now done 2 system restores and the restore point forced Update 1 to run again each time.  I've also repaired the installation.  

    I'm unable to work so I have no choice but to uninstall and reinstall Visual Studio.  

    Huge bummer.  Really huge.  

    Wednesday, December 16, 2015 9:34 PM
  • Wound up uninstalling and then reinstalling.  This resolved the issue.

    Mike Nichols

    Wednesday, December 16, 2015 11:17 PM
  • This worked for me as well.  I'm still concerned about corruption though.  

    I had an initial release ISO from MSDN which i used to mount and install on my Win 10 machine.  when i got done with the install all the updates, extensions and packages were still intact...including the Update 1 patch.  That says to me something didn't uninstall correctly which means it could just randomly happen again.  

    Glad it worked for you!

    Thursday, December 17, 2015 12:31 AM
  • I had the same issue. The problem is a corruption of the VisualStudio PowerTools. I removed them manually by deleting the corresponding folder in "%LOCALAPPDATA%\Microsoft\VisualStudio\14.0\Extensions". After installing the PowerTools again with the vsix from the VSGallery everything works fine.
    Monday, December 21, 2015 1:54 PM
  • I got the issue after updating Visual Studio 2017 (to version 15.1 (26403.0)); uninstalling and reinstalling Productivity Power Tool 2017 (via Visual Studio) was the answer. I didn't have to delete anything in the "Extensions" folder thought.
    Sunday, April 09, 2017 9:54 AM
  • Same here, after upgrading to VS2017 version 15.1 it broke power tools.  Uninstalling and reinstalling fixed it.
    Monday, April 10, 2017 6:19 PM