TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abdulmajeed Alshari
1.4k
266
56.9k
UserManager and SignInManager not run correctly
Jul 8 2020 4:09 PM
my asp project run well when try to debug my asp project and connect it with its database , its Database is
placed on godaddy Server .
//In this case I connect my project with external database on Godaddy Hosting
var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout:
false
);
//Here it is return success as a result
var userID = UserManager.FindByName(model.userName)?.Id;
//Here it is return this '882ffec2-a71d-49d2-986d-4c7ee472dd8a' as UserId
but not run well when try to connect my asp project with
local
database that placed on SQL Server in my muchine,
//In this case I
connect my project with internal database on local SQL Server on the same computer .
var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout:
false
);
//
Here it is return Failure
as a result
var userID = UserManager.FindByName(model.userName)?.Id;
//Here it is return null value as UserId
Note One - Two Databases has the same schama and Data because I Create the local Database from script of the external database. I Generate the Script of Schama and Data.
too, I check that browase the data of these databases are the same togerther .
Note Two - I am using Database First Approach
I am confused please help.
Reply
Answers (
1
)
Is there any best way to resize video file size in asp.net mvc5.
what is a first a priority?