Error: Method not defined in Interface.

I have defined method in interface but it is throwing error that method is not defined.
No description
No description
23 Replies
333fred
333fred3w ago
Show the actual error, and the definition of _emailService
Serene Sphinx
Serene SphinxOP3w ago
Okay
Serene Sphinx
Serene SphinxOP3w ago
No description
Serene Sphinx
Serene SphinxOP3w ago
1
No description
Serene Sphinx
Serene SphinxOP3w ago
2
No description
333fred
333fred3w ago
Do you actually have your dependencies set up correctly? There's a yellow triangle in your service profile
Serene Sphinx
Serene SphinxOP3w ago
Yes lemme dhow you
333fred
333fred3w ago
Also, you didn't show the definition of _emailService
Serene Sphinx
Serene SphinxOP3w ago
builder.Services.AddScoped<IEmailService, EmailService>();
333fred
333fred3w ago
That's irrelevant I'm asking about your project dependencies, which are almost certainly not set up correctly, given the yellow triangle
Serene Sphinx
Serene SphinxOP3w ago
How 🙁 It is because, asking to update packages to Dotnet9 I am not dotnet 8
333fred
333fred3w ago
If your dependencies are not correct, that can cause all sorts of cascading errors
Serene Sphinx
Serene SphinxOP3w ago
No description
333fred
333fred3w ago
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
Serene Sphinx
Serene SphinxOP3w ago
Where in controller?
333fred
333fred3w ago
And make sure that the project IEmailService lives in properly builds
Serene Sphinx
Serene SphinxOP3w ago
I am not understanding. Which File I share you I need help
333fred
333fred3w ago
You need to make sure that _emailService has the type you think it has My plane is leaving, good luck
Serene Sphinx
Serene SphinxOP3w ago
No description
Serene Sphinx
Serene SphinxOP2w ago
Hey reach tod estination? Can we connect?
333fred
333fred2w ago
Did you check the things I told you to check?
Serene Sphinx
Serene SphinxOP2w ago
Hey I solved this issue. I am sending you DM
333fred
333fred2w ago
I don't do DM support, please ask on the server
Want results from more Discord servers?
Add your server