Sharepoint Insight by Namwar Rizvi

Sharepoint Tips, Tricks and inside knowledge from real world experience by Namwar Rizvi

Archive for the ‘SP2010’ Category

SharePoint 2010 Certification Details

Posted by namwar on July 1, 2010

For those of you who are waiting for SharePoint 2010 certifications, here are the links to find all the details about them:

Exam 70-573: TS: Microsoft SharePoint 2010, Application Development
Exam 70-576: PRO: Designing and Developing Microsoft SharePoint 2010 Applications

Exam 70-667: TS: Microsoft SharePoint 2010, Configuring
Exam 70-668: PRO: Microsoft SharePoint 2010, Administrator


Posted in Certification, Information, SP2010 | Tagged: , , | Leave a Comment »

How to generate a valid SharePoint FileName

Posted by namwar on June 17, 2010

SharePoint imposes several restrictions for the filenames. To get the details of all these restrictions, please check this support article from Microsoft. I have created a utility function to convert a given string to a valid SharePoint filename. This function is valid for SharePoint 2003, 2007 and 2010. Here you go

public string ConvertToValidSharePointFileName(string originalFileName)
            char[] InvalidFilenameCharacters = new[] {'\\', '/', ':', '*', '?', '"', '<', '>', '|', '#', '{', '}', '%', '~','&' };
            string[] InvalidFileNameStrings = new[] { ".files", "_files", 
                "-Dateien", "_fichiers", "_bestanden","_file", 
                "_archivos", "-filer", "_tiedostot", "_pliki", 
                "_soubory","_elemei", "_ficheiros", "_arquivos", 
                "_dosyalar", "_datoteke","_fitxers", "_failid", 
                "_fails", "_bylos", "_fajlovi", "_fitxategiak"};
            string validSharePointFileName = originalFileName;

            //Remove Invalid characters
            validSharePointFileName = validSharePointFileName.Remove(InvalidFilenameCharacters);
            //Remove consecutive periods(..)
            while (validSharePointFileName.Contains(".."))
                validSharePointFileName = validSharePointFileName.Replace("..", ".");

            //Remove reserved words from end
            foreach (string s in InvalidFileNameStrings)
                if (validSharePointFileName.EndsWith(s))
                    if (validSharePointFileName.Length > s.Length)
                        validSharePointFileName = validSharePointFileName.Substring(0, validSharePointFileName.Length - s.Length);

            //Remove period (.) at end
            if (validSharePointFileName.EndsWith("."))
                validSharePointFileName = validSharePointFileName.Remove(validSharePointFileName.Length - 1, 1);

            //Remove period (.) at end
            if (validSharePointFileName.StartsWith("."))
                validSharePointFileName = validSharePointFileName.Remove(0, 1);

            return validSharePointFileName;

Posted in C#, Solutions, SP2010, Tips | Tagged: , , , , | Leave a Comment »

Solution for Zero Byte SharePoint 2010 Log files

Posted by namwar on April 5, 2010

If your SharePoint 2010 Log files are of  zero byte i.e. SharePoint is unable to record the Log information then perform the following steps to resolve it

  1. Make sure the login account of “Windows SharePoint Services Tracing V4” is member of Local Administrators group.
  2. Make sure you have restarted the “Windows SharePoint Services Tracing V4” service after performing step 1.

Posted in Solutions, SP2010 | Tagged: , | 2 Comments »

How to solve Missing Server Side Dependencies – 8d6034c4-a416-e535-281a-6b714894e1aa Error?

Posted by namwar on April 4, 2010

After installing SharePoint 2010 Beta, you may encounter “Missing Server Side Dependencies – 8d6034c4-a416-e535-281a-6b714894e1aa” error in SharePoint Cental Administration. It is a very weird error and there is no logical reason behind it:) Microsoft may fix it in the final release of SP2010. Until then here is the solution:

  1. Navigate to SharePoint Central Administration Page
  2. Click General Application Settings on left hand side Quick Launch bar
  3. Under Search, click Farm-Wide Search Administration to open farm wide search administration page.
  4. Now, under Search Service Application click Search Service Application
  5. Now restart the server by executing iisreset -noforce command on command prompt.
  6. Thats it! You have solved the issue 🙂

To verify,

  1. Go back to SharePoint Central Administration Page and click on View these issue link, if it is available.
  2. You will notice that at least the above mentioned error has been removed.

If you want to know the background of this issue then please read this post

Posted in Errors, Solutions, SP2010 | Tagged: , , , | 7 Comments »