Code Monkey home page Code Monkey logo

Comments (22)

davidfowl avatar davidfowl commented on June 6, 2024

Does MVC work with extensionless urls on the same server? Are you trying to get this working on IIS6 or IIS7?

from signalr.

thevu avatar thevu commented on June 6, 2024

I have not tried other extensionless urls on this server but will certainly look into that. Although we will be upgrading all our servers to IIS7, at this point we still have servers running IIS 6 so it would be ideal if I could get this running on both. Can you think of any settings in IIS that would prevent it from running extensionless urls like what we have in this case with the hubs?

from signalr.

davidfowl avatar davidfowl commented on June 6, 2024

Do you have the correct urls? What kind of app are you trying to run MVC, Webforms?

from signalr.

remcoros avatar remcoros commented on June 6, 2024

Read this post about Extensionless url's in IIS 6 by the haacked: http://haacked.com/archive/2010/12/22/asp-net-mvc-3-extensionless-urls-on-iis-6.aspx

from signalr.

thevu avatar thevu commented on June 6, 2024

david: Yes I do have the correct URLs. I'm just running regular webforms, we have no need for MVC at this point.
remcoros
remcoros: thank you for the article, since I'm just running regular webforms and not MVC does this still apply?

from signalr.

remcoros avatar remcoros commented on June 6, 2024

I Guess so.

IIS 6 does not go trough the ASP.Net pipeline by default for extensionless url's. (It only maps known extensions like aspx/ashx to the asp.net module).
This is an IIS thing, not specific to the asp.net web framework you are using.

from signalr.

thevu avatar thevu commented on June 6, 2024

I have implemented this but still no luck

from signalr.

davidfowl avatar davidfowl commented on June 6, 2024

Try turning RAMFAR on:

<configuration>
   <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
        </modules>
    </system.webServer>
</configuration>

from signalr.

davidfowl avatar davidfowl commented on June 6, 2024

I added this to our FAQ

from signalr.

thevu avatar thevu commented on June 6, 2024

Thanks guys, it turns out, I also have to add a WildCard mapping to the application in order for the extensionless url to work, I'm sure there is probably a couple other ways this could be done as adding WildCard mapping is not really ideal for performance

from signalr.

kfrajtak avatar kfrajtak commented on June 6, 2024

Hi, I'm trying to make SignalR work in ASP.NET MVC 4 application running on ASP.NET dev server. I'm still getting 404 on signalr/hubs, I tried all the "magic" (RAMFAR, @Url.Content) mentioned here but it still does not work. Any advice on this? Thanks

from signalr.

davidfowl avatar davidfowl commented on June 6, 2024

You're getting a 404 on the dev server? That shouldn't happen unless you have the wrong url altogether?

How did you install SignalR? Using nuget?

from signalr.

kfrajtak avatar kfrajtak commented on June 6, 2024

Yes, using Nuget. Is it required to add SignalR.AspNet.Hosting.dll, right? It's very strange because I'm getting message the this assembly is not compatible with .NET framework 4. I'll try to reinstall SignalR.

from signalr.

davidfowl avatar davidfowl commented on June 6, 2024

If you're using Asp.Net then of course you need that assembly. All of our instructions for installing NuGet shows that you should install the package named SignalR. That way you get everything.

Not sure what you're running into but SignalR works fine with .NET 4. Sounds like you have some other issue.

from signalr.

kfrajtak avatar kfrajtak commented on June 6, 2024

Fixed. I removed the entries from nuget.packages file, added SignalR again and it worked. The signalr/hubs script file is in place now. Those issues are very strange. Thanks for your time.

from signalr.

shanselman avatar shanselman commented on June 6, 2024

It seems like there's something latent here. I'm seeing this same issue and others are also. Is RAMMFAR really needed? That section is locked by default on Windows 8.

http://stackoverflow.com/questions/8053229/signalr-hub-not-loading-in-iis-7-but-working-correctly-in-visual-studio

from signalr.

khoimk avatar khoimk commented on June 6, 2024

I got this error when deployed on server:
The following error was encountered while trying to retrieve the URL: http://cf.ditoi.com/signalr/send?

Read Error

The system returned: (104) Connection reset by peer

Please help

from signalr.

davidfowl avatar davidfowl commented on June 6, 2024

@khoimk your error looks unrelated. I also cant help you without a repro. Please file a new bug.

from signalr.

davidfowl avatar davidfowl commented on June 6, 2024

@shanselman you only need rammfar if you're on iis 7, >= 7.5 has extensionless url support.

from signalr.

khoimk avatar khoimk commented on June 6, 2024

I've created a new issue here #586

from signalr.

MikeDotNet avatar MikeDotNet commented on June 6, 2024

NuGet added an ~/App_Start/RegisterHubs.cs, but I didn't think that was working for me. I had to add RouteTable.Routes.MapHubs(); to my Global.asax Application_Start method.

void Application_Start(object sender, EventArgs e)
    {
        RouteTable.Routes.MapHubs();
    }

Like Scott said this shouldn't take a bunch of web.config tweaks to get working if you are on IIS7 or higher and using .Net 4.0.

from signalr.

hamadKhan21 avatar hamadKhan21 commented on June 6, 2024

Hi There, i am facing the same issue. I have deployed my project on server and it gives me this error 404 not found signalr/hubs js file,

from signalr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.