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

Microsoft.Azure.WebJobs.Host: Error indexing method #30

Open
crookedbard opened this issue Jan 18, 2019 · 6 comments
Open

Microsoft.Azure.WebJobs.Host: Error indexing method #30

crookedbard opened this issue Jan 18, 2019 · 6 comments

Comments

@crookedbard
Copy link

Microsoft.Azure.WebJobs.Host: Error indexing method 'ApiQueue.Run'. Microsoft.Azure.WebJobs.Host: Cannot bind parameter 'dbService' to type IDbService. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. config.UseServiceBus(), config.UseTimers(), etc.).
[01/18/2019 21:58:03] Function 'ApiQueue.Run' failed indexing and will be disabled.

@crookedbard
Copy link
Author

Startup.cs does not get triggered.
.Net Core 2.1 ServiceBusTrigger Azure Functions

@peef
Copy link

peef commented Jan 22, 2019

Duplication of #23.

@ranouf
Copy link

ranouf commented Feb 7, 2019

Hi, Did you find a solution? I have the same problem with netcoreapp2.2

@BorisWilhelms
Copy link
Owner

@crookedbard could you please siwtch your functions project to target netstandard2 instead of netcoreapp (which is the default). See #17 (comment) for more information.

@deadwards90
Copy link

#17 (comment)

Updating the SDK to the latest version should make it work without switching targetframework.

@epitka
Copy link

epitka commented Jan 23, 2020

Startup gets triggered only when targeting "netcoreapp3.0". Using latest Microsoft.NET.Sdk.Functions 3.02 and Microsoft.Azure.Function.Extensions 1.0.0.
However it is still unable to inject dependency and gives "cannot index method" error.

Followed this article

https://docs.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection

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

6 participants