Archive for tag: WSS

PDF icon shows in doc lib, but not in search results

We had the problem of a PDF icon showing up in Search admin and Sharepoint document libraries but when we conducted a search it displayed the default html icon. After trying various thing it seemed to be case sensitivity towards the docicon.xml file.

We had:

<mapping Key="pdf" Value="icpdf.gif"/>


It should have been:

<Mapping Key="pdf" Value="icpdf.gif"/>


Quite an inconsistency in a single product!

 

Problems with applying multiple SPWebConfigModification objects

Last week I struggled again with (some of the most unpredictable features within the the SharePoint code base:) SPWebConfigModification. I just couldn't apply multiple mods at once. So after few hours of trial and error I discovered that this was the solution:

BAD CODE (will apply only 1 mod):

SPFarm.Local.Services.GetValue().ApplyWebConfigModifications();
webApplication.Update();

GOOD CODE (will apply all mods):

webApplication.Update();
SPFarm.Local.Services.GetValue().ApplyWebConfigModifications();

So the punchline is that the sequence of the method calling does matter!

HOWTO: SharePoint incoming mail without an Exchange server

It seems to be that some companies do not have an Microsoft Exchange server and rely on other mail systems (like Lotus Domino server) for their corporate email. Recently I was asked at such a company if it is possible to have incoming email enabled on SharePoint without an Exchange server. After a day of research I had to conclude: YES, it's possible! It's not that hard either too!

What do you need to do:

  1. Point a MX (mail relay) DNS record to the SharePoint server. For example wss.company.com. This is because all email will have to be delivered to the SharePoint server.
  2. Enable SMTP on your server http://www.itsolutionskb.com/2008/11/installing-and-configuring-windows-server-2008-smtp-server/

  3. Configure incoming email on the SharePoint server with the following settings:
    Incoming email

This should make it work. However when I tried it my drop folder kept getting cleaned (by the timer job) but the mail never appeared in the list. I played around with some settings and found these working:

mailonlist