Gáspár Nagy on software

Witch typing: If it walks like a duck, quacks like a duck and weighs the same as a duck, it must be a witch.

Enable .NET 4.0 WCF hosing in IIS 8

by Gáspár Nagy on January 23, 2014

I still receive quite a lot of hits to my blog post from 2009 on hosting WCF in IIS 7. At that time we used .NET 3.5 and I had a Windows 7 machine with Visual Studio 2008. The time has passed since then and many things changed, but sometimes you still need to host WCF services with IIS. So this post shows the steps you have to do today, especially for setting up the hosing on a developer machine. If you get the 404.17 error with the message “The requested content appears to be script and will not be served by the static file handler.”, these steps might help.

[read more…]

Integration testing tips: input and output files

by Gáspár Nagy on January 20, 2014

Integration tests have to deal with file system files from time to time, even if the system under test does not use the file system. You might have test input files or generated logs, traces or other output files that you generate during the test execution.

Handling such files is not too hard, but there are a few common mistakes that may arise along the folder handling of these files that I would like to highlight in this post, so that the tests can be properly executed in different environments.

[read more…]