Print Page | Close Window

Silverlight 5 and Push

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3149
Printed Date: 13-May-2026 at 6:41pm


Topic: Silverlight 5 and Push
Posted By: GeorgeB
Subject: Silverlight 5 and Push
Date Posted: 12-Dec-2011 at 8:26am
Hi
 
I upgraded an application to the RTM version of Silverlight 5 and now when I try to RegisterCallback for my save interceptor, I get an error from the server. All I did was change to SL5.
 
{IdeaBlade.EntityModel.EntityServerConnectionException: Communications with the service 'sl-NotificationService_Local' using Uri of 'http://localhost/EntityServer_Local.svc/sl-NotificationService cannot be started.  See the internal exception for more information. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceModel.NetTcp, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
   at IdeaBlade.EntityModel.PushFns.GetDefaultSilverlightPushBinding(String scheme)
   at IdeaBlade.EntityModel.DuplexProxy`2.GetBinding(String scheme)
   at IdeaBlade.EntityModel.WcfProxy`1.CreateProxyCore()
   --- End of inner exception stack trace ---
   at IdeaBlade.EntityModel.AsyncProcessor`1.<>c__DisplayClass2.<.ctor>b__0(TArgs args)
   at IdeaBlade.EntityModel.AsyncProcessor`1.Signal()
   at IdeaBlade.EntityModel.AsyncProcessor`1.PreActionCancelled()
   at IdeaBlade.EntityModel.AsyncProcessor`1.Execute()
   at IdeaBlade.EntityModel.EntityManager.<>c__DisplayClassc8`1.<DoAsyncRequest>b__c5()
   at IdeaBlade.EntityModel.EntityManager.DoAsyncAction(Action action)
   at IdeaBlade.EntityModel.EntityManager.DoAsyncRequest[TArgs](AsyncProcessor`1 processor)
   at IdeaBlade.EntityModel.EntityManager.RegisterCallbackAsyncCore(AsyncProcessor`1 processor)
   at IdeaBlade.EntityModel.EntityManager.RegisterCallback(String serviceTypeName, String serviceMethodName, Action`1 callback, Object userToken, Object[] clientArgs)
   at MyApp.Repository.DomainModelRepository.RegisterMyAppCallback(String owToken)
   at MyApp.ViewModels.ShellViewModel.SubscribeToCallback()
   at MyApp.ViewModels.ShellViewModel.OnLoginChanged(LoginChangedEvent args)}
 
 
Kr
George



Replies:
Posted By: DenisK
Date Posted: 12-Dec-2011 at 6:40pm
Hi George;

We're able to reproduce the issue here and are currently investigating. I'll keep you updated.


Posted By: DenisK
Date Posted: 12-Dec-2011 at 6:57pm
Hi George;

On your Silverlight app, please ensure that you have referenced the System.ServiceModel.NetTCP v5.0.5 and on your web project, System.ServiceModel.PollingDuplex which can be found in C:\Program Files (x86)\Microsoft SDKs\Silverlight\v5.0\Libraries\Server\System.ServiceModel.PollingDuplex.dll

We've found that when upgrading Silverlight 4 apps to Silverlight 5, some assemblies require to be explicitly referenced. If not, the Silverlight 4 assemblies will end up being implicitly referenced.


Posted By: GeorgeB
Date Posted: 13-Dec-2011 at 3:47am
Hi Denis
 
Thanks that worked.
 
I had changed the PollingDuplex reference in my web project but I've never had the System.ServiceModel.NetTcp referenced before in my Silverlight 4 app.
 
Kr
George



Print Page | Close Window