· 2 min read

Automation of integration tests

In my current project we have reached a very good code coverage percent (98,7 %, yes we are proud) - but we are aspiring to take it a step further. We are now constructing a series of integration test, used to run through the actual production code an verifying that everything works as expected. Said and done - I implemented...

Continue reading

· 1 min read

ReSharper crashes

First and foremost- I love Resharper (4.0), but I think that some small flaws are still there and does bad things… Two things are at the top of my list (in all honesty I must admit that I can’t be 100% sure that ReSharper has to do with this but both of them has occurred after I’ve installed ReSharper): ASPX-pages...

Continue reading

· 1 min read

WCF Self-hosting and configuration

One of the really cool features of WCF is the possibility to be able to change binding in the config… Of course the transport need to be supported by the host. For example you can’t use TCP/IP transport in a web-site hosted service. So - you’ll have to create the host by yourself - self hosting. However there are some...

Continue reading

· 1 min read

More on WCF configuration

In my last post I mentioned the great WCF service/client configuration editor that ships with Visual Studio 2008. I haven’t used it much but rather done “it” by hand - which has been quite painful from time to time. Here is a great introduction to the editor that shows off some of the great capabilities of it. Another “tip”, if...

Continue reading

· 2 min read

Configuration of WCF-binding

This area is (in the words of Juval Löwy) “truly vast”. And as I read somewhere else most of the properties doesn’t make sense to the common programmer. We (yeah, I’m one of the common ones) just want it to work. Also, when it comes to configuring WCF services Microsoft has gone the complete opposite way from their normal way...

Continue reading

· 1 min read

WCF Config How to configure wsHttpBinding for no security

Yes - I know that this is quite rare but if you want something really easy in place then this is how to use wsHttpBinding with no security: <services> <service name="FaktureringsTjanst" <endpoint address="" binding="wsHttpBinding" bindingConfiguration="myBindingConfigurationWsHttp" contract="IContract" behaviorConfiguration="FaktureringsTjanstBehavior" \> </service> </services> <!-- Bindings --> <bindings> <wsHttpBinding> <binding name="myBindingConfigurationWsHttp" maxReceivedMessageSize="500000" sendTimeout="00:05:00" receiveTimeout="00:05:00"> <security mode="None"> <message clientCredentialType="None" \> </security> </binding> </wsHttpBinding> </bindings>

Continue reading

· 2 min read

MSBuild, refactor and targets in other files

I found a very nifty little feature of MSBuild, that is really helpful when it comes to structuring your build file. In MSBuild the “sub-routines” are called targets and works just like expected, that is you can call the targets and invoke them in the order you like. BUT, there are no way of sending parameters to them - which...

Continue reading

· 1 min read

Write up...

My current project has been crazy intensive with some really really tight time-schedules but they are coming to a close soon. This has made me down-priorities the blogging to a minimum. I’ll try to do some write up to get some of my “findings” in here.

Continue reading