Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to run a project but I am getting this error

The type or namespace name 'Hub' could not be found (are you missing a using directive or an assembly reference?)
This is my code

C#
using System;
       using System.Collections.Generic;
        using System.Linq;
        using System.Web;
        using Microsoft.AspNet.SignalR;

        using VirtualClassroom;

        namespace VirtualClassroom

{
    public class ChatHub : Hub
    {
        #region Data Members

        static List  .....     
        static List......
        #endregion

        #region ....       .........
      ...
     }
    }</pre>





I have uninstalled dependencies and installed current version of the signalr still I am getting this error. I searched for it a lot but no solution helped me .Please help. Exact solution would be appreciated
Posted
Updated 7-Nov-14 0:15am
v5

Um...I don't know if it is getting a little confused, but it's possible.
Why do you have a using statement for the current namespace? That is not something I have ever seen a need for:
C#
using VirtualClassroom;
namespace VirtualClassroom
   {
Try removing the using line and see if the problem goes away...
 
Share this answer
 
use following Namespace:
Quote:
Microsoft.AspNet.SignalR.Hub
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900