The Web application at XXX could not be found when using SharePoint OM in an ASP.NET WebApplication on 64 bit server

When using SharePoint 2010 Server OM code in an ASP.NET web application on a Windows 2008 64 bit server, you get below exception : The Web application at http://servername:portnumber/sitename/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to…

1

Activating SharePoint 2010 SandBox Solutions aka User Solutions Programmatically

It seems SPUserSolutionCollection.Add though changes the status of a User Solution to ‘Activated’ but the Site Collection(Site) Level Features aren’t activated. Other methods of activating a solution , like UI, Powershell do not exhibit this behavior. In other words, if a WSP was activated from User Solutions Gallery or via Powershell, it’s site level Features…

1

Manipulating SharePoint 2010 User Solutions Programmatically

In continuance of my last post, I noticed that when I added the SPWeb WSPs (SPWeb.SaveAsTemplate) to the User Solutions Gallery (Top Level Site Settings –> Solutions), they were not activated. Which I later found was because I was using one of the pre-RTM builds. In RTM, Save Site as template will not only add…

1

Error copying temporary solution file to solutions gallery

My first dig at SharePoint 2010..nah..I have been working on it for some time ..and am sure better posts on 2010 are en route Let me start off with this one. Well.. this one is not exactly about SharePoint 2010, except the error message and that sites can now be saved as .wsp packages (which…

2

Background images for anchor tags included as part of CSS via custom Theme do not appear in non-IE browsers

I created a custom theme for SharePoint and in it a custom style sheet. Below I am enlisting the issue I faced with background property of anchor elements and the resolution I found.Some good reference articles for creating custom themes : http://sharepoint.microsoft.com/blogs/GetThePoint/Lists/Posts/Post.aspx?ID=122 http://www.heathersolomon.com/blog/articles/brandsppart2.aspx For the purpose of an example , consider this style element (in…

0

Blank Dialog Box on Clicking Ok button on _layouts/Copy.aspx

The button OK on the copy.aspx (which opens when selecting “Send To-> Other Location” from Item-level menu), calls an ActiveX control called STSUpld.CopyCtl.You can observe the file copy.aspx located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\Copy.aspx function CreateCopyControl() {       try       {             copyctl = new ActiveXObject(“STSUpld.CopyCtl”);       }       catch(e)       {            …

0

Unexpected Token Error in the Site Data Web Service during Crawl

Just a small note about naming conventions to take care when declaratively creating fields and content types : Error in the Site Data Web Service. (*** ‘Type’ is an unexpected token. The expected token is ‘=’. Line 246, position 344.) Local Office SharePoint Server sites Above is the error which one of my customers reported…

0

XSL performance issue when using custom Itemstyle Xsl with ContentQueryWebPart.

In one of my support cases customer was using a modified "ItemStyle.xsl" sheet to display the first 1000 characters of a SharePoint Blog posting using the content query webpart.  This method works during small blog postings, however when the customer posts large blog posts (tested with 8000 lines) it eats the system memory until the…

0

Hiding ECB menus selectively based on an item property

I needed to hide context menu item “Edit Document”, for files of a particular type (which SharePoint determines from the file extension). Here’s is how I achieved it : The menu Item “Edit Document” is rendered via AddDocLibMenuItems function in CORE.JS. Possible approaches to achieve this override in a supported way : Option1 : a)Create…

3

How to Export Values for a MultiLine Column with – Append Changes to Existing Text

One of my customers recently came up with a requirement below : -In a List there’s a column called COMMENTS (Multiple Lines of Text w/ Append Changes to Existing Text)  where people put their comments for that list item whenever they edit it. It’s a column with Append Changes property set. -When we use the…

7