Huge chunks of this video are missing, code appears out of nowhere, the section on invoking signalR is entirely skipped. Can't follow the tutorial which is a shame as what is there, is really clear and nice.
Hey friends, Hope you enjoyed and learned a lot in this video. Please subscribe to this channel: ruclips.net/channel/UCYl5G87mJQJOOQoAevAzd5w If I get 400 likes for this video, I am gonna make advanced long polling application (Cryptocurrency ticker trade) using signalR.
I need help.. if a move to other view and then back to view where public chat is build..It give me an error can u tell me y??PLz working on my final year project :(
@@vikasmalik9873 thansk bro , this is my first experience with SignalR , I ask if signalR detect change directly from SQL data base ? for example if i Add a message manually in SQL Server and i watch the User interface can i see the new message ? thanks a lot !
InvalidOperationException: The view 'Create' was not found. The following locations were searched: /Views/Home/Create.cshtml /Views/Shared/Create.cshtml /Pages/Shared/Create.cshtml Why are we referring to a representation that doesn't exist?
I have a question from JS. In the chat.js file, when.innerHTML = (currentdate.getMonth() + 1) + "/" + currentdate.getDate() + "/" + currentdate.getFullYear() + " " + currentdate.toLocaleString('en-US', { hour: 'numeric', minute: 'numeric', hour12: true }) there is an error in the browser console. Uncaught ReferenceError: when is not defined at HTMLInputElement. (chat.js:18:5) but I didn't do anything and I only copied files from Google Drive to my folder. Thanks
i want to clear one doubt, before add migration did you added database externally in this video because after using update database i cant see the database tables in my localdb
I've got error like this - not able to call ToListAsync in homecontroller, any sugestions? public async Task Index() { var currentUser = await _userManager.GetUserAsync(User); if (User.Identity.IsAuthenticated) { ViewBag.CurrentUserName = currentUser.UserName; } var messages = await _context.Messages.ToListAsync(); return View(messages); }
Two question : 1. In case if we are not Using the entity framework what will you do in place of user manger this is used as part of the aspnetcore.identity which we are not using ? 2. If we want to redirect chat to specific user without storing his identity i.e. authentication only we can save his name how do we do it. SO basically in database we store only the name of the chatting user and not a proper account. How would you do that.
Hi, i use .net 7, i try your sorce code, but i got error "InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[ChatApplication.Models.AppUser]' while attempting to activate 'ChatApplication.Controllers.HomeController"
i have this error in send message at Create Method ..this Error (InvalidOperationException: The view 'Create' was not found. The following locations were searched: /Views/Home/Create.cshtml /Views/Shared/Create.cshtml /Pages/Shared/Create.cshtml)
Very helpful! Thanks for the video. Also, Can you create a video with sending msgs to particular user like (facebook or Instagram). Sending msg between one-to-one users.
Severity Code Description Project File Line Suppression State Error CS1061 'ApplicationDbContext' does not contain a definition for 'Messages' and no accessible extension method 'Messages' accepting a first argument of type 'ApplicationDbContext' could be found (are you missing a using directive or an assembly reference?) WeChat Can you advice what is error is?
I am finding several errors. my db contains Message, not Messages - double checked builder code and model several times. Also issues resolving Identy.UserManager. Error in home controller _context.Messages does not exist
@@DotNetTrainingAcademy same issue here. Problem is on the HomeController, if (ModelState.IsValid) is always false. I managed to send a "sample message" doing the same action on an else statement with a fixed text, and the message gets inserterted on the page. But doesn't show up, because on the index.cshtml, @if (Model != null) model is null... so I think I'm missing something...
my problem starts at chat.js ... I had to comment "const username = userName;" or I get "Uncaught SyntaxError: Identifier 'username' has already been declared", also I "const whenInput = document.getElementById('when');" is null... do you have the source of index.cshtml to compare? thanks!
Amazing Teaching Sir. Please can you make video on how to chat with individual user based on their logged in username with user online and offline features.Eagerly waiting for your next video.
@@DotNetTrainingAcademy Sir we are in a crisis and need to learn to send message to an individual user through signalr Please make it as soon as possible
@@muhammadumer3319 W.salam... umer its actually work.But their was a major issue that i face was. If my starting page or default route is this its work fine.But if visit any other view and back to this. it was not working....... So that why is didn't able to add this on my fyp.U can see my other comment regarding this issue.Its work perfectly as a default route.But NO t suitable for fyp in my opinion bcz we have to move other view /use nav bar to perform other task Then if i come back to use this its display error. .For example if move to submit some from then back to use this module .it will not be working.
@@ayeshaehsan1431 ..Shukriaaa ayesh😇.. Any solution mjhe chatt module to chiye h ab ye module chor to nai skta proposal m mention kia huwa this is my last module but solving even 15 is the last date and the doc. I left behind 😢
Hii. i adding this thing in my final year project...I facing an issue.Can u kindly tell me is it necessary to have Default route and as well SignalR route same??.if i change the any one of the route it didnot work.Plztell me.
hey, just wondering as for each send message we are saving into db is there a way to minimize this ? I mean lets take a scenario inside a chat room there can be >= 50 people they might be frequently firing the text within each other and for each request we are saving our text into db that will be a quite expensive when you are on a small plan how do we minimized this ? In addition to this how is server going to handle message i.e which user get the priority when text send at the same time. thanks
You could set up a queue system and keep it in memory and at set intervals do a prepared insert statement of many messages at once. It would be less taxing on the database and then flush the list.
good video, but it's not enought, because the best way to authorize person in hub by using cookies or jwt, in this contruction it's easy to change my credentials to other person, and of course all of youtubers do this without sending message for 1 exact person, but for all and at the same time). Of course it's for our development)) Please, if you can, set link to git, because it's not so interesting to print all this project, I exactly understand what you are taking about))
Hi and thank you for this video. As I am a complete beginner is there any chance you could create a video on how to create a chat room for multiple users, as here I can see only between two users, but how to make it for instance anyone could log into the chat room and chat like we do here in comments? Thank you!
Appreciate this. However, I was hoping to see a messaging app where it would be a one to one chatting. not one to all. I would try to recreate this and see ways to achieve that. When how can this be extended for mobile?? if you have an application that you want to be available on browser as well as a mobile app and you want to achieve chatting/messaging can this work for it?? Thanks again
Have you found out how to make a chatting app where you can add a user and send personal messages? I cant find any tutorials on that they always skip doing that part
@@DotNetTrainingAcademy , sir can u tell me if I should make dynamic loading pages with signalR or I should use something else for it and if no what should I use and if I can use it will it how much server heavy it is??? (I want to load more contnet in my website page when someone reaches the end or when user press the load more button. for eg check this link and scroll to the bottom of the page u will see the content will dynamically load- dribbble.com/ ). Please help me out sir.
Change the context in hub public Task SendPrivateMessage(string user, string message) { return Clients.User(user).SendAsync("ReceiveMessage", message); } and also make a user list in the view
@@useryoutube2471 lol you can understand the difference from name DB means Database Context Class and Identity for Identityfi user whos login Details valid or not Etc
Amazing Tutorial - Can you create chat with specific user (in .net core 2.2 or 3.0)? So when you chat with specific identity user , another identity user can't see the chat , also if is possible to send file to specific identity user ?
he is like: public async Task SendMessage(Message message) => await Clients.All.SendAsync("receiveMessage", message); PUFFF wrote this in 5 seconds... "There we go... we just builded link between hub and client...." Next.... WHAT THE FUCK IS GOING ON ? haha no hate
I'm not sure what this error mean:: Uncaught (in promise) Error: Failed to invoke 'sendMessage' due to an error on the server. HubException: Method does not exist. at _this.callbacks. (HubConnection.ts:401) at HubConnection.processIncomingData (HubConnection.ts:540) at WebSocketTransport.HubConnection.connection.onreceive (HubConnection.ts:105) at WebSocket.webSocket.onmessage (WebSocketTransport.ts:103)
Huge chunks of this video are missing, code appears out of nowhere, the section on invoking signalR is entirely skipped. Can't follow the tutorial which is a shame as what is there, is really clear and nice.
Agreed.
Hey friends, Hope you enjoyed and learned a lot in this video.
Please subscribe to this channel: ruclips.net/channel/UCYl5G87mJQJOOQoAevAzd5w
If I get 400 likes for this video, I am gonna make advanced long polling application (Cryptocurrency ticker trade) using signalR.
Hi Everybody please like this video so we can get an advanced long polling app.
the code please git hub bro on every video. i like your stuff tho
the mouse click sound pretty annoying
Thank you, I will reduce.
@@DotNetTrainingAcademy Sorry but I don't think you need it, remove it at all
Finally I find a example with a connection to Db :)
I need help.. if a move to other view and then back to view where public chat is build..It give me an error can u tell me y??PLz working on my final year project :(
@@ayeshaehsan1431 hi I can help you if your problem still persists
@@vikasmalik9873 Hi bro , i have question can you help me ?
@@khoufiwissem1086 hi sure you can ask brother
@@vikasmalik9873 thansk bro , this is my first experience with SignalR , I ask if signalR detect change directly from SQL data base ? for example if i Add a message manually in SQL Server and i watch the User interface can i see the new message ?
thanks a lot !
InvalidOperationException: The view 'Create' was not found. The following locations were searched:
/Views/Home/Create.cshtml
/Views/Shared/Create.cshtml
/Pages/Shared/Create.cshtml
Why are we referring to a representation that doesn't exist?
I have a question from JS. In the chat.js file, when.innerHTML =
(currentdate.getMonth() + 1) + "/"
+ currentdate.getDate() + "/"
+ currentdate.getFullYear() + " "
+ currentdate.toLocaleString('en-US', { hour: 'numeric', minute: 'numeric', hour12: true }) there is an error in the browser console. Uncaught ReferenceError: when is not defined
at HTMLInputElement. (chat.js:18:5)
but I didn't do anything and I only copied files from Google Drive to my folder. Thanks
Hey , You have directly came to Index.htmlcs file didn't show how to do it , we are facing problems for it, can you help?
i want to clear one doubt, before add migration did you added database externally in this video because after using update database i cant see the database tables in my localdb
hey its great to have chance to hear you ...
I've got error like this - not able to call ToListAsync in homecontroller, any sugestions?
public async Task Index()
{
var currentUser = await _userManager.GetUserAsync(User);
if (User.Identity.IsAuthenticated)
{
ViewBag.CurrentUserName = currentUser.UserName;
}
var messages = await _context.Messages.ToListAsync();
return View(messages);
}
i'm having this error that Create function was not found
Two question : 1. In case if we are not Using the entity framework what will you do in place of user manger this is used as part of the aspnetcore.identity which we are not using ? 2. If we want to redirect chat to specific user without storing his identity i.e. authentication only we can save his name how do we do it. SO basically in database we store only the name of the chatting user and not a proper account. How would you do that.
Hi, i use .net 7, i try your sorce code, but i got error "InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[ChatApplication.Models.AppUser]' while attempting to activate 'ChatApplication.Controllers.HomeController"
Thanks for this video. I have a question. Can you share how to create the database ? it's have many table and I don't know how to follow this ?
Dude this is awesome I am subscribing. Please do more SIgnalR stuff, do a part two to this and add more advanced features in regards to signalr.
yeah sure mega course is on the way
@@DotNetTrainingAcademy can u help me how to modified this one into user and admin chat??
I need this for my fyp
i have this error in send message at Create Method ..this Error (InvalidOperationException: The view 'Create' was not found. The following locations were searched:
/Views/Home/Create.cshtml
/Views/Shared/Create.cshtml
/Pages/Shared/Create.cshtml)
Very helpful! Thanks for the video. Also, Can you create a video with sending msgs to particular user like (facebook or Instagram). Sending msg between one-to-one users.
Severity Code Description Project File Line Suppression State
Error CS1061 'ApplicationDbContext' does not contain a definition for 'Messages' and no accessible extension method 'Messages' accepting a first argument of type 'ApplicationDbContext' could be found (are you missing a using directive or an assembly reference?) WeChat
Can you advice what is error is?
Check Messages class set as public
@@DotNetTrainingAcademy its Message class, and its public. Same issue as Binty... doesn't seem to incorporate the class to the dbcontext
its just missing the line in the applicationdbcontext
public DbSet Messages { get; set; }
did you find the solution?
I am finding several errors. my db contains Message, not Messages - double checked builder code and model several times. Also issues resolving Identy.UserManager. Error in home controller _context.Messages does not exist
Great video, gj.
(plz remove mouse click sound)
Hello, can you tell me to develop a messenger like a telegram, it's better to use SignalR or regular web sockets?
Thanks for your this video
I have question
How save this chat in MSSQL maybe?
Everything works, but hte only problem is when I log in it still acts like I'm unauthorised user, what should I do?
Working fine , but its changing url after clicking the send button url like "localhost:44386/Home/Create" , what i m missing ?
i have the same problem, did u get to fix it??
i have the same problem ,, did you find a fix now?
Please install the https certification
@@DotNetTrainingAcademy same issue here. Problem is on the HomeController, if (ModelState.IsValid) is always false. I managed to send a "sample message" doing the same action on an else statement with a fixed text, and the message gets inserterted on the page.
But doesn't show up, because on the index.cshtml, @if (Model != null) model is null... so I think I'm missing something...
my problem starts at chat.js ... I had to comment "const username = userName;" or I get "Uncaught SyntaxError: Identifier 'username' has already been declared", also I "const whenInput = document.getElementById('when');" is null... do you have the source of index.cshtml to compare? thanks!
Hello, the same concept apply when a user to user conversation instead a open chat?
can ypu please provide the code for Index.cshtml ? or do a tutorial how to write it.. Help needed ASAP
Still waiting....
Not a fan of the fast forward effect. It makes some parts hard to follow because it seems to move at 3x speed. Overall good content
Is there a video on how to make the dbs you are using for this app?
Anyone notice the sound on 17:30 😁😁😁😁😁
Earthquake
i think 😁😁
Link github please
Good tutorial, however when I deploy to IIS it doesn't work. Any ideas?
Amazing Teaching Sir. Please can you make video on how to chat with individual user based on their logged in username with user online and offline features.Eagerly waiting for your next video.
Thank you @Niprud thapa Yes, I will if I get 200 likes for this video please share this to your friends and subscribe my channel
@@DotNetTrainingAcademy Sir we are in a crisis and need to learn to send message to an individual user through signalr Please make it as soon as possible
@@tejal2191 Please share I will do
You could also write
Public DateTime When {get; set;} = DateTime.Now();
Will initialize when as now ☺️
thank you , But I think you forgot to "Add-migration " for create table Message
Hi sir. Can I get the code for realtime chat app as your video
7:46 what a great time ...
Hi I'am new too asp.net, will it be possible to work SignalR together with vue.js as client side?
Nice Video! Can I download the index.cshtml anywhere?
can we chat between two computers ?
can someone please help and tell where can I find the index.cshtml code. Thankyou in advance.
Can I have your github link to download source code?
Thanku soo much..
Gonna use in my final year project...hope so its work
chat between any user and admin :)
Asslam o aliakum ... ayesh i just want to confirm ye video kaam ki h yaa ni...mera b fyp h mjhy b ye module add krna h
@@muhammadumer3319 W.salam... umer its actually work.But their was a major issue that i face was. If my starting page or default route is this its work fine.But if visit any other view and back to this. it was not working.......
So that why is didn't able to add this on my fyp.U can see my other comment regarding this issue.Its work perfectly as a default route.But NO t suitable for fyp in my opinion bcz we have to move other view /use nav bar to perform other task Then if i come back to use this its display error.
.For example if move to submit some from then back to use this module .it will not be working.
@@ayeshaehsan1431 ..Shukriaaa ayesh😇.. Any solution mjhe chatt module to chiye h ab ye module chor to nai skta proposal m mention kia huwa this is my last module but solving even 15 is the last date and the doc. I left behind 😢
#dotnet can i pass image data through invoke and at the other end the server hub receive it? but if yes....so which data type i choose at server side?
Excuse me, can you drop _Layout.cshtml and _LoginPartial.cshtml me please?
i cant find the index.cshtml file in ur project? where is it located?
i am aso not able see it..did you find that?
yes index.cshtml is not given nither shown properly
Update-database is not working, it show build start then build failed. What should I do???
?????
Hii. i adding this thing in my final year project...I facing an issue.Can u kindly tell me is it necessary to have Default route and as well SignalR route same??.if i change the any one of the route it didnot work.Plztell me.
helo can u help i am doing same work in my final year..?
@@noreen9099 hi i can help you if your problem not solved yet
You didn't even set the prerequisites of Entity Framework and how to set it up Setting up EF is a pain itself.
How did you get Data folder?
hey, just wondering as for each send message we are saving into db is there a way to minimize this ? I mean lets take a scenario inside a chat room there can be >= 50 people they might be frequently firing the text within each other and for each request we are saving our text into db that will be a quite expensive when you are on a small plan how do we minimized this ? In addition to this how is server going to handle message i.e which user get the priority when text send at the same time. thanks
You could set up a queue system and keep it in memory and at set intervals do a prepared insert statement of many messages at once. It would be less taxing on the database and then flush the list.
good video, but it's not enought, because the best way to authorize person in hub by using cookies or jwt, in this contruction it's easy to change my credentials to other person, and of course all of youtubers do this without sending message for 1 exact person, but for all and at the same time).
Of course it's for our development))
Please, if you can, set link to git, because it's not so interesting to print all this project, I exactly understand what you are taking about))
Excellent!!!!!
thank you very much, i hope you will create lots of videos.
Hi and thank you for this video. As I am a complete beginner is there any chance you could create a video on how to create a chat room for multiple users, as here I can see only between two users, but how to make it for instance anyone could log into the chat room and chat like we do here in comments? Thank you!
Which language used in backend
how can create DB without ConnectionString? I don't find my database after run command line . Can you help me?
You can use in memory database in startup file but its not useful
@@DotNetTrainingAcademy i have statement GetConnectionString("DefaulConnection") same you
@@DotNetTrainingAcademy I finded my database. Thank you so much
i need index view sourse code please?
Hi , How you are added the Messages DBset to your Context ?
Maybe someone will look for it too:
public DbSet Messages { get; set; }
in ApplicationDbContext
can i ask how the migration is set up? I follow the video to update the database but it return the error which is AppUser required a primarykey?
Opps sry i forgot to : identityuser to the appuser class Sry== It solved
Appreciate this. However, I was hoping to see a messaging app where it would be a one to one chatting. not one to all. I would try to recreate this and see ways to achieve that. When how can this be extended for mobile?? if you have an application that you want to be available on browser as well as a mobile app and you want to achieve chatting/messaging can this work for it?? Thanks again
Have you found out how to make a chatting app where you can add a user and send personal messages?
I cant find any tutorials on that they always skip doing that part
Your videos and content is great but please fix the audio.
Sure..
if anyone encounter this error => "InvalidOperationException: The view 'Create' was not found"
remove this condition
if(ModelState.IsValid)
Thanks brooo!!! From Perú!
great tutorial !! , in this solution how to chat with particular logged in user ?
Ceaselez Service I thought this tutorial was about chatting with a private user too
@@eduardofernandezdiaz5264 have u found solution
Great tute. Please keep up the good work.
very helpful. good job.
woww amazing , thank you very much
can signalR application be hosted in shared hosting like apache or linux or it can only be deployed in cloud
Yes
@@DotNetTrainingAcademy , sir can u tell me if I should make dynamic loading pages with signalR or I should use something else for it and if no what should I use and if I can use it will it how much server heavy it is??? (I want to load more contnet in my website page when someone reaches the end or when user press the load more button. for eg check this link and scroll to the bottom of the page u will see the content will dynamically load- dribbble.com/ ). Please help me out sir.
trabaja con iis 10 ??
sir please make part 2 to send group wise message.
what's your github account?
could you please suggest how to implement one-to-one chat like fb messenger using signalR in .net core?
Change the context in hub
public Task SendPrivateMessage(string user, string message)
{
return Clients.User(user).SendAsync("ReceiveMessage", message);
}
and also make a user list in the view
@HIKMAH TIMES if u did one to one chat.. plz guide
@@DotNetTrainingAcademy what is the difference between dbcontext and identity context?
@@useryoutube2471 lol you can understand the difference from name DB means Database Context Class and Identity for Identityfi user whos login Details valid or not Etc
good job ! can you share all source code plz :/ ? i need your help ,
Amazing Tutorial - Can you create chat with specific user (in .net core 2.2 or 3.0)? So when you chat with specific identity user , another identity user can't see the chat , also if is possible to send file to specific identity user ?
did u know how to do that?
Good job
Where is the source code
Do you have this code on github? Also, is it possible for you to another video with MongoDB this time?
hello sir i hope you will be fine
sir, i want this source code with design so please help me i will be very thankful to you
Thank you
Great Video! Can I download the index.cshtml file found @ 21:34?
did you get it?
Hi sir, Awsome explanation. Can you give me index.cshtml page?
How can i do video chat plzzzzz
Please make this tutorial with mvc 5 with out identity framework
can you give us the source code pls? or the cshtml pages code
did you get it?
great video !! , can you teach how to chat with particular logged in user ?
hi bro , thanks for this amazing video, you have html page for download?
Yes in my github repository
@@DotNetTrainingAcademy Hi brother I need frontend code or share your git repo link
Thank you very much
tyyyy
Can you provide the link to the source code please!
github.com/dotnettrainingacademy/publico.git
Bro please share backend code with me
17:30 😂🤣😂🤣😂😂🐖🐖 he farted
he is like:
public async Task SendMessage(Message message) =>
await Clients.All.SendAsync("receiveMessage", message);
PUFFF wrote this in 5 seconds...
"There we go... we just builded link between hub and client...." Next....
WHAT THE FUCK IS GOING ON ? haha no hate
Thanks please Make Notification App Use Core and FCM
Ok, I will do and please share this video and my channel to your friends
Nice but this your teaching is hard for a beginner.
Good grief. Speghetti!!!!
That click sound is annoying
Thanks for not sharing .html.
Annoying sound of mouse
17:31 fart?
this is terrible you don't explain anything at all
I'm not sure what this error mean::
Uncaught (in promise) Error: Failed to invoke 'sendMessage' due to an error on the server. HubException: Method does not exist.
at _this.callbacks. (HubConnection.ts:401)
at HubConnection.processIncomingData (HubConnection.ts:540)
at WebSocketTransport.HubConnection.connection.onreceive (HubConnection.ts:105)
at WebSocket.webSocket.onmessage (WebSocketTransport.ts:103)