Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 20, 2013 07:17 AM by pantonis
Dec 14, 2012 02:58 PM|LINK
I have a scenario that I have a windows forms application that is using SignalR and a website. The client app is authenticated on the website using FormsAuthentication and the calls a Hubmethod with the [Authorize] attribute. Everything works find when I
debug both application on same machines. Once I deploy website on one server and win app on another machine hub methods with authorized attribute do not work.
Why is this happening. Is there any bug on this?
Dec 14, 2012 03:47 PM|LINK
Can you try looking at the HTTP requests to see what cookies are/aren't being passed? Also, what you're client code looks like.
Dec 17, 2012 06:24 AM|LINK
My code is the following.
void Connect(Cookie authCookie)
string str = "Test";
double Val = 1000;
HubConnection hubConn = new HubConnection("http://10.10.10.10");
CookieContainer cookieCont = new CookieContainer();
hubConn.CookieContainer = cookieCont;
IHubProxy Proxy = hubConn.CreateHubProxy("myHub");
Name = str,
Value = Val
public void GetTheStuff(string Message)
CustomModel cp = jss.Deserialize<CustomModel>(Message);
if (cp != null)
Jan 17, 2013 07:35 PM|LINK
Your code has a few issues:
Can you please take a look at the sample at https://github.com/davidfowl/MessengR
This shows a WPF client talking to an ASP.NET app using Forms auth and SignalR.
Jan 18, 2013 06:54 AM|LINK
Sorry for this (syntax error)
Serialization/Deserialization as you described it works only on my pc. When I take this on production server it does not work.
Jan 19, 2013 05:43 PM|LINK
When you say "it doesn't work on your production server". What exactly do you mean? What specific error message are you getting?
Jan 20, 2013 07:17 AM|LINK
It does not return any error. When the signalr sends the object, the event on the other end which is subscribed to listen simply does not get fired