Asked by:
Visual Studio 2015 - Nuget Exception - GetFullVsVersionString must be called on the UI thread

Question
-
User1194777115 posted
While attempting to build or open a project in Visual Studio 2015 Update 3, I keep getting errors around nuget package management.
Whenever I build the project the first time after opening VS, I get the error message below.
I also get it when I try to open the nuget package manager dialog.
Anyone else experience this?%% Here is the error %%
An exception was thrown while initializing part "Nuget.PackageManagement.VisualStudio.VSolutionManager". GetFullVsVersionString must be called on the UI thread.
Here is another thread in ASP.NET about this issue :
Operation Failed An exception was thrown while initializing part (on NugetPack click.)
People say install this plugin for fix this issue.
But when i open that url i face this error :We're sorry, the page you requested cannot be found!
In
VisualStudio 2015 -> Tools -> Extensions and updates -> Online
: Search for the string: "Fix NuGet GetFullVsVersionString must be called on the UI thread" and install the given fix.Alternatively you can download the fix at : GetFullVsVersionString fix
Now in February 2018, the latest NuGet Package Manager version 3.4.4.1321 does not have the fix included, so the patch must be applied.
As Steve Greene's answer describes, I also had the Telerik extension installed, so that might have caused the problem.
I searched that phrase in VS - But could n't find anything.
AlsoGetFullVsVersionString fix
does n't exist any more.
I also reinstalled nuget package manager - no help.
What is the solution?Wednesday, January 27, 2021 5:48 AM
All replies
-
User-939850651 posted
Hi MAJID_DARAB,
According to your description, I am afraid that I can't reproduce your problem. And I did some searching on the problem and I found that the problem might be caused by other third party extensions, components caches, nuget caches or VS environment.
You could try ( refer to this case) :
1) disable any third party installed extensions exclude under Tools-->Extensions and Updates except NuGet Package Manager for Visual Studio 2015.
Then, uninstall NuGet Package Manager for Visual Studio 2015 extension.
2) close VS,
a) delete all nuget caches under
C:\Users\xxx(current user)\.nuget\packages
and also delete thenuget.config under
C:\Users\xxx(current user)\AppData\Roaming\NuGet`Besides, delete
.vs
hidden folder under the solution folder,bin
andobj
folder of the project folder.b) delete all component caches under
C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
c) then restart VS and then install nuget extension directly from this VS marketplace website.
3) try to run
devenv /safemode
under Developer Command Prompt for VS2015 to start VS and then test again. This mode is a pure, initial vs environment when you first installed.4) repair VS from the Control Panel-->Programs-->right click on VS2015-->Change-->Repair
Hope this can help you.
Best regards,
Xudong Peng
Wednesday, January 27, 2021 7:59 AM -
User1194777115 posted
Hi XuDong Peng,
Can you help me to find this extension?
Why did they remove it from marketplace?
When i create a totally new project in VS and close it's solution & open my prefer project in it error vanished.
Why does VS act like this?
I also have Telerik installed in VS. Is it related to that error?
Wednesday, January 27, 2021 12:01 PM -
User1194777115 posted
When i delete
.vs hidden folder
and open VS error vanished.
but when i close VS & reopen it again i face that error again.
What is wrong about.vs hidden
folder?Wednesday, January 27, 2021 12:35 PM -
User-939850651 posted
Hi MAJID_DARAB,
I couldn't find the extension you mentioned, and get the same prompt as you appeared ( cannot be found ).
Have you carefully read the possible causes of the problem ( third party extensions, components caches, nuget caches or VS environment ) I mentioned above and tried the solutions?
Do they solve your current problem?
Best regards,
Xudong Peng
Thursday, January 28, 2021 5:51 AM -
User1194777115 posted
I figured out problem is from telerik extensions.
I cleared VS log and grabed that error like this :
ActivityLog.xml
How can i fix it without disabling Telerik Extensions?Friday, February 5, 2021 5:55 PM -
Saturday, February 6, 2021 6:47 PM
-
User-939850651 posted
Hi MAJID_DARAB,
I figured out problem is from telerik extensions.
I cleared VS log and grabed that error like this :
ActivityLog.xml
How can i fix it without disabling Telerik Extensions?I am afraid that I cannot find out a solution since it is related to the telerik extensions
I recommend you reporting this issue on Telerik forums: https://www.telerik.com/forums
Best regards,
Xudong Peng
Tuesday, February 9, 2021 7:23 AM -
User1194777115 posted
Dear XuDong Peng thanks for your attention all the time.
You are the best.
Tuesday, February 9, 2021 8:10 PM