locked
WCF on Azure with Metro app RRS feed

  • Question

  • Hello,

    I keep getting an error in my WCF client in Windows 8 Metro:

    System.Configuration.ConfigurationErrorsException occurred
      HResult=-2146232062
      Message=The type 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior, Microsoft.VisualStudio.Diagnostics.ServiceModelSink, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' registered for extension 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior' could not be loaded.
      Source=System.ServiceModel
      BareMessage=The type 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior, Microsoft.VisualStudio.Diagnostics.ServiceModelSink, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' registered for extension 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior' could not be loaded.
      Line=0
      StackTrace:
           at System.ServiceModel.Configuration.ServiceModelExtensionCollectionElement`1.GetExtensionType(ContextInformation evaluationContext, String name)
      InnerException:

    I am using Windows Azure and a Worker in NetTcpBinding with Duplex.

    It works fine in Desktop mode but not in Metro apps...

    I was able to import using the Add Services then

                MessageClient client = new DominoWcfClient.ServiceReference1.MessageClient();
                await client.SubscribeAsync();

    The crash happens at the constructor of MessageClient.

    Any idea ? 

     

     

    Saturday, December 22, 2012 3:00 AM

Answers

All replies