2
Vote

Missing settings from Web.config

description

This is a fantastic project.
 
I had to retype some web.config sections that didn't get installed properly. Also, there's crucial detail missing from the documentation around this. I derived these from first principles, so apologies for any errors!
 
Here is the first bit - add this to the <handlers> section:
 
<handlers>
  <add name="CXML" verb="GET" path="*.cxml" type="PeopleSearchPivot.CxmlHandler, PeopleSearchPivot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=97efbdb60fb90395" />
  <add name="DZC" verb="GET" path="*.dzc" type="PeopleSearchPivot.DzcHandler, PeopleSearchPivot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=97efbdb60fb90395" />
  <add name="DZI" verb="GET" path="*.dzi" type="PeopleSearchPivot.DziHandler, PeopleSearchPivot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=97efbdb60fb90395" />
  <add name="DeepZoomImage" verb="GET" path="*/dzi/*_files/*/*_*.jpg" type="PeopleSearchPivot.DeepZoomImageHandler, PeopleSearchPivot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=97efbdb60fb90395" />
  <add name="ImageTile" verb="GET" path="*_files/*/*_*.jpg" type="PeopleSearchPivot.ImageTileHandler, PeopleSearchPivot, Version=1.0.0.0, Culture=neutral, PublicKeyToken=97efbdb60fb90395" />
</handlers>
 
And here's the second bit - add to the <staticContent> section:
 
<staticContent>
  <remove fileExtension=".svg" />
  <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
  <mimeMap fileExtension="*.cxml" mimeType="text/cxml" />
  <mimeMap fileExtension="*.dzc" mimeType="text/xml" />
  <mimeMap fileExtension="*.dzi" mimeType="text/xml" />
</staticContent>
 
With both bits, be mindful not to erase any existing handlers or mimeMaps without due care and attention
 
Other than that, massive thumbs up for this project. It's a great piece of work!
 
Cheers,
 

joel

http://joelblogs.co.uk
Joel's SharePoint Architect Blog

comments