Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.MissingMethodException on newer versions of Microsoft.Azure.Devices.Client #2

Open
kiranpradeep opened this issue Dec 6, 2020 · 0 comments

Comments

@kiranpradeep
Copy link

I was trying the starter sample. I replaced the reference to Bader.Edge.ModuleHost.csproj [1] in starter.csproj with nuget Bader.Edge.ModuleHost 1.0.2 [2]

It worked well for older version of Microsoft.Azure.Devices.Client like 1.25.0. But when I try later version like 1.33.*, it fails during runtime below error message.

[20:31:54 ERR] Error occurred on startup
System.MissingMethodException: Method not found: System.Threading.Tasks.Task1<Microsoft.Azure.Devices.Client.ModuleClient> Microsoft.Azure.Devices.Client.ModuleClient.CreateFromEnvironmentAsync(Microsoft.Azure.Devices.Client.ITransportSettings[]).
at Microsoft.Extensions.Hosting.ModuleHostBuilderExtensions.CreateModuleClient(IServiceProvider serviceProvider)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at Bader.Edge.ModuleHost.ModuleClientHostedService.StartAsync(CancellationToken cancellationToken)
Exception thrown: System.MissingMethodException' in System.Private.CoreLib.dll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant