-
Notifications
You must be signed in to change notification settings - Fork 147
MissingMethodException when mixing beta5 and beta7 packages #119
Comments
You're referencing beta5 and beta7 packages in your Sadly, there's currently a "bug" caused by the fact various ASP.NET 5 packages reference CoreCLR packages that are not on MyGet/NuGet yet, so it might not work ATM: dotnet/aspnetcore#819 We're also impacted by massive naming changes introduced in dotnet/corefx that prevent our CI from working correctly: aspnet/Security#396. That said, this bug shouldn't impact you if you directly use the NuGet package, unless you use |
@Eilon hey! Any idea on when the CoreCLR packages will be referenced by the MyGet repository? |
Okay thanks I see, so I'll use Beta6 for now, which version of AspNet.Security.OpenIdConnect.Server will work with Beta6? - forget that I'll wait for the fix and use directly. thanks |
There's no version for beta6 release, but you can try |
@stephenstroud FYI, the missing packages are now on the ASP.NET MyGet repository. @Tratcher is still fixing the referenced to the old crypto packages in the different ASP.NET 5 packages, but using the old ones doesn't cause any issue in |
The fixed package is on MyGet (1.0.0-beta2-0299): https://www.myget.org/F/aspnet-contrib/api/v2/package/AspNet.Security.OpenIdConnect.Server/1.0.0-beta2-0299 🎉 🎈 |
Are you still seeing this bug? I'd bet it's caused by desynchronized |
@PinpointTownes - This post pls... Yes, everything aligned see here I've also reinstalled the DNX packages and runtimes in line with Beta7. |
This definitely sounds like a versioning issue. Try using floating versions Does this bug reproduce with WebListener? |
@PinpointTownes The issue was, Although I had changed the project properties to point at Beta7 I found that the Global.json file version was still pointing at Beta5. It tried downloading dnx-coreclr-win-x86.1.0.0-beta7 which didn't exist and failed over to dnx-coreclr-win-x86.1.0.0-beta5. So I ended up using { "sources": [ "src" ] } in there which made the project.lock.json match. Thanks for your help! |
Great, glad you sorted it out! 😄 Feel free to share your thoughts/remarks and don't hesitate to file a new ticket if you still need help. |
Hi @PinpointTownes hope you can help again.
I installed "AspNet.Security.OpenIdConnect.Server": "1.0.0-*" with the required dependencies
However, when adding
"AspNet.Security.OpenIdConnect.Server": "1.0.0-*"
I get the below error. I've installed the latest and previous DNVM runtimes and restored the packages on each one however, I still get the error. Also tried older OpenIdConnect versions.
I tried with:
dnx-clr-win-x86.1.0.0-beta5
dnx-clr-win-x86.1.0.0-beta6
dnx-clr-win-x86.1.0.0-beta7-12331
if I remove "AspNet.Security.OpenIdConnect.Server": "1.0.0-*" it works. Maybe you experienced the same issue, any idea how I could fix this please?
System.MissingMethodException
Method not found: 'Boolean Microsoft.Framework.DependencyInjection.ServiceCollectionExtensions.TryAdd(Microsoft.Framework.DependencyInjection.IServiceCollection, Microsoft.Framework.DependencyInjection.ServiceDescriptor)'.
System.MissingMethodException: Method not found: 'Boolean Microsoft.Framework.DependencyInjection.ServiceCollectionExtensions.TryAdd(Microsoft.Framework.DependencyInjection.IServiceCollection, Microsoft.Framework.DependencyInjection.ServiceDescriptor)'.
at Microsoft.Framework.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(IServiceCollection services)
at Microsoft.AspNet.Hosting.WebHostBuilder.BuildHostingServices()
at Microsoft.AspNet.Hosting.WebHostBuilder.Build()
at Microsoft.AspNet.Loader.IIS.RuntimeHttpApplication.ApplicationStart(IHttpApplication application)
at Microsoft.AspNet.Loader.IIS.HttpApplicationBase.InvokeApplicationStart(IHttpApplication application)
The text was updated successfully, but these errors were encountered: