Click here to Skip to main content
15,793,546 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to fill Foreign Key in a relational database when creating a new row? Pin
Alex Dunlop19-Dec-21 8:12
Alex Dunlop19-Dec-21 8:12 
AnswerRe: How to fill Foreign Key in a relational database when creating a new row? Pin
Alex Dunlop19-Dec-21 9:02
Alex Dunlop19-Dec-21 9:02 
QuestionWhere did i get asp.net project in linux with mysql database.? Pin
Tushar Surve 202115-Dec-21 7:11
Tushar Surve 202115-Dec-21 7:11 
AnswerRe: Where did i get asp.net project in linux with mysql database.? Pin
Richard Deeming15-Dec-21 7:22
mveRichard Deeming15-Dec-21 7:22 
GeneralRe: Where did i get asp.net project in linux with mysql database.? Pin
Mycroft Holmes15-Dec-21 14:31
professionalMycroft Holmes15-Dec-21 14:31 
QuestionTwo ReportViewers on the same project Pin
Member 1077312213-Dec-21 2:01
Member 1077312213-Dec-21 2:01 
QuestionRe: Two ReportViewers on the same project Pin
CHill6013-Dec-21 2:09
mveCHill6013-Dec-21 2:09 
QuestionAn unhandled exception occurred while processing the constructor in ASP.NET Core MVC Pin
Alex Dunlop6-Dec-21 8:51
Alex Dunlop6-Dec-21 8:51 
I use the following code for dependency injection of Register/Login controller. The problem is that I cannot use Repository pattern I have created previously.

private readonly UserManager<AppUser> _userManager;
        private readonly SignInManager<AppUser> _signInManager;
        private readonly IUserRepository _userRepository;

        public HomeController(UserManager<AppUser> userManager, SignInManager<AppUser> signInManager, IUserRepository userRepository)
        {
            _userManager = userManager;
            _signInManager = signInManager;
            _userRepository = userRepository;
        }


When I run the code, the following error is occured:

Quote:
InvalidOperationException: Unable to resolve service for type 'CustomizedIdentity.Repositories.IUserRepository' while attempting to activate 'CustomizedIdentity.Controllers.HomeController'.


modified 6-Dec-21 14:00pm.

AnswerRe: An unhandled exception occurred while processing the constructor in ASP.NET Core MVC Pin
Richard Deeming6-Dec-21 22:54
mveRichard Deeming6-Dec-21 22:54 
GeneralRe: An unhandled exception occurred while processing the constructor in ASP.NET Core MVC Pin
Alex Dunlop7-Dec-21 8:09
Alex Dunlop7-Dec-21 8:09 
QuestionUse Active Directory for authentication Pin
Joseline Riker2-Dec-21 6:50
Joseline Riker2-Dec-21 6:50 
QuestionIs this data annotation correct for date and time? Pin
Alex Dunlop25-Nov-21 23:26
Alex Dunlop25-Nov-21 23:26 
AnswerRe: Is this data annotation correct for date and time? Pin
Richard MacCutchan26-Nov-21 1:02
mveRichard MacCutchan26-Nov-21 1:02 
GeneralRe: Is this data annotation correct for date and time? Pin
Alex Dunlop26-Nov-21 1:28
Alex Dunlop26-Nov-21 1:28 
GeneralRe: Is this data annotation correct for date and time? Pin
Richard MacCutchan26-Nov-21 1:39
mveRichard MacCutchan26-Nov-21 1:39 
GeneralRe: Is this data annotation correct for date and time? Pin
Alex Dunlop26-Nov-21 1:45
Alex Dunlop26-Nov-21 1:45 
GeneralRe: Is this data annotation correct for date and time? Pin
Richard MacCutchan26-Nov-21 1:56
mveRichard MacCutchan26-Nov-21 1:56 
AnswerRe: Is this data annotation correct for date and time? Pin
jkirkerx28-Nov-21 10:12
professionaljkirkerx28-Nov-21 10:12 
QuestionCannot establish local connection to SQL SERVER Pin
Alex Dunlop25-Nov-21 0:15
Alex Dunlop25-Nov-21 0:15 
QuestionRe: Cannot establish local connection to SQL SERVER Pin
Richard MacCutchan25-Nov-21 1:37
mveRichard MacCutchan25-Nov-21 1:37 
AnswerRe: Cannot establish local connection to SQL SERVER Pin
Richard Deeming25-Nov-21 2:15
mveRichard Deeming25-Nov-21 2:15 
GeneralRe: Cannot establish local connection to SQL SERVER Pin
Richard MacCutchan25-Nov-21 2:18
mveRichard MacCutchan25-Nov-21 2:18 
AnswerRe: Cannot establish local connection to SQL SERVER Pin
Richard Deeming25-Nov-21 2:19
mveRichard Deeming25-Nov-21 2:19 
AnswerRe: Cannot establish local connection to SQL SERVER Pin
jsc4225-Nov-21 3:56
professionaljsc4225-Nov-21 3:56 
GeneralRe: Cannot establish local connection to SQL SERVER Pin
Richard Deeming25-Nov-21 4:33
mveRichard Deeming25-Nov-21 4:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.