Thursday, June 6, 2013

Strategy Pattern

To describe the strategy pattern, lets take an example of Football game.
The specific design problem is,
       when game is in progress any team can change its strategy from defend to attack or vice-          
       versa.

The solution for the same is strategy pattern.
         We need to let the algorithm vary independently from clients that uses it.
Very soon I will update article with sample code and class diagram.

Login failed for user 'IIS APPPOOL\ASP.NET v4.0'

To solve this problem we need to change the application pool's identity. 

You can change the ApplicationPoolIdentity from IIS7 -> Application Pools -> Advanced Settings.AdvancedSettings
Under ApplicationPoolIdentity you will find local system. This will make your application run under NT AUTHORITY\SYSTEM, which is an existing login for the database by default.