Tuesday, February 15, 2011

SharePoint 2010: Email A Link….Sample?

This was some strange behavior: The ‘E-mail A Link’ option in the ECB – or whatever the SharePoint 2010 name for ‘context menu’ is – was opening up the email client (in this case Outlook 2010) with a new email that contained the word ‘Sample’ – no link to the document, just the word ‘Sample’.

image

image

I will not reveal that in 2010 that the ‘E-mail a Link’ action results in a round trip to the server for no good reason (oops) – but I will reveal that it is this round trip that caused the issue.

Resolution

Since WCF is messing with you again just because you probably wanted a site with multiple authentication schemes and did not want the headache of extending the site,  add this to the site’s root web.config to make WCF clam up:

<configuration>
  <system.web>
      …
   
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
  </system.serviceModel>
</configuration>

That is strike #3,9343,091, WCF!!!  

image

BTW, this also had the nice side effect of fixing SPDesigner 2010 access to the site. Once change in place, SPDesigner could access the site.

 
© I caught you a delicious bass.
Back to top