New Posts New Posts RSS Feed: Silverlight 5 and Push
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Silverlight 5 and Push

 Post Reply Post Reply
Author
GeorgeB View Drop Down
Groupie
Groupie


Joined: 03-May-2010
Posts: 66
Post Options Post Options   Quote GeorgeB Quote  Post ReplyReply Direct Link To This Post Topic: Silverlight 5 and Push
    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


Edited by GeorgeB - 12-Dec-2011 at 8:50am
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
GeorgeB View Drop Down
Groupie
Groupie


Joined: 03-May-2010
Posts: 66
Post Options Post Options   Quote GeorgeB Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down