I have been given a task for making a Registration form and login form in Asp.net mvc web application.
Now I have created this but I am having issue about how to retrieve data from MongoDb when I click on Sign In button.
I can send data to mongoDb when I Click on register, but not able to login with those credentials.
This really isn’t anywhere near enough information to help you. What does “not able to login” mean? Are you using an actual authentication system (Microsoft Identity for ASP.NET) or are you trying to roll your own (bad idea)?
You need to provide code samples of what you’re having trouble with, along with exception messages or a detailed description of what you’re seeing. Provide some more detail and maybe we can help.
the official mongo driver can be overwhelming for newcommers. there are easier alternatives like the free library https://mongodb-entities.com
What error did you get when you try to populate data from mongodb?
I learned with MongoDB that if you use on their cloud they prefer you to use the api.
This is really lacking in details. Is this a home work assignment or something? What are you actually doing when you save? How did you verified anything saved? How are you attempting to login? What authentication are you using?
C# devs
null reference exceptions