<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Using the push Notification freeze the queries</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Using the push Notification freeze the queries</description>
  <pubDate>Wed, 13 May 2026 01:02:49 -700</pubDate>
  <lastBuildDate>Thu, 06 Sep 2012 04:54:28 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3610</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Using the push Notification freeze the queries : Hi,I found out the problem thanks...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3610&amp;PID=14359#14359</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=998" rel="nofollow">Walid</a><br /><strong>Subject:</strong> 3610<br /><strong>Posted:</strong> 06-Sep-2012 at 4:54am<br /><br />Hi,<div><br></div><div><br></div><div>I found out the problem thanks to this post "Polling duplex services slows down other services"&nbsp;:&nbsp;<a href="http://forums.silverlight.net/t/24007.aspx/1/10" target="_blank">http://forums.silverlight.net/t/24007.aspx/1/10</a></div><div><br></div><div>I appears the file Global.asax.cs is the problem. In Temphire this file doesn't exist all the code is inside the Global.asax file</div><div><br></div><div><pre style="font-family: C&#111;nsolas; font-size: 13px; : white; -: initial initial; -repeat: initial initial; "><span style="color:blue;">&lt;</span><span style="color:maro&#111;n;">script</span>&nbsp;<span style="color:red;">language</span><span style="color:blue;">=</span><span style="color:blue;">"C#"</span>&nbsp;<span style="color:red;">runat</span><span style="color:blue;">=</span><span style="color:blue;">"server"</span><span style="color:blue;">&gt;</span> &nbsp;&nbsp;&nbsp;&nbsp;<span style="color:gray;">///</span><span style="color:green;">&nbsp;</span><span style="color:gray;">&lt;summary&gt;</span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:gray;">///</span><span style="color:green;">&nbsp;Perform&nbsp;application&nbsp;start&nbsp;activities.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:gray;">///</span><span style="color:green;">&nbsp;</span><span style="color:gray;">&lt;/summary&gt;</span>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">protected</span>&nbsp;<span style="color:blue;">void</span>&nbsp;Application_Start(<span style="color:#2b91af;">Object</span>&nbsp;sender,&nbsp;<span style="color:#2b91af;">EventArgs</span>&nbsp;e)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:green;">//&nbsp;To&nbsp;enable&nbsp;remote&nbsp;viewing&nbsp;of&nbsp;trace&nbsp;messages&nbsp;via&nbsp;the&nbsp;TraceViewer:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:green;">//&nbsp;TODO:&nbsp;&nbsp;Comment/uncomment&nbsp;the&nbsp;following&nbsp;line&nbsp;as&nbsp;appropriate&nbsp;for&nbsp;your&nbsp;installation</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:green;">//IdeaBlade.Core.TracePublisher.LocalInstance.MakeRemotable();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:green;">//&nbsp;Register&nbsp;a&nbsp;virtual&nbsp;path&nbsp;provider&nbsp;for&nbsp;*.svc&nbsp;files.&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:green;">//&nbsp;You&nbsp;do&nbsp;not&nbsp;need&nbsp;to&nbsp;supply&nbsp;.svc&nbsp;files&nbsp;for&nbsp;the&nbsp;EntityService&nbsp;and&nbsp;EntityServer&nbsp;services</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:green;">//&nbsp;when&nbsp;the&nbsp;provider&nbsp;is&nbsp;registered.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.Web.Hosting.<span style="color:#2b91af;">HostingEnvironment</span>.RegisterVirtualPathProvider(<span style="color:blue;">new</span>&nbsp;IdeaBlade.EntityModel.Web.<span style="color:#2b91af;">ServiceVirtualPathProvider</span>());&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}			<span style="color:blue;">&lt;/</span><span style="color:maro&#111;n;">script</span><span style="color:blue;">&gt;</span></pre><pre style="font-family: C&#111;nsolas; font-size: 13px; : white; -: initial initial; -repeat: initial initial; ">If you move this code in the file Global.asax.cs the polling will makes the devforce's services lags.</pre></div><div><br></div><div>I updated Temphire to use a polling service with a Global.asax.cs file.</div><div>Everytime you change you selection in the search module, you will notice every loading takes 10-15s.</div><div>Change back to the original Global.asax and it's less than 1s</div><div><br></div><div>Hope it can helps those who will have the same issue !&nbsp;</div><div><br></div><div><a href="uploads/998/PushNotificati&#111;nsFreeze.SL5.rar" target="_blank">uploads/998/PushNotificationsFreeze.SL5.rar</a><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 06 Sep 2012 04:54:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3610&amp;PID=14359#14359</guid>
  </item> 
  <item>
   <title>Using the push Notification freeze the queries : Hi,I am stuck in the Push notification...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3610&amp;PID=14350#14350</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=998" rel="nofollow">Walid</a><br /><strong>Subject:</strong> 3610<br /><strong>Posted:</strong> 05-Sep-2012 at 11:06am<br /><br />Hi,<div><br></div><div>I am stuck in the Push notification since some times and I can't find what is wrong in my project.</div><div><br></div><div>Here is my problem :</div><div>I created a push service on the server. As soon as I register to this service, all my queries in the application takes forverer.</div><div>Let's say I create a Company in a ViewModel and a 2nd Viewmodel query the cache to load this same entity (on the exact same model as Cocktail). This should be very fast but no, it can takes more than 1 minute (when it doesn't timout ...) !</div><div><br></div><div>If I don't register to the service, the application works just fine.</div><div><br></div><div>I tried to look what's going on in fiddler and the entityService.svc/sl waits for the response all the time.</div><div><br></div><div><br></div><div><img src="uploads/998/fiddlerPush.jpg" height="214" width="994" border="0" /><br></div><div><br></div><div>About the configuration I added the notificationService key to the web.config and added the SL5 server polling dll to the server.</div><div>On the client I added the SL5 polling dll and the push dll of devforce.</div><div><br></div><div><div>I did try to reproduce it on Temphire but it works just fine. I have the same configuration, same assemblies (I even converted temphire to SL5 to check if the problem was with SL5).</div><br ="Apple-interchange-newline"></div><div>Nothing looks wrong in the logs, I compared the Temphire's logs with mine and they have the same stuff about the notification.</div><div><br></div><div>I am using Devforce 6.1.8 with cocktail.</div><div><br></div><div>What could cause this delay ? What should I look for ?</div><div><br></div><div><br></div><div><br></div><div>if that matter, here is my test push service (and it works, I get the notification on the client) :</div><div><br></div><div><pre style="font-family: C&#111;nsolas; font-size: 13px; : white; -: initial initial; -repeat: initial initial; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color:#2b91af;">AllowRpc</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">static</span>&nbsp;<span style="color:blue;">void</span>&nbsp;NewDossiersAdministratifs(<span style="color:#2b91af;">Guid</span>&nbsp;serviceKey,&nbsp;<span style="color:#2b91af;">INotificationManager</span>&nbsp;notificationManager,&nbsp;<span style="color:#2b91af;">EntityManager</span>&nbsp;entityManager)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_serviceKey&nbsp;=&nbsp;serviceKey;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_notificationManager&nbsp;=&nbsp;notificationManager;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_manager&nbsp;=&nbsp;<span style="color:blue;">new</span>&nbsp;<span style="color:#2b91af;">AdministratifEntities</span>(entityManager); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">while</span>&nbsp;(<span style="color:blue;">true</span>)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:green;">//&nbsp;Sleep&nbsp;de&nbsp;30&nbsp;seconds&nbsp;entre&nbsp;les&nbsp;checks</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#2b91af;">Thread</span>.Sleep(1000&nbsp;*&nbsp;30);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">private</span>&nbsp;<span style="color:blue;">static</span>&nbsp;<span style="color:blue;">void</span>&nbsp;Check()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">var</span>&nbsp;subscribers&nbsp;=&nbsp;_notificationManager.GetSubscribers(_serviceKey);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">if</span>&nbsp;(!subscribers.Any())&nbsp;<span style="color:blue;">return</span>; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">var</span>&nbsp;ids&nbsp;=&nbsp;<span style="color:blue;">new</span>&nbsp;<span style="color:#2b91af;">List</span>&lt;<span style="color:blue;">int</span>&gt;()&nbsp;{1,&nbsp;2};&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">foreach</span>&nbsp;(<span style="color:blue;">var</span>&nbsp;subscriber&nbsp;<span style="color:blue;">in</span>&nbsp;subscribers)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_notificationManager.Send(_serviceKey,&nbsp;subscriber,&nbsp;ids);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</pre></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 05 Sep 2012 11:06:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3610&amp;PID=14350#14350</guid>
  </item> 
 </channel>
</rss>