Gunnar Peipman's ASP.NET blog

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

Sponsors

News

 
 
 
DZone MVB

Links

Social

February 2009 - Posts

Links 2009-02-28

NB! This blog is moved to gunnarpeipman.com

SharePoint

Other development topics

Refactoring: extract interface

Extract interface is one of the most common refactoring techniques. Motivation behind extract interface refactoring method is to avoid direct dependencies between classes. Instead of using classes in method calls we use interfaces so we can also use subclasses of those classes we used before. Also we can create brand new classes that use follow these interfaces and we can use these classes instead of current ones.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

SharePoint: creating SharePoint accounts for Live ID users

Couple of weeks ago I started adding Windows Live ID authentication support to SharePoint. I used Community Kit for SharePoint and I also made here some notes about it. There was one problem – although user is authenticated there is no SharePoint user and it is not possible assign it to any roles. Here is some advices how to create SharePoint user account when new user is registered after logging in using Live ID.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

ASP.NET MVC: Ignore requests to favicon.ico

One problem I faced when writing my example pet portal on ASP.NET MVC was Google Chrome’s request to favicon.ico that doesn’t exist. IE8 that I use (8.0.7000.0) doesn’t make these blind requests to discover that favicon.ico is not there. Solution to my problem was very simple. Just add the ignore rule for favicon.ico to Global.asax file, in the beginning of RegisterRoutes method:

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

SharePoint: Writing messages to ULS (Unified Logging System)

If you want to make your SharePoint solution more SharePoint way you can write your tracing, debug and error messages to SharePoint log. Easiest way to do it is to write logger by yourself. Btw, SharePoint has class called ULS to write messages to logs but this class is internal and we cannot use it. But it is there.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

SharePoint: Access denied error when adding new page to page library

On one of my servers I detected very weird error. There are authenticated users who can add content to some page libraries and modify pages they have made. One day suddenly they were not able to add pages to page library anymore because of Access Denied error. Well, thanks Google, God and Clinton Cherry for saving my ass this time.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Links 2009-02-24

NB! This blog is moved to gunnarpeipman.com

 

SharePoint

Other development topics

Other stuff

Starting with ASP.NET MVC

About a week ago I started learning ASP.NET MVC framework. It is pretty cool entertainment for cold winter nights as I found out. Here are the steps I made to get started:

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Show your Twitter log in SharePoint

About year ago I wrote how to display blog feeds in SharePoint sites using XML Web Part. Today is Twitter very popular and we can use XML Web Part to render Twitter feeds. To see how to configure XML Web Part check out blog feeds entry referred above. This time you have to insert user Twitter feed as XML link, by example http://twitter.com/statuses/user_timeline/12358522.rss. Click XSL Editor button and insert the following XSL to dialog window.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Please help - Visual Studio SharePoint development environment is very slow

I run SharePoint development environment on virtual machine. Virtual machine has 2GB RAM and 30GB disk space. Also I have no complaints over processor (I can run here two usual ASP.NET development virtual machines parallel). All other Visual Studio projects are working well except those that use VSeWSS 1.2. Hard performance problems occur usually at these moments:

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

More Posts Next page »