TeamCity deployment using MSBuild and Web Deploy using Windows Authentication

In the previous post I explained how to deploy web application using Web Deploy and MSBuild using basic authentication (with username and password). But in some cases companies have requirement to use service account for deployment with windows authentication (without providing username/password) We…

Read More


Creating build system from scratch using TeamCity and Microsoft Web Deploy

The blog post will explain how to create build system and deploy application code to different environments, such as DEV, UAT, PROD… using TeamCity and MSDeploy. The application which need to be deployed is an ASP.NET MVC 4 application, but it does not matter, it can be any web application (ASP.NET,…

Read More


Custom configuration section transformation on root level

While doing deployment to different environments of Sitefinity website I faced issue with transformation configuration file. I have the following custom configuration file, which is custom configuration section in DataConfig.config One of the requirements was to deploy application to different e…

Read More


Git bare repository on shared network drive

If you are working on Windows operation system and try to connect to bare git repository located on network drive, you can possible get the following error: ashapovalov@MW100604 /c/tfs/Develop (master) $ git push -u origin master fatal: '\mw100604\resonate.git' does not appear to be a git reposit…

Read More


Aspect Oriented Programming (AOP) logging: Castle DynamicProxy vs Microsoft Policy Injection vs Postsharp

While researching around AOP framework I choose the following to test: Castle DynamicProxy Microsoft Policy Injection Block (part of Enterprise Library) PostSharp I have to say then PostSharp gave me the best AOP experience, I was able to produce clean and simple code to log calls to all met…

Read More


Improved logging using Castle DynamicProxy and StructureMap with log4net

In the previous post I explained how to improve logging abilities of your application using AOP abilities of Microsoft Policy Injection Application Block, but you can do the same using different frameworks. In this post I will explain how to intercept calls to methods of your class using Castle Dyna…

Read More


Improved logging with Microsoft Policy Injection Application Block

Microsoft Policy Injection Application Block allows developer to intercept calls to methods, wrap that calls to proxy object and return proxy back to calling class. Later when some methods of the class are called, calls are made to proxy object, and inside the proxy, calls can be made to wrapped cla…

Read More


How to call WCF services from JavaScript jQuery and ASP.NET AJAX

First we have to create a webapplication and add to it Ajax enabled WCF service. Change default DoWork method to accept parameter First add on the page input text control and two buttons. First we will call this method with jQuery. So reference jQuery library and add this javascript function f…

Read More


Show publish version in ClickOnce WPF or WinForms application

When deploying ClickOnce application to the client, usually there is a requirement to display application version. It’s possible to hardcode application version in configuration file, or use assembly version. But when deploying ClickOnce application Visual studio can generate publish version and aut…

Read More


Create a windows service using PowerShell

Window PowerShell provides a number of helpful CmdLets for managing windows services, such as New-Service Get-Service Restart-Service Resume-Service Set-Service Start-Service Stop-Service Suspend-Service And create a new Windows Service using PowerShell “New-Service” CmdLet is very easy. The param…

Read More


Social media

Search

This blog is a place where I share new and cool stuff related to Software development