none
Visual Studio 2017 - SetSite failed for package [TestWindowPackage]

    Question

  • I have recently upgrade my project from visual studio 2015 to 2017RC1 community.

    When I start the project the following error is logged

    Error Information
    AppInsightsEvent Name = vs/core/packageloadfailure
              Description = SetSite failed for package [TestWindowPackage]
         TelemetrySession = 'd372eefe-be5a-4a94-a931-2bbeff1bef7b' Started = False OptIn=True IsInitialized = False Cloned = False
                 UTC time = 2016-12-19T05:05:23
    
     currently running Stack
        at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.SetBucketParametersForNoExceptionFromClr()
        at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.SetInitialBucketParameters(Exception exceptionObject)
        at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport..ctor(FaultEvent faultEvent, TelemetrySession telemetrySession)
        at Microsoft.VisualStudio.Telemetry.SessionChannel.WatsonSessionChannel.PostEvent(TelemetryEvent telemetryEvent)
        at Microsoft.VisualStudio.Telemetry.TelemetrySession.PostEvent(TelemetryEvent telemetryEvent)
        at Microsoft.VisualStudio.Telemetry.VSTelemetrySession.PostEvent(IVsTelemetryEvent telemetryEvent)
    Telemetry Session Shared Properties:
       VS.Core.BranchName = D15REL
       VS.Core.SkuName = VS Community
       VS.Core.User.IsOptedIn = True
       VS.Core.Locale.ProductLocaleName = en-US
       VS.Core.ManifestId = VisualStudio/public.d15rel/15.0.26014.0
    Telemetry event 'vs/core/packageloadfailure' properties:
       [VS.Core.PackageLoadFailure.Description] = ''
       [VS.Fault.Exception.Offset] = '0'
       [VS.Core.PackageLoadFailure.HRESULT] = '0x80004003'
       [VS.Fault.WatsonOptIn] = 'CallbackOptIn'
       [VS.Fault.WatsonReportNumber] = '0'
    Telemetry event 'vs/core/packageloadfailure' reserved properties:
       [DataModel.Severity] = '10'
       [DataModel.Source] = 'DataModelApi'
       [DataModel.EntityType] = 'Fault'
       [DataModel.EntitySchemaVersion] = '4'
       [DataModel.CorrelationId] = 'a06a765d-0016-4c73-9dc3-5761429b0079'
       [DataModel.ProductName] = 'vs'
       [DataModel.FeatureName] = 'core'
       [DataModel.EntityName] = 'packageloadfailure'
       [DataModel.Fault.Exception.StackTrace] = '   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.SetBucketParametersForNoExceptionFromClr()
       at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.SetInitialBucketParameters(Exception exceptionObject)
       at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport..ctor(FaultEvent faultEvent, TelemetrySession telemetrySession)
       at Microsoft.VisualStudio.Telemetry.SessionChannel.WatsonSessionChannel.PostEvent(TelemetryEvent telemetryEvent)
       at Microsoft.VisualStudio.Telemetry.TelemetrySession.PostEvent(TelemetryEvent telemetryEvent)
       at Microsoft.VisualStudio.Telemetry.VSTelemetrySession.PostEvent(IVsTelemetryEvent telemetryEvent)
    '
       [DataModel.Fault.Description] = 'SetSite failed for package [TestWindowPackage]'
       [DataModel.Fault.BucketParam1] = 'devenv.exe'
       [DataModel.Fault.BucketParam2] = '15.0.26014.0'
       [DataModel.Fault.BucketParam3] = 'vs.core.packageloadfailure'
       [DataModel.Fault.BucketParam4] = ''
       [DataModel.Fault.BucketParam5] = '[TestWindowPackage]'
       [DataModel.Fault.BucketParam6] = ''
       [DataModel.Fault.BucketParam7] = ''
       [DataModel.Fault.BucketParam8] = 'CVsPackageMgr::CVsPackageInfo::LogHr'
       [DataModel.Fault.BucketParam9] = ''
       [DataModel.Fault.BucketParam10] = ''
       [DataModel.Fault.IsSampled] = 'True'
    
       CallStack Hash:a7f3cafa
    
       SetSite failed for package [TestWindowPackage]
    
       Added File C:\Users\AFT\AppData\Roaming\Microsoft\VisualStudio\15.0_97aa50f4\ActivityLog.xml
    

    thanks !

    Tuesday, December 20, 2016 5:37 AM

All replies

  • Hi kianmeng-aft,

    According to the error message, please refer to the following scenarios to troubleshot this issue:

    1). Update the VS2017 RC to the latest version, please refer to the flowing steps:

          Tools->Extensions and Updates->Updates->update option beginning with KB letters.

    2). Close all instances of Visual Studio->Delete all files under the two following folders:

          C:\Users\<your users name>\AppData\Local\Microsoft\VisualStudio\15.0 and

          C:\Users\<your users name>\AppData\Roaming\Microsoft\VisualStudio\15.0

    Then restart VS.

    Sincerely,

    Oscar


    MSDN Community Support
    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.

    • Proposed as answer by qing__Moderator Wednesday, December 21, 2016 9:20 AM
    Tuesday, December 20, 2016 6:59 AM
    Moderator