asp.netiissitecoresitecore7.2

Receiving IIS 500 error for static files when installed with Sitecore 7.2


Hopefully somebody can point me in the direction of a solution for this particular problem.

The Scenario (Sitecore 7.2 rev 140526)

I have a static 'index.html' file hosted in a folder (let us call it 'test') inside my Sitecore web application.

If I access the index.html file directly via a web browser, everything loads correctly.

However, if I access the directory (i.e. http://myweb.site/test/) I receive a 500 error.

The error message is binding to the default document correctly, as evidenced by the details in the error message.

UPDATE: I have been able to reproduce with a fresh 7.2 instance with the NTTData CDN Connector configuration file in place.

What I have tried already

  1. To prevent Sitecore from serving it's 404, I updated IgnoreUrlPrefixes setting
  2. The index.html file name is in the list of default documents for the site (and folder)
  3. In order to bypass the ExtensionlessUrl handler for .NET and resolve a 404 error, I have re-ordered the Handler Mappings to place the StaticFile handler before the ExtensionlessUrlHandler handlers.
  4. Running on the same IIS instance, I setup a separate site with the same files and the default document loading worked correctly.
  5. I have verified that the folder in IIS has Anonymous Authentication enabled
  6. I have tried providing the Everyone group with full control to the folder in NTFS permissions
  7. I have validated that the folder and folder parents are not marked as 'Hidden'.
  8. IIS Failed request tracing did not provide much, but I did notice the Sitecore Rewrite module changing the URL a few times in the handler pipelines to append a "?". Subsequent calls by the static module did not show any warnings or errors though.
  9. I have reproduced with a blank Sitecore 7.2 instance by adding the NTTData CDN Connector configuration file

The error I am seeing

HTTP Error 500.0 - Internal Server Error
Module: DefaultDocumentModule
Notification: ExecuteRequestHandler
Handler: StaticFile
Error Code: 0x800703e9
Requested URL: http://myweb.site/test/index.html
Physical Path: C:\MyWebsite\test\index.html
Logon Method: Anonymous
Logon User: Anonymous

Any thoughts?


Solution

  • While I have not figured out why the CDN connector interferes with the loading of the static files, I have been able to resolve the issue using an approach from this answer.

    Essentially, by running the subfolder as an application with a classic mode application pool and putting the static file handler mapping first, the CDN connector doesn't execute and everything works great.