Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC:

The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 18 Dec 2019 10:42 #12269

  • knutdrofus
  • knutdrofus's Avatar
  • Topic Author


  • Posts: 5
  • On one out of two computers where I've instealled XSharp 2.2, I get an error when starting Visual Studio 2019 Professional edition 16.4.1 (Version 4.8.03752):

    Error: "The 'XSharp Project System" 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\<myusername>\AppData\Roaming\Microsoft\VisualStudio\16.0_5291f88d\ActivityLog.xml.

    Restarting Visual Studio could help resolve the issue.

    Continue to show this error message?" Yes/No.

    Restarting visual studio does not help.

    I've attached ActivityLog.xml, but the key entry seems to be:

    SetSite failed for package [XSharp Project System]Source: 'Microsoft.VisualStudio.Shell.14.0' Description: Due to high risk of deadlock you cannot call GetService from a background thread in an AsyncPackage derived class. You should instead call GetServiceAsync (without calling Result or Wait on the resultant Task object) or switch to the UI thread with the JoinableTaskFactory.SwitchToMainThreadAsync method before calling GetService. System.InvalidOperationException: Due to high risk of deadlock you cannot call GetService from a background thread in an AsyncPackage derived class. You should instead call GetServiceAsync (without calling Result or Wait on the resultant Task object) or switch to the UI thread with the JoinableTaskFactory.SwitchToMainThreadAsync method before calling GetService.at Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType)at Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)at Microsoft.VisualStudio.Package.LanguageService.SetSite(Object site)at XSharp.Project.XSharpProjectPackage.<InitializeAsync>d__16.MoveNext() in C:\XSharp\DevPublic\VisualStudio\ProjectPackage\XSharpProjectPackage.cs:line 287 --- End of stack trace from previous location where exception was thrown ---at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass16_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.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__68.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)at Microsoft.VisualStudio.Services.VsTask.GetResult()

    I've attached a screenshot of the error message, info about my visual studio version, and ActivityLog.xml (zipped, because of file type limitations)

    Please Log in or Create an account to join the conversation.

    The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 18 Dec 2019 10:59 #12270

    • robert
    • robert's Avatar


  • Posts: 3447
  • Knut,
    Thanks for the report.
    We'll come with a fix in a few days.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 18 Dec 2019 11:01 #12272

    • knutdrofus
    • knutdrofus's Avatar
    • Topic Author


  • Posts: 5
  • Much appreciated. Let me know if you need any more info.

    Please Log in or Create an account to join the conversation.

    The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 18 Dec 2019 11:15 #12278

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3297
  • Hi Robert,
    I had that also when starting VS 2017, but only the first time. And I had started VS directly on a (C#) solution.
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

    Please Log in or Create an account to join the conversation.

    The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 18 Dec 2019 11:31 #12280

    • knutdrofus
    • knutdrofus's Avatar
    • Topic Author


  • Posts: 5
  • I got my error when trying to open a solution with no xsharp projects, but where C#/WPF projects reference vulcan/vo projects.

    (our xsharp work is still in a separate feature branch, where we're trying to migrate some old vulcan/vo code to xsharp).

    I get this error every time I start VS on my desktop, but never on my laptop, which as far as I can tell, has the exact same xsharp and VS versions installed.

    Please Log in or Create an account to join the conversation.

    The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 19 Dec 2019 14:52 #12305

    • knutdrofus
    • knutdrofus's Avatar
    • Topic Author


  • Posts: 5
  • I'm not sure if it's helpful, but I just want to add that I got the same error on my other machine after rebooting

    Please Log in or Create an account to join the conversation.

    The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 19 Dec 2019 15:04 #12306

    • Chris
    • Chris's Avatar


  • Posts: 3844
  • Thanks guys, there should be a fix for this problem out soon!
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 22 Apr 2020 07:22 #14130

    • Neil
    • Neil's Avatar


  • Posts: 11
  • Was there ever a fix for this? I do get this whenever I load VS 2017. I could just choose to not show it I think but don't want to just dismiss it.

    Please Log in or Create an account to join the conversation.

    The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 22 Apr 2020 08:47 #14132

    • knutdrofus
    • knutdrofus's Avatar
    • Topic Author


  • Posts: 5
  • Yes, for me this was fixed by www.xsharp.eu/articles/xsharp-bandol-2-2a if I remember correctly.

    Please Log in or Create an account to join the conversation.

    The "XSharp Project System" package did not load correctly in VS 2019 16.4.1 22 Apr 2020 19:40 #14144

    • Neil
    • Neil's Avatar


  • Posts: 11
  • knutdrofus wrote: Yes, for me this was fixed by www.xsharp.eu/articles/xsharp-bandol-2-2a if I remember correctly.


    Ah. Good to know I'll eventually see it, I guess I can just tell it to stop showing this error for now.

    Unfortunately I'm in spare time passion project level (only at the very early stages) to unofficially convert my product over until I get a good enough amount done to convince the higher ups to add it to the roadmap to focus on it and get them to cover the subscription cost.

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1