Archive for June, 2010

In my previous post I wrote about overriding the LinqToEntitiesDomainService.CreateObjectContext() method to dynamically set the connection string for the used by the domain service. I realised that I would be using this in a couple of different services in my current project and potentially use it in the future so I wrote a generic abstract [...]

The Problem One of the requirements for a Silverlight 4/WCF RIA Service application that I am working on is that the connection string is stored encrypted within the web.config file. This left me with the problem that I would need to somehow unencrypt the connection string and manually set it before any database interaction was [...]

VB.NET Object Initializer and single line If statements

Posted: 4th June 2010 by thegrayzone in Development
Tags: ,

I’ve recently started working at a company that has quite a few VB.NET application sitting around, and as you can see from the rest of my posts I’m used to using C# A couple of C# language features that I use a lot are Object Initializers and single line if statements. This might be old [...]

Setting maximum object size in WCF

Posted: 2nd June 2010 by thegrayzone in Development
Tags: ,

I have recently been working on a Silverlight application that uses WCF for all data access functions. The application worked fine on my development machine but when I moved it over to a test environment I received the following, rather vague, error when making a few of the database calls: “The remote server returned an [...]