SignalR: Value cannot be null, parameter name: s -


i have quite simple signalr application works locally, fails load data when deployed our production environment.

here's sequence of requests made upon page load (all get requests):

<app root>                                              200         document    3.9 kb  2.02 s   before?v=aouetsyniw4bnmn0rnziytknjaou8acjr3mpfmjz-sm1   200         stylesheet  2.5 kb  58 ms    after?v=cv-ljk82snhp2-mwhnivee8cx24ymvhr0dclmnhwehc1    200         script      220 kb  342 ms   negotiate?connectiondata=%5b%7b%22name...               200         xhr         704 b   77 ms    connect?transport=serversentevents&con...               (failed)    eventsource 593 b   2.1 min 

the before , after requests style , script bundles, respectively. last 2 urls truncated make table fit; here in full:

negotiate?connectiondata=%5b%7b%22name%22%3a%22builds%22%7d%5d&clientprotocol=1.3&_=1454056625582    connect?transport=serversentevents&connectiontoken=6lfehj6wreyyec%2bymstax3%2fi4ea5kzor6saly0jwfjfmjhq0uymrkov4rf7va1sswgcfce3wkq5xhhwump6oot8idx%2fo24smnrjxeim2dpmftmclqtksrwgeshf26z5xw3nlux19%2bow4s7kjsxlprq%3d%3d&connectiondata=%5b%7b%22name%22%3a%22builds%22%7d%5d&tid=5 

url decoding connectiondata parameter yields [{"name":"builds"}], seems correct since builds correct name of hub i've configured on server side.

as see in log, last request of these takes on 2 minutes report status, , says "failed". if right-click in debugger , choose "open in new tab", (without delay) yellow screen of death stating following error:

value cannot null. parameter name: s

[argumentnullexception: value cannot null. parameter name: s]     system.io.stringreader..ctor(string s) +14275218     microsoft.aspnet.signalr.json.jsonserializerextensions.parse(jsonserializer serializer, string json) +74        microsoft.aspnet.signalr.hubs.hubrequestparser.parse(string data, jsonserializer serializer) +28        microsoft.aspnet.signalr.hubs.hubdispatcher.onreceived(irequest request, string connectionid, string data) +85        microsoft.aspnet.signalr.<>c__displayclassc.<processrequest>b__7() +42     microsoft.aspnet.signalr.taskasynchelper.frommethod(func`1 func) +64       system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) +144        system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) +84        microsoft.aspnet.signalr.transports.<processsendrequest>d__10.movenext() +655     system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) +144        system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) +84     microsoft.owin.mapping.<invoke>d__0.movenext() +827     system.runtime.exceptionservices.exceptiondispatchinfo.throw() +32        microsoft.owin.host.systemweb.integratedpipeline.integratedpipelinecontext.endfinalwork(iasyncresult ar) +208        system.web.asynceventexecutionstep.system.web.httpapplication.iexecutionstep.execute() +434     system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) +288 

searching error few hits suggesting have permissions problems on server, have given everyone full access rights application folder, no change in behavior. works locally, not on server (even if browsing localhost server).

what else should try?


update: guidance jf beaulieu in comments, have gotten next step. unlike posted in comments, request return after long time (between 2 , 3 minutes) , sent again (and again taking 2-3 minutes respond). headers , content of requests these:

request url:https://my.domain.name/signalr/poll?transport=longpolling&connectiontoken=a64byteencodedstring&messageid=d-ec6b29d5-b%2c0%7cc%2c0%7cd%2c0%7ce%2c0%7cf%2c0&connectiondata=%5b%7b%22name%22%3a%22builds%22%7d%5d&tid=6&callback=jquery2110622865846613422_1454336540065&_=1454336540071 request method:get status code:200 ok remote address:192.168.16.243:443  request headers accept:text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01 accept-encoding:gzip, deflate, sdch accept-language:en-us,en;q=0.8 authorization:negotiate averylongtokenstring connection:keep-alive content-type:application/json; charset=utf-8 dnt:1 host:my.domain.name referer:https://my.domain.name/ user-agent:mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/47.0.2526.111 safari/537.36 x-requested-with:xmlhttprequest query string parameters view source view url encoded transport:longpolling connectiontoken:a64bitencodedstring messageid:d-ec6b29d5-b,0|c,0|d,0|e,0|f,0 connectiondata:[{"name":"builds"}] tid:6 callback:jquery2110622865846613422_1454336540065 _:1454336540071  response headers cache-control:no-cache content-type:application/javascript; charset=utf-8 date:mon, 01 feb 2016 14:33:35 gmt expires:-1 persistent-auth:true pragma:no-cache server:microsoft-iis/8.5 transfer-encoding:chunked x-aspnet-version:4.0.30319 x-content-type-options:nosniff x-powered-by:asp.net  response content jquery2110622865846613422_1454336540065({"c":"d-8d14ccd4-b,0|c,0|d,0|e,0|f,0","m":[]}); 


Comments