facing the above error in below resource
<Window.Resources>
<viewmodel:MyViewModel x:Key="venue"></viewmodel:MyViewModel>
</Window.Resources>
my app.config in client side
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IService" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:65107/MyDataService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService"
contract="MyService.IService" name="BasicHttpBinding_IService" />
</client>
</system.serviceModel>
my web.config defined for wcf service (copied service model part alone)
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpBinding" scheme="http" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
and also there is error during window initialization
initialization of 'MySystem.Launcher.MainWindow' threw an exception An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll Inner exception : Cannot have nested BeginInit calls on the same instance
private MyViewModel vm;
public MainWindow()
{
try
{
InitializeComponent();
vm = new MyViewModel();
this.DataContext = vm;
}
catch(Exception e)
{
}
}
Any help is greatly appreciated