title: Sitecore preview not working
body: <p>I am having some troubles with Preview in Sitecore. I'm using version 6.6.</p>
  
  <p>When I click the Preview button from the presentation tab, I see the following grey screen.
  <a href="http://imgur.com/WI9sHkw" rel="nofollow">http://imgur.com/WI9sHkw</a></p>
  
  <p>When I click Preview from the Publish tab I get the following error in a popup.
  <a href="http://imgur.com/EGiYSsF" rel="nofollow">http://imgur.com/EGiYSsF</a></p>
  
  <p>Here is my site in Web.config. </p>
  
  <pre><code>&lt;site name="website" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content/My Website" startItem="/home" language="en-GB" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="10MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="2MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" /&gt;
  </code></pre>
  
  <p>One thing I thought it could be is that the language is set to en-GB. Could this be part of the problem? All the items in sitecore are set to en-GB and I have updated the ClientLanguage and DefaultLanguage settings in my Web.config to en-GB as well.</p>
  
  <p>Thanks in advance for your help.</p>
  
  <p>EDIT: Found the issue in a config file in my Include folder. I don't know why this is needed so I have deleted it. I don't know why it was breaking my preview either.</p>
  
  <pre><code>&lt;configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"&gt;
    &lt;sitecore&gt;
      &lt;encodeNameReplacements&gt;
        &lt;replace mode="on" find=" " replaceWith="-"/&gt;
      &lt;/encodeNameReplacements&gt;
      &lt;sites&gt;
        &lt;site name="website"&gt;
          &lt;patch:attribute name="name"&gt;My Website&lt;/patch:attribute&gt;
          &lt;patch:attribute name="rootPath"&gt;/sitecore/content/My Website&lt;/patch:attribute&gt;
          &lt;patch:attribute name="startItem"&gt;/Home&lt;/patch:attribute&gt;
        &lt;/site&gt;
      &lt;/sites&gt;
    &lt;/sitecore&gt;
  &lt;/configuration&gt;
  </code></pre>