You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Entry point was not found when searching in some online feeds #1284
When trying to open a package from an online feed, no packages are found, but a message at the bottom of the Select Package window says: Entry point was not found. Steps to reproduce:
I see the same error when using the windows store version (NuGet Package Explorer - Store - X64 - (5.10.21+6a2d01cb3f)). But when I debug the code it works. @clairernovotny do you see some more information in application insights?
Depending on if this gets fixed we could update to a newer version of Newtonsoft.Json. Currently we are using the old 9.0.1 version from NuGet.Packaging.
Just for reference here is the complete stack trace:
System.EntryPointNotFoundException: Entry point was not found.
at System.Collections.Generic.IEnumerable`1.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) in System.Private.CoreLib.dll:token 0x60065c5+0x5c
at Newtonsoft.Json.Utilities.ReflectionUtils.GetFields(Type targetType, BindingFlags bindingAttr) in Newtonsoft.Json.dll:token 0x6000431+0x0
at Newtonsoft.Json.Utilities.ReflectionUtils.GetFieldsAndProperties(Type type, BindingFlags bindingAttr) in Newtonsoft.Json.dll:token 0x6000428+0x0
at Newtonsoft.Json.Serialization.DefaultContractResolver.GetSerializableMembers(Type objectType) in Newtonsoft.Json.dll:token 0x60004b0+0xa
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperties(Type type, MemberSerialization memberSerialization) in Newtonsoft.Json.dll:token 0x60004cc+0x0
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType) in Newtonsoft.Json.dll:token 0x60004b2+0xe
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType) in Newtonsoft.Json.dll:token 0x60004c7+0xc9
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type) in Newtonsoft.Json.dll:token 0x60004af+0x38
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) in Newtonsoft.Json.dll:token 0x60005df+0xe
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) in Newtonsoft.Json.dll:token 0x6000152+0x45
at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer) in Newtonsoft.Json.dll:token 0x600093e+0x11
at Newtonsoft.Json.Linq.JToken.ToObject[T](JsonSerializer jsonSerializer) in Newtonsoft.Json.dll:token 0x600093d+0x0
at NuGet.Protocol.JsonExtensions.FromJToken[T](JToken jtoken) in NuGet.Protocol.dll:token 0x6000076+0x0
at PackageExplorerViewModel.ShowLatestVersionQueryContext`1.<>c.<SearchOnServer>b__17_2(JObject s) in C:\dev_projects\NuGetPackageExplorer\PackageViewModel\PackageChooser\ShowLatestVersionQueryContext.cs:line 119
at System.Linq.Enumerable.SelectEnumerableIterator`2.ToList() in System.Linq.dll:token 0x60001bc+0x1b
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) in System.Linq.dll:token 0x600011b+0x1b
at PackageExplorerViewModel.ShowLatestVersionQueryContext`1.<>c__DisplayClass17_0.<<SearchOnServer>b__1>d.MoveNext() in C:\dev_projects\NuGetPackageExplorer\PackageViewModel\PackageChooser\ShowLatestVersionQueryContext.cs:line 119
--- End of stack trace from previous location ---
at PackageExplorerViewModel.ShowLatestVersionQueryContext`1.SearchOnServer(CancellationToken token) in C:\dev_projects\NuGetPackageExplorer\PackageViewModel\PackageChooser\ShowLatestVersionQueryContext.cs:line 114
at PackageExplorerViewModel.ShowLatestVersionQueryContext`1.LoadMore(CancellationToken token) in C:\dev_projects\NuGetPackageExplorer\PackageViewModel\PackageChooser\ShowLatestVersionQueryContext.cs:line 54
at PackageExplorerViewModel.PackageChooserViewModel.LoadMore(CancellationToken token) in C:\dev_projects\NuGetPackageExplorer\PackageViewModel\PackageChooser\PackageChooserViewModel.cs:line 283
@clairernovotny another workaround is to set <PublishReadyToRunUseCrossgen2>false</PublishReadyToRunUseCrossgen2> in the publish profiles if you want to run on the latest .net previews again.
@campersau were you able to test/reproduce this? I'd be curious why this only affects the MSIX version and not the zip/choco one? We do dotnet publish on all of them.
Activity
mmb5 commentedon May 28, 2021
I also started receiving the same error of Entry point was not found. I was also having the issue in Visual Studio, and I was able to repair the issue with the steps outlined here: https://cann0nf0dder.wordpress.com/2019/07/20/visual-studio-nuget-no-connection-could-be-made-because-the-target-machine-actively-refused-it-127-0-0-18888/. However, I don't see a similar config file in NPE to change.
campersau commentedon May 28, 2021
I see the same error when using the windows store version (
NuGet Package Explorer - Store - X64 - (5.10.21+6a2d01cb3f)). But when I debug the code it works.@clairernovotny do you see some more information in application insights?
clairernovotny commentedon May 28, 2021
I'm not seeing anything in app insights
clairernovotny commentedon May 28, 2021
I'm guessing there's a bug in .NET 6 preview 4. I'm reverting to preview 3 and it's building now.
campersau commentedon May 28, 2021
Yes, it works again with the new version https://github.com/NuGetPackageExplorer/NuGetPackageExplorer/releases/tag/v5.10.25
campersau commentedon Jun 1, 2021
I have reported the issue to dotnet here: dotnet/runtime#53520
Depending on if this gets fixed we could update to a newer version of
Newtonsoft.Json. Currently we are using the old9.0.1version fromNuGet.Packaging.Just for reference here is the complete stack trace:
bveldkamp commentedon Jun 1, 2021
Thanks for the quick fix. I got 5.10.25 from the Windows Store today
campersau commentedon Jun 2, 2021
@clairernovotny another workaround is to set
<PublishReadyToRunUseCrossgen2>false</PublishReadyToRunUseCrossgen2>in the publish profiles if you want to run on the latest .net previews again.clairernovotny commentedon Jun 5, 2021
@campersau were you able to test/reproduce this? I'd be curious why this only affects the MSIX version and not the zip/choco one? We do dotnet publish on all of them.
clairernovotny commentedon Jun 5, 2021
NM, confirmed it locally.
CrossGen2 is causing issuses