Piotr Łuksza Gosu Code | Programmer Blog

PostSharp AssemblyLoadException - Piotr Łuksza 0

Drop Linked Server IN Sql Server

Sometimes we get an error while adding linked server: “The server ‘LinkServerName’ already exists” The solution is to drop remote server name (with all associated remote logins) using a statement EXEC sp_dropserver ‘LinkServerName’, ‘droplogins’ After this, we shouldn’t see server...

PostSharp AssemblyLoadException - Piotr Łuksza 0

404 Not Found Error when using IIS (7.5)

While deploying my mvc5 application on Windows server 2008 r2, I had an annoying 404 error. The solution was re-register ASP.NET with aspnet_regiis -i with whe command prompt: c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i Works like a charm!

Music chunk Piotr Łuksza 0

Music chunk November 2014

Guns N’ Roses – You Could Be Mine Guns N’ Roses – Paradise City Metallica – I Disappear Rammstein – Sonne Rammstein – Stalingrad Die Toten Hosen – Pushed Again Disturbed – Land of Confusion SONATA ARCTICA – Paid In...

LogController C# 2

Log collector – logging on steroids

I would like to present a solution that will make it easier to work with any application logs and convenient way to help monitor the work of program. This solution is based on ILogCollector interface. Main features of component: contains three groups...

first 0


Few months ago I was preparing to 70-486 MVC exam and i found great issue of exception handling in Exam ref Book and decided to create this note. Introduction First chance exception is debugging concept to handle exceptions before they have...

tsql 0

TSQL Merge statement

SQl Server 2008 offers us an interesting feature called MERGE function that allows you to perform multiple actions in one query. I noticed, however, that many of my fellow programmers never did not use it. That is why I decided to...

global 0

Global Configuration inProc

In many applications, we try to limit database connections, especially where data rarely change. We can load them once into memory when application starts and refresh only on demand. Such an example can be a table configuration in which we...

filesystem 0

FileSystemWatcher with ASP .NET MVC 4

One day I had very nice task to do. My Mvc app had to process ZIP pack, which was provided to special folder by cilent. The file was containing some important files, but this does not really matter. When the file appears, it...

custom 0

Custom action filter attributes in request logging

MVC .NET provides abstract class ActionFilterAttribute with virtual methods: OnActionExecuting Called before the action is called. It gives you the opportunity to look at information within the HttpContext and make decisions about whether the process should continue to be processed....