Click here to Skip to main content
15,942,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I have developed a Windows 8 application in which I implemented Push Technology to send notifications from my service without using WNS because, my app is not going to be on store.!!

Well, I implemented this Push Mechanism using WebSocket Protocol(which uses NetHttpBinding). Every is working fine in locally that is when I hosted my services in VS. But when I hosted in IIS 8.0 the channels are breaking after eight notifications..
Do we need to do any settings in IIS ??

Here, While my app is launching am subscribing to PushService(Which I implemented using NetHttpBinding) and storing channel in dictionary<useralias,> for future use to send notifications. Once I get notifications to my LisenerService from other publisher..am contacting with PushService. Once PushService receives notifications from listener service it will check for the channel based on the useralias. Once their is a match for useralias, the PushService will fetch that channel and send notification. It's working fine till 8 notifications..after that it is giving an error like "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted".

I have enabled Reliablesession at server side and set receiveTimeout and inactivityTimeout also as below
XML
<netHttpBinding>
        <binding name="netHttpBindingConfiguration" receiveTimeout="24.20:31:23.6470000" sendTimeout="01:00:00">
          <reliableSession inactivityTimeout="00:01:30" enabled="false" />
        </binding>

      </netHttpBinding>


But still problem persists. Do anyone else have suggestions regarding this.

Any help is appreciated.

Thanks
Karthik Vadla
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900