Friday, August 9, 2013

SharePoint "Object moved to here" issue

Today I suddenly encountered an error saying "Object moved to here.".
After searching for this issue I found that it is some anonymous redirection issue in IIS.

I wanted to do fix it quickly to and get going on project I was working on so I tried to put the code within the run with elevated permission and it got fixed.

I will post the details later for for not move your code to run with elevated permission and it might get fixed.

Monday, July 22, 2013

Date format for SPServices for MOSS 2007 to update date field

Today I was working for a client needed to update a MOSS 2007 / WSS 3.0 list from client side.
I used SPServices from codeplex and was sure that UTC date will be accepted but I failed. I just format it in ISO Date format style YYYY-MM-DDzHH:MM:SS and it worked fine
I copied and quickly build the new code to suit me. Thanks to followings:

Sunday, June 30, 2013

SharePoint 2010 ULS Logging - C#

I want to share the ULS logging code that I have planned to use from now.
The credit goes to:

Sample code for how you can use it:
UlsLogging.LogInformation("This is information message");
UlsLogging.LogInformation("{0}This is information message","Information:");

UlsLogging.LogWarning("This is warning message");
UlsLogging.LogWarning("{0}This is warning message", "Warning:");

UlsLogging.LogError("This is error message");
UlsLogging.LogError("{0}This is error message","Error:");

Wednesday, June 26, 2013

SharePoint and MS Office Integration issue on development server

I could not save MS Word document to SharePoint 2010 Foundation site document library. I was getting error message "Could not open http://XXXXXX"
I had Windows Server 2008 server and after struggling for an hour and got is resolved by adding Feature "Desktop Experience" to server.

This Microsoft Support link helped me:
You should check the "Resolution" section on that page.

You can also check this link in other case:

Hope it will help someone.

Monday, June 3, 2013

C# code to make string title or proper case

I was doing some testing and needed to create a title or proper case so wrote the following code and wanted to share.

Friday, May 17, 2013

SharePoint: Get List Items Using View : Get SPListItemCollection Using SPView

Recently I had to use SharePoint List View to get items. Here is the code I used and think this might help you if are trying to do same. Using List's view to filter the items is very helpful because you don't need develop your own custom filtering interface / or take input from user.