How to exclude test assembly from code coverage in VS 2012

If you are using VS 2012, by default Code coverage results are available for Test assembly also. There is no direct way to disable this behavior, either you need to use the ExcludeFromCodeCoverage attribute or you need to use the runsettings file. The ExcludeFromCodeCoverage is pretty straight forward; you need...


K-MUG User Group Meeting - 19th Jan 2013

Another K-MUG UG Meeting, as usual the event was awesome. (Sorry I forgot to post about the event in my blog.) The first session was from Shiju Vargheese on Windows Azure Websites. A good introduction session about Windows Azure website. You can download / view the presentation here The second...


How to upload file to FTP server using C#

From .net framework 2.0 onwards .net supports FTP operations. Like HttpWebRequest and HttpWebResponse, for FTP operations, FtpWebRequest and FtpWebResponse classes are available, under System.Net namespace. Here is the code snippet, which will help you to upload a file to FTP server, using C#. string url = "ftp://myserver.com/sample.txt"; var ftpWebRequest =...