March 12, 2008
Scenario: I created a new website and the root site collection with “Team site” template. I created a WebPart Page Document Library named “Pages”. Then activated the site collection feature “Office SharePoint Server Publishing Infrastructure”. Then activated the site feature “Office SharePoint Server Publishing”. Activation of this feature failed with the error “The specified name is already in use”. The ULS logs said that the ‘Pages’ list existed. Fair enough.
I deleted the ‘Pages’ document library and then tried activating the feature. Same problem.
I deleted the recycle bin and also cleared the site administrator level second stage recycle bin. Still same problem.
I tried creating the ‘Pages’ document library and was able to do it. Wierd. Deleted it again from both recycle bins.
After some research, tried looking up all the content through “SharePoint Designer” and woala….the Pages folder is still visible there. Deleted it and poof …. the publishing feature got activated successfully.
Interestingly weird…. will dig out more on this later but for now, I cleared level 1😉
The type <service>, provided as the Service attribute value in the ServiceHost directive could not be found.
February 26, 2008
I recently had a tough time to resolve this issue.
The problem: The WCF service stopped working without any “breaking” changes done
The exception: The type <xxxxx> provided as the Service attribute value in the ServiceHost directive could not be found. (Complete stack-trace below).
The solution: The class name (aka. type) was missing the complete signature. As my project assembly is strong named and GACed, the declaration should be “type, assembly, version, culturePublicKeyToken”).
Earlier declaration: <% @ServiceHost Language=C# Debug=”true” Service=”typeXXXXX” %>
The corrected declaration: <% @ServiceHost Language=C# Debug=”true” Service=”typeXXXX, assembly,version=220.127.116.11, culturePublicKeyToken=xxxx” %>
August 14, 2007
I am trying to create web parts that use Ajax. After some attempts, I realized that after the first post-back, the consiquent post-backs do not fire. After some googling, I found this excellent post from Mike that explains a step-by-step approach to integrate Ajax with SharePoint. A must-read.
July 23, 2007
There are many unavoidable situations when you need to do an IISReset during SharePoint development (for example: feature installation/re-installation)But as IISReset is an expensive command, use the following instead:
cscript c:\windows\system32\iisapp.vbs /a “[App_Pool_Name]” /r
Note: DO NOT forget the /r at the end. Even better, create a batch file as following:
cscript c:\windows\system32\iisapp.vbs /a “%1” /r
To recycle a pool, simply run AR.BAT <pool_name>
You can hard-code the poolname if you are constantly working on a single pool and create multiple batch files for each pool.
June 2, 2007
I came across the Street View in Google Maps. Pretty cool. It allows a 360 degree view of streets for some major cities. There is a presentation view available at: http://maps.google.com/help/maps/streetview/index.html
May 15, 2007
After 5 hours of effort, I finally got Vista installed on my IBM ThinkPad R40 laptop. I had to partition my single primary disk into two (as I did not want my XP installation to get disturbed by my experiments with Vista).
In this persuit, I found a very nice tool called GParted. This is an excellent and easy to use tool to partition a disk without loosing any data on the existing partition. Though partitioning does not always works that smooth, I could get my 40 GB disk partitioned in exactly 10 minutes.
Vista is pretty cool. I enabled IIS 7 and will try to experiment with it in coming days.