Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows WindowsForms , +
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
<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 21-Nov-12 1:49am

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

  Print Answers RSS
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 329
2 CPallini 270
3 Afzaal Ahmad Zeeshan 204
4 DamithSL 194
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100