dotnet / dotnet/machinelearning-modelbuilder

Extension fails to load: SetSite failed for package [ModelBuilderPackage]

Open
#2,394 5 comments 0 reactions 0 assignees View on GitHub
Reported by: Customer Stale
Dominant language
Dockerfile
Stars
285
Forks
66
PR merge metrics
No merged PRs in 30d

Description

**System Information (please complete the following information):**
- Model Builder Version (available in Manage Extensions dialog): 16.14.0.2255902
- Visual Studio Version: 17.0.16

**Describe the bug**
- On which step of the process did you run into an issue:
- Clear description of the problem:

This happens when I try to open a previously created model using Open With...

**To Reproduce**

Use Open With...

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**

The 'ModelBuilderPackage' package did not load correctly.

```txt
---------------------------
Microsoft Visual Studio
---------------------------
The 'ModelBuilderPackage' package did not load correctly.

The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\DanielL\AppData\Roaming\Microsoft\VisualStudio\17.0_b47e353d\ActivityLog.xml'.

Restarting Visual Studio could help resolve this issue.

Continue to show this error message?
---------------------------
Yes No
---------------------------
```

**Additional context**
Add any other context about the problem here.

ActivityLog.xml

```xml

2562

Information
VisualStudio
Begin package load [ModelBuilderPackage]
{A1473B8C-F40E-4509-8A84-66BBA12B3E7F}


2563

Error
VisualStudio
SetSite failed for package [ModelBuilderPackage]Source: 'Microsoft.ML.ModelBuilder' Description: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=17.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=17.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.Threading, Version=17.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.ML.ModelBuilder.ModelBuilderPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)
at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

{A1473B8C-F40E-4509-8A84-66BBA12B3E7F}


80070002



2564

Error
VisualStudio
End package load [ModelBuilderPackage]
{A1473B8C-F40E-4509-8A84-66BBA12B3E7F}

80070002


```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.