Contents tagged with WCF

  • Error 400 with WCF REST Services

    I recently worked on a site that had a strange issue where “sometimes” the WCF service (JSON encoding) that we accessed via JavaScript (using jQuery) was throwing an HTTP 400 error.  Setting a breakpoint at the web method itself was useless as it would never be hit.

  • Programming for APIs

    There seems to be as much or more attention paid to “Apps” these days as there is to websites.  Whether it be for iOS, Android, Blackberry, Adobe AIR, Silverlight or even the (gasp) Desktop, we as “web” programmers are often called upon to implement APIs for these things. 

  • Data Services Update for .NET 3.5 SP1…

    I have started writing OData style services for a couple of clients, and I noticed that a lot of the classes in the API were missing… That’s because I needed to download the update, just having .net 3.5 sp1 wasn’t enough..

  • For WCF Services hosted in non IIS apps - add permissions for a user to change the IIS namespace reservations

    If you are hosting a WCF services in a console app, windows service or any other non-IIS application, you need to listen on a particular url address.  A normal user running an app or service doesn't have permission to do this unless that user is an admin (not a good thing for a wcf service).  So in order to grant permission to reserve the namespace, you need to run a little command.

  • Storing Contextual Data in Web and non-Web applications

    In Asp.Net apps, we are used to storing data in the current context.  Objects that are specific to the currently executing Request, like a User object retrieved a database, or another object that you want to make globally available without requiring multiple database trips, can benefit from this.