Error: Method not defined in Interface.
I have defined method in interface but it is throwing error that method is not defined.
23 Replies
Show the actual error, and the definition of _emailService
Okay
1
2
Do you actually have your dependencies set up correctly? There's a yellow triangle in your service profile
Yes
lemme dhow you
Also, you didn't show the definition of _emailService
builder.Services.AddScoped<IEmailService, EmailService>();
That's irrelevant
I'm asking about your project dependencies, which are almost certainly not set up correctly, given the yellow triangle
How 🙁
It is because, asking to update packages to Dotnet9
I am not dotnet 8
If your dependencies are not correct, that can cause all sorts of cascading errors
Regardless, since you still haven't shown the definition of _emailService, all I can really tell you is to make sure it has the type you think it has
Where in controller?
And make sure that the project IEmailService lives in properly builds
I am not understanding.
Which File I share you
I need help
You need to make sure that _emailService has the type you think it has
My plane is leaving, good luck
Hey reach tod estination? Can we connect?
Did you check the things I told you to check?
Hey
I solved this issue.
I am sending you DM
I don't do DM support, please ask on the server