The breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight application

Ok, what I have: Visual Studio 2010 RC, W7 x64, started a new project type of Silverlight application. Hosting the Silverlight application in a ASP.NET Web Application Project. Silverlight Version 3.0. Added a LinqToSQL Class, a WCF Service, a Winform Tester Application (Project in the Solution) and a few Classes (also as Projects in the … Read more

POSTing JsonObject With HttpClient From Web API

I’m trying to POST a JsonObject using HttpClient from Web API. I’m not quite sure how to go about this and can’t find much in the way of sample code. Here’s what I have so far: var myObject = (dynamic)new JsonObject(); myObject.Data = “some data”; myObject.Data2 = “some more data”; HttpClient httpClient = new HttpClient(“myurl”); … Read more

Could not find default endpoint element

I’ve added a proxy to a webservice to a VS2008/.NET 3.5 solution. When constructing the client .NET throws this error: Could not find default endpoint element that references contract ‘IMySOAPWebService’ in the ServiceModel client configuration section. This might be because no configuaration file was found for your application or because no endpoint element matching this … Read more

What is the best workaround for the WCF client `using` block issue?

I like instantiating my WCF service clients within a using block as it’s pretty much the standard way to use resources that implement IDisposable: using (var client = new SomeWCFServiceClient()) { //Do something with the client } But, as noted in this MSDN article, wrapping a WCF client in a using block could mask any … Read more

Best Practices for securing a REST API / web service [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago. Improve this question When designing a REST API or service are there any established best practices for dealing with … Read more

Collection was modified; enumeration operation may not execute

I can’t get to the bottom of this error, because when the debugger is attached, it does not seem to occur. Collection was modified; enumeration operation may not execute Below is the code. This is a WCF server in a Windows service. The method NotifySubscribers() is called by the service whenever there is a data … Read more