0
votes

What are the changes/updates to be made in iis7 to host a ASP.NET signalR app?

My app works fine in VS2012. When I try to host it in my production server(iis7), it says the following error in browser console

Failed to load resource: the server responded with a status of 404 (Not Found) http://www.mydomain.com/signalr/hubs Uncaught TypeError: Cannot read property 'client' of undefined

I tried all the workarounds found in stack overflow...

2
have set the default page/Start page for your apllicationArshad
Hard to even suggest anything without any code and "I tried all the workarounds found in stack overflow...". If you've truly tried "all the workarounds" then clearly there's something unique about your setup and you've provided nothing that would help anyone to diagnose what that might be.Pete
Do you have a reference to SignalR.AspNet.dll?Pete
Have you looked here? github.com/SignalR/SignalR/wiki/FaqPete
Hi thanks for your replies. I tried the workarounds mentioned at this link github.com/SignalR/SignalR/wiki/Faq .I stll get a 404 error message. I also installed the windows updates for my server.Still not working.. Should I install anything additional on my server (wondows server 2008) to make it signalR ready?Sobinscott

2 Answers

1
votes
0
votes

If you are working on webforms, Please take the following steps

  1. In the webconfig:

    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true"/>
    
  2. In the page add reference to hub as

    <script src="/signalr/signalr/hubs"></script>
    

    instead of

    <script src="/signalr/hubs"></script>