sfeldman.NET
.NET, code, personal thoughts
-
IIS 7 - Writing Log Files
I have ran into a problem while using NLog with web application – logs not created when application is deployed to IIS. Everything would indicate that this is permissions issue, except that I couldn’t figure out what account my web application was running under. Under II6 it was simple – IUSR, but with IIS 7 things have changed a little. Then I learned about Application Pool Identities. Very interesting, especially when locating an account DefaultAppPool resolves nothing, but IIS AppPool\DefaultAppPool does find DefaultAppPool. Either way, once I set write permissions for DefaultAppPool on the web application folder controlled by IIS, my problems were solved.
-
Podcast: Technical Debt
This a great podcast from Deep Fried Bytes and Gary Short that is doing a great overview and explanation about Technical Debt to folks that are not developer, but managers.
-
Lighthouse - CI Friendly Unit Test Runner for Silverlight
-
WCF Dynamic Client with Dynamic Service End Point
First reaction would be why?
-
Impromptu-interface
While trying to solve a problem of removing conditional execution from my code, I wanted to take advantage of .NET 4.0 and it’s dynamic capabilities. Going with DynamicObject or ExpandoObject initially didn’t get me any success since those by default support properties and indexes, but not methods. Luckily, I have a reply for my post and learned about this great OSS library called impromptu-interface. It based on DLR capabilities in .NET 4.0 and I have to admit that it made my code extremely simple – no more if :)
-
Reflector – The King is Dead. Long Live the King.
There was enough of responses for Red Gate announcement about free version of .NET Reflector. Neither there’s a need to explain how useful the tool is for almost any .NET developer. There were a lot of talks about the price – $35 is it something to make noise about or just accept it and move on. Honestly, I couldn’t make my mind and was sitting on a fence.
-
Creating collection with no code (almost)
When doing testing, I tend to create an object mother for the items generated multiple times for specifications. Quite often these objects need to be a part of a collection. A neat way to do so is to leverage .NET params mechanism:
-
Simple MVVM Walkthrough – Refactored–Part 2
In the previous post I showed an attempt to get rid of the magical strings. It worked great for a string property, but failed for the integer one as JR has reported. I decided to look into that, but this time around through TDD and this is what I found (besides the fact that going TDD way would definitely catch it).
-
Simple MVVM Walkthrough – Refactored
JR has put together a good introduction post into MVVM pattern. I love kick start examples that serve the purpose well. And even more than that I love examples that also can pass the real world projects check. So I took the sample code and refactored it slightly for a few aspects that a lot of developers might raise a eyebrow.
-
Goals for 2011
These are the goals I am setting to work on in 2011 and try to get them done.