SharePoint Dragons

Nikander & Margriet on SharePoint

Monthly Archives: May 2012

SharePoint 2010 Best Practice Overview Page

The SharePoint 2010 Best Practice Overview page just underwent a major overhaul and here’s the result: http://social.technet.microsoft.com/wiki/contents/articles/8666.sharepoint-2010-best-practices-en-us.aspx

SPUtility.SendEmail() limit

The SPUtility.SendEmail() method has a limit of the max number of characters on a single line: 2048. However, you can divide the message body in chunks of several lines, thereby circumventing the maximum: http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/a0292b6b-e412-4ccb-910d-1df90f90d5d9. Alternatively, you can send emails directly, using code like this:

System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.From = new System.Net.Mail.MailAddress(objWeb.Site.WebApplication.OutboundMailSenderAddress);
message.To.Add(new System.Net.Mail.MailAddress(objTcnlSite.AcmaEmail));
message.Subject = Subject;
message.Body = Body;
message.IsBodyHtml = true;
System.Net.Mail.SmtpClient smtpClient = new System.Net.Mail.SmtpClient(objWeb.Site.WebApplication.OutboundMailServiceInstance.Server.Address);
smtpClient.UseDefaultCredentials = true;
smtpClient.Send(message);
smtpClient = null;
message.Dispose();

Wikis just may be your best bet

Margriet is a regular TechNet Wiki contributor. Read more about how Wikis can help you placing the right bets in SharePoint projects on Margriet’s first post as a Wiki Ninja on the Official Blog of TechNet Wiki: http://blogs.technet.com/b/wikininjas/archive/2012/05/20/wikis-just-may-be-your-best-bet.aspx

Wiki Community Win

Asset vs Picture library revised

The Asset vs Picture library TechNet Wiki article has been revised. You can find the latest version here: http://social.technet.microsoft.com/wiki/contents/articles/8110.sharepoint-2010-best-practices-asset-vs-picture-library-en-us.aspx

Working with large files

Sometimes we come across an article we’ve written in the past and think: “Hey, this is quite good and still applies!” This is the case with http://www.loisandclark.eu/Pages/largefiles.aspx , it discusses tips and tricks for working with large files.

ULS in logging database

You can use the logging database to store ULS logs, check http://www.oriolardevol.com/Article/Details/36. See http://www.oriolardevol.com/Article/Details/Sharepoint%20Logging%20database%20-%20ULS%20Trace%20tables,%20how%20they%20work for info on how it is stored. Consolidated storage and access to the ULS is a huge benefit, and also makes querying it a lot easier. In addition, the logging db also contains other useful info such as DMVs and performance counters:http://sharepoint.microsoft.com/blogs/fromthefield/Lists/Posts/Post.aspx?ID=124

Farm backup

We really liked the following discussion about farm backups: http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/362973b7-f8bb-4910-892c-82117381fce5 Btw, someone must have misread a part of the question, as a backup of 5tb in 15-20 min is what we’d call “optimistic”!

TechNET Wiki page Performance

DebugDiag

The Debug Diagnostic Tool (v1.2) is a tool that assists in troubleshooting issues such as slow performance and memory leaks. It’s created by MS and also contains a dedicated SharePoint Analysis Script. You can download it at http://www.microsoft.com/en-us/download/details.aspx?id=26798