I created a basic chat application using SignalR 1.0.0 alpha 2. Now when I did simple modifications and tried to run the code, I get the following error:
Internal server Error 500
Even after undoing the modified code to the old code when the error didn't go I uninstalled Signalr thinking that it might got corrupted.
When I installed SignalR again (SignalR 1.0.0 rc1), I am getting following error in RegisterHubs.cs :
Error 1
The call is ambiguous between the following methods or properties: 'Microsoft.AspNet.SignalR.RouteExtensions.MapHubs(System.Web.Routing.RouteCollection)' and 'Microsoft.AspNet.SignalR.RouteExtensions.MapHubs(System.Web.Routing.RouteCollection)' C:\Users\noName\Desktop\Main project\Chat_Application\App_Start\RegisterHubs.cs 15 13 Chat_Application
I referred this link which says that this error occurs whenever there are duplicate methods. I understand the problem but I dont know how to resolve this..
I added following scripts related to newer version of SignalR in my aspx page (removed the older version links)
<script src="Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="Scripts/jquery.signalR-1.0.0-rc1.min.js" type="text/javascript"></script>
<script type="text/javascript" src='<%: ResolveClientUrl("~/signalr/hubs") %>'></script>
//even tried
//<script src="/signalr/hubs" type="text/javascript"></script>
//My javascript and CSS files here
Please help.