SP2010 seeing more than “An unexpected error has occurred”

Anybody who works with SharePoint has seen the following “Awesome” message…

An unexpected error has occurred

There’s more detail to be had with a simple tweak of the web.config in both MOSS SharePoint 2007 and SP2010.

Navigate to your virtualdirectory, typically here: c:inetpubwwwrootwssVirtualDirectories and then to the folder for your web application.

Opening the web.config in Notepad++ or any other editor and search for the following tags (there is only one of each):

  • CustomErrors
  • CallStack

Note: change them to the below:

  • CustomErrors=”Off”
  • CallStack=”true”

Free SEO Toolkit From Microsoft

Search Engine Optimization (SEO) Toolkit is a free tool from Microsoft forimproving a website’s relevance in search results.

Features:

  • full-featured crawler engine
  • query builder interface that allows you to build custom reports
  • display of detailed information for each UR
  • ability to manage robots.txt file
  • ability to manage sitemap.xml file
  • It requires an IIS7 enabled computer to run which is basically Vista, Windows 7 or Server 2008. After that it can analyze any local or remote website.

SEO Toolkit can be installed easily using the Microsoft Web Platform.

SharePoint 2010 Developer Dashboard

SharePoint 2010 can now provide additional performance and tracing information which is really really helpful if you are trying to debug and troubleshoot issues with page rendering time. It’s called the Developer Dashboard and is pretty easy to enable.

Using the object model:
SPWebService cs = SPWebService.ContentService;
cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.On;
cs.DeveloperDashboardSettings.Update();

Performance information into this Dashboard using the new SPMonitoredScope class

Using STSADM
There are 3 states: on, off or ondemand:
stsadm -o setproperty -pn developer-dashboard -pv ondemand
stsadm -o setproperty -pn developer-dashboard -pv on
stsadm -o setproperty -pn developer-dashboard -pv off

Off = Always off, normal state for production.

On = Always On, best for development only.

OnDemand = The user has the possibility to turn it on or off as needed using the small icon to the upper right hand corner of the page; you click the icon to toggle the dashboard on and off.

Note that this should be one of your first best practices for developing code for SharePoint 2010 – use SPMonitoredScope! This can only serve to help you better understand and manage the performance of your components as you deploy them.

More detail here: http://blogs.technet.com/speschka/archive/2009/10/28/using-the-developer-dashboard-in-sharepoint-2010.aspx

iPhone OS X development course on iTunes University from Stanford

Stanford University has posted another complete lecture and presentation slide series for the Winter 2010 term’s iPhone Application Development course.

Downloaded from iTunes more than 4.4 million times last year this latest series of closed-captioned! lectures are now updated to include APIs from the latest iPhone OS 3.1 SDK OS X etc.

There’s no support available so don’t even try to ask them (Stanford ) for help.