WCF Data Services performance

The main benefit of using WCF Data Services (formerly codename ) is that this is interoperable, which means it can be accessed from clients created in different technologies. Moreover standard WCF services offers the only exposed set of methods. Data Services, as implementation of OData protocol, offers the Resource to be queried and altered using HTTP methods. That’s are the p…

By Mirek on (tags: Data Services, OData, WCF, categories: architecture, code)

Taming TFS - Automatic deployment of web apps

This time we’ll take a look at web projects and how to publish them automatically after the build. The requirement here was to be able to publish a site via ftp (IIS has a new feature called ftp publishing so why not utilize it). I’m going to stop here for a second and brag on one thing that really bothered me. Microsoft released “1-Click deployment” (not to be mistaken with Cl…

By on (tags: tfs, categories: infrastructure)

SlowCheetah TransformAllFiles msbuild target

I’ve posted about SlowCheetah some time ago, but there’s one thing I forgot to mention. If you’re getting an build error that says “Target TransformAllFiles does not exist” then (assuming that you already have slow cheetah installed) in the project, right click on an xml file and select “Add Transform”. This will add additional files (if you don’t need them, just delete them) t…

By on (tags: xml transformations, categories: infrastructure)

Software licensing

In this post I would like to briefly describe the topic of software licensing and present few solutions I found on the internet. Licensing topic is highly connected with application security and piracyproof so to speak. We generally provide licensing mechanism when we want to assure that nobody who did not paid for the application can not access this application. We want to pro…

By Mirek on (tags: activation, copyright protection, licensing, product key, serial key, categories: licensing, security)

Taming TFS - Digitally signing assemblies

Signing is a bit more tricky than strong naming. I didn’t want to use delay signing, because that requires additional configuration on development stations, so just like with strong naming – plain old simple build on the development machine and the fancy stuff on the build server. I already have a certificate for signing but that needs to be in the build users private cert stor…

By on (tags: tfs, categories: infrastructure)

Registering a certificate in the certificate store

This is another bit that will be helpful with our next tfs build script modification. To use a certificate for either strong naming or signing code, you need to place it in the certificate store of the user asking for it (e.g. if you’re executing an automated build, the user in whose context the build is executed) To place the certificate in the store follow these steps: win+r …

By on (tags: certificate, categories: infrastructure)

Creating a certificate signing request (csr) on windows

This bit will be useful for the next tfs build script modifications that I will describe in a later post. Apparently there are a couple of ways to create a csr - openssl, online services, dedicated tools… But there are also ways to create a csr without installing any software. There's the easy way (for those who have IIS installed) and the bit more complicated way (for those wh…

By on (tags: certificate, categories: infrastructure)

Reading manifest from assembly

Information like product name, file version, copyright, etc are stored in the assembly manifest. In this post I would like to present how these informations can be read from an assembly and showed in the UI. Assembly manifest can be edited by choosing Properties on Visual Studio project and pressing button Assembly Information All we need to extract these data programmatically …

By Mirek on (tags: assembly information, manifest, categories: code)

EF Code First and SqlServer Ce 4.0 – the simplest example ever.

Recently I needed to write a simple database application. I chose the Entity Framework Code First (Code Only) as a Object Relational Mapper (ORM) because its simplicity and quick development process. If you did not yet heard about EF Code First then this is a good place to start. Entity framework is a very powerful technology. It totally makes the whole dirty work which in the …

By Mirek on (tags: Code First, Entity Framework, SqlServer Ce 4.0, categories: code)

Taming TFS - Strong naming assemblies

Today we’re going to look at another build script adjustment – strong naming assemblies. The scenario we are aiming for is that during development, the assemblies are not signed (so developers don’t need to have the a certificate file - a little bit more on that later), but during a build on the build server they are. This can be handled by providing additional parameters to ms…

By on (tags: tfs, categories: infrastructure)