Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

Working with IIS #5

Closed
samcov opened this issue Nov 15, 2013 · 3 comments
Closed

Working with IIS #5

samcov opened this issue Nov 15, 2013 · 3 comments

Comments

@samcov
Copy link

samcov commented Nov 15, 2013

This is more of a question than an issue, so here goes.

Your webserver only handles HTML, not aspx pages, but I want to use Asp.Net, so here's the question.

Would it be possible to use IIS with an ASPX page, and point SignalR to a hub hosted in Nowin?

SignalR has a setting to set the hub URL

$.connection.hub.url = 'http://76.90.50.83/signalr'; // use the Hub on another server... Fantastic!!!

So I wonder if you know if this will work? Or possibly you can see that it won't work, but if it does, your product just shot up the ladder as a god send for all of us that can't get customers off of Windows Server 2008R2.

If you don't, I guess we'll have to test it, but intuitively, it appears to make sense!

@davidfowl
Copy link

Yes it will work. It's a normal cross domain scenario. Nowin is just another webserver.

@samcov
Copy link
Author

samcov commented Nov 15, 2013

@davidfowl - Yes, I just tweeted Damian that I got it working, and now the only issue is that in Chrome & FF I get a cross domain issue. Is there a setting in signalr or is that a browser setting?

The Error:
XMLHttpRequest cannot load http://localhost:8888/signalr/negotiate?connectionData=%5B%7B%22name%22%3A%22myhub%22%7D%5D&clientProtocol=1.3&_=1384501441119. No 'Access-Control-Allow-Origin' header is present on the requested resource.

Origin 'http://localhost:8081' is therefore not allowed access. signalr.html:1 [23:44:01 GMT-0800 (Pacific Standard Time)] SignalR: Stopping connection.


Wow, this is AWESOME!!!!

Also congrats on the Office Multi-Edit app, SignalR is hitting the big time!

@samcov
Copy link
Author

samcov commented Nov 15, 2013

@davidfowl - I figured out the cross domain stuff from answers on StackOverflow, but a major thanks to you for your comments [do you ever sleep :) ] and @Bobris for the great code!

@samcov samcov closed this as completed Nov 15, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants