dotnet / dotnet/machinelearning-modelbuilder
Extension fails to load: SetSite failed for package [ModelBuilderPackage]
- Lingua principale
- Dockerfile
- Stelle
- 285
- Fork
- 66
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**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
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia leggendo l’estratto di ActivityLog.xml e il punto di ingresso ModelBuilderPackage.InitializeAsync indicato nello stack trace. Riproduci l’apertura di un modello esistente con Open With... e traccia il motivo per cui Microsoft.VisualStudio.Threading versione 17.2.0.0 non può essere caricata; il lavoro è completo quando il pacchetto viene caricato senza l’errore SetSite segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100