Ever have a problem remembering something small, I do. No matter how many projects I develop in SharePoint I cannot seem to remember how to reference the site collection URL from a user control. So, after digging around for 5 minutes to find the answer I decided to blog it and save my aging memory:
<%$SPUrl:~SiteCollection/ [...]
Posts Tagged ‘Microsoft SharePoint’
Site Collection URL in a User Control
Posted in Software Development, tagged Microsoft SharePoint on December 15, 2009 | Leave a Comment »
Site Collection Restore Error
Posted in Applications, tagged Microsoft SharePoint on September 20, 2009 | Leave a Comment »
If you ever run into the following error when performing a site collection restore, via STSADM, and you know space is not an issue, try the steps below before diving deep into troubleshooting mode:
“The site collection could not be restored. If this problem persists, please make sure the content databases are available and have sufficient [...]
Top SharePoint
Posted in Web Sites, tagged Microsoft SharePoint on August 3, 2009 | Leave a Comment »
Check out http://www.topsharepoint.com for the latest and greatest list of sites implemented on the SharePoint platform.
A number of the sites listed were implemented by my current employer – Portal Solutions – who are also listed because our site is hosted in SharePoint. A couple of the sites were managed and architected by yours truly [...]
Efficient way to add a new item to a SharePoint list
Posted in Everything, Software Development, tagged Microsoft SharePoint on February 25, 2009 | 11 Comments »
Never use SPList.Items.Add because this approach gets all items in the list before adding a new SPListItem. Use the following method instead, which does not preload the list items:
1: /// <summary>
2: /// More efficient way of adding an item [...]
SharePoint Development Best Practices (Summary)
Posted in Everything, Software Development, tagged Microsoft SharePoint on February 20, 2009 | 6 Comments »
I’ve read several blog posts of late regarding best practices for developing SharePoint API based components. Some developers are aware of issues surrounding disposal of SPSite and SPWeb objects and the use of SPList Item collections, and some are not. The simple fact is the SharePoint API is not intuitive when it comes usage of [...]
Authentication failed because the remote party has closed the transport stream
Posted in Everything, Software Development, tagged Microsoft SharePoint on January 19, 2009 | Leave a Comment »
If you receiver the error "Authentication failed because the remote party has closed the transport stream" when accessing "Search Settings" in the SSP, the following steps will resolve the issue. The issue is a result of incorrect self-serving-certificate.
1. Install the IIS 6.0 Resource Kit on the index server (http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en) 2. Assign a [...]
Recycle IIS App Pool from Script
Posted in Everything, Software Development, tagged ASP.NET, Microsoft SharePoint on November 7, 2008 | 1 Comment »
My colleague, Carlos Fernandez, sent me this CSCRIPT command for recycling the an IIS application pool:
%windir%\system32\cscript.exe c:\windows\system32\iisapp.vbs /a "SharePoint – 80" /r
Tired of manually recycling the app pool each time you make a code change to your SharePoint web part? No problem, add the following command to the post build events in Visual Studio.
Debugging SharePoint, which Process?
Posted in Everything, Software Development, tagged Microsoft SharePoint on October 28, 2008 | Leave a Comment »
When developing 3rd party components for SharePoint you cannot avoid debugging. Debugging usually involves attaching to a W3WP.EXE process – IIS host for a SharePoint application, from within Visual Studio.
When presented with the attach to process dialog box, you should typically see two to three instances of W3WP.EXE, one for central administration site, maybe [...]
SharePoint Content Structure and Reports Limit
Posted in Everything, Software Development, tagged Microsoft SharePoint on October 10, 2008 | 1 Comment »
We ran into an interesting issue this week where all reports at the site collection level within "Content Structure and Reports" stopped working. The log included the following error:
Query Execution threw SPException: The query cannot be completed because the number of lists in the query exceeded the allowable limit [...]
Abobe 32-bit IFilter on MOSS 64-bit Platform
Posted in Everything, Software Development, tagged Microsoft SharePoint on July 15, 2008 | Leave a Comment »
See the following support page from Adobe:
http://labs.adobe.com/wiki/index.php/PDF_iFilter_8_-_64-bit_Support