Hello @Sachin Yadav (Infosys Ltd)
It seems like there is a version mismatch between the Microsoft.Azure.WebJobs
and Microsoft.Azure.WebJobs.Extensions.EventHubs
packages.
The error message indicates that the Microsoft.Azure.WebJobs.Extensions.EventHubs
package is looking for a method that is not available in the version of Microsoft.Azure.WebJobs
that you have installed.
To fix this issue, you can try updating the Microsoft.Azure.WebJobs
package to a version that is compatible with the Microsoft.Azure.WebJobs.Extensions.EventHubs
package.
You can check the compatibility of the packages from the NuGet package manager. You can also try downgrading the Microsoft.Azure.WebJobs.Extensions.EventHubs
package to a version that is compatible with the Microsoft.Azure.WebJobs
package you have installed. If neither of these solutions work, you can try removing both packages and then reinstalling them with compatible versions.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts but also assist other community members who may be looking for similar solutions.