I am using webforms and whenever I load page for the first time, console says signalr/signalr/hubs not found.
I have Startup.cs
public void Configure(IAppBuilder app)
{
app.MapSignalR();
}
When problem remained the same, I added "IAppBuilder app" parameter to Application_start in my Global.asax.cs file and inside I wrote app.MapSignalR();
My javascript on page load :
<script src="/Scripts/jquery-1.6.4.js"></script>
<script src="/Scripts/jquery.signalR-2.4.1.js"></script>
<script src="/signalr/signalr/hubs"></script>
<script type="text/javascript">
$(function() {
});
</script>
Can't find hubs folder in file structure
UPDATE : I found out that it's an auto-generated file.
I replaced
<script type="text/javascript">
with
<script src='<%: ResolveClientUrl("~/signalr/hubs") %>'></script>
Still nothing.