Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

Sponsors

News

 
 
 
DZone MVB

Links

Social

March 2009 - Posts

Problem when testing LINQ To SQL Classes objects

I am writing a small web shop application using ASP.NET MVC Framework. As a part of this project I also write unit test and integration tests. I am using LINQ To SQL Classes as a mapping solution in my project. I found one misleading behaviour of LINQ To SQL Classes when writing integration tests.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

The view 'Index' or its master could not be found. The following locations were searched

One of ASP.NET MVC errors wasted one hour of my life today (of course, it is many times less than this season’s leader SharePoint) but this is still one hour. “The view 'Index' or its master could not be found. The following locations were searched” error raised suddenly and I was not able to get over it. Well, this time solution was simple.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Hiding loggers implementations using Unity

Loggers are one of most popular examples about interfaces for sure. And there are a lot of implementations of loggers. Some implementations are simple and yet powerful, some implementations may be more complex. All we have to is to select implementation we need and integrate it to our application. It seems like good idea at first place but as soon as we need to switch from one implementation to another we discover nasty dependencies we have to change in all places where we are logging. Let’s see how to avoid these dependencies.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

SharePoint: how to fix CKS Live ID logout

Last month I wrote about how to add SharePoint users for Live ID accounts on Community Kit for SharePoint. Another problem we found was that logout didn’t worked as expected. When logging out form Live ID we can see error on Live ID site stating that logout from our system failed.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Links 2009-03-25

NB! This blog is moved to gunnarpeipman.com

SharePoint

ASP.NET

Server stuff

Other development topics

kick it on DotNetKicks.com vote it on Web Development Community pimp it Shout it
Refactoring: extract and override factory method

I’m sure you have seen classes that initialize a lot of objects in their constructor. These classes may be hard to test because of those object creations I mentioned. To get around this problem we use Extract and override factory method refactoring so we can extend these classes and override some factory methods.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Windows Azure Tools for Microsoft Visual Studio March 2009 CTP

On Friday Microsoft released March 2009 CTP of Windows Azure Tools for Microsoft Visual Studio. You have to remove previous releases of Azure tools before installing new one. 

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Refactoring: adapt parameter

Sometimes you are not able to use Extract Interface refactoring because interface of parameter may be too large or there may be no interface at all. You just have class to pass in and you are not able to fake it or extend it to get class testable. In this case you have to use Adapt Parameter refactoring to create adapter that is seen through common some common class of interface.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Windows could not be activated

After installing Windows Server 2008 to one of my development server I got the following error: Windows could not be activated. Exact details of error:

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

SharePoint: Solving the name.dll ActiveX problem – the easy way

It is possible to solve name.dll issue in SharePoint without modifying JavaScript files.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

More Posts Next page »