Getting IIS error 500 for static files when installing with Sitecore 7.2

Hopefully someone can point me in the direction of a solution to this particular problem.

Script (Sitecore 7.2 rev 140526)

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

If I access the index.html file directly through my web browser everything loads correctly.

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

The error message is required for the default document to be correct, as evidenced by the data in the error message.

UPDATE: I was able to reproduce a new 7.2 instance with the NTNData CDN Connector configuration file.

What I have already tried

  • To disable Sitecore 404 service I updated IgnoreUrlPrefixes
  • The file name index.html is in the default documents list for the site (and folder).
  • To bypass the .NET ExtensionlessUrl handler and resolve the 404 error, I reordered the handler mappings to place the StaticFile handler in front of the ExtensionlessUrlHandler handlers.
  • Running on the same IIS instance, I am setting up a separate site with the same files and the default document download worked correctly.
  • I have verified that the anonymous authentication feature is enabled in the IIS folder
  • I tried to give the Everyone group full control over the folder in NTFS permissions.
  • I have verified that the parents of the folder and folders are not marked as "Hidden".
  • Tracing the failed IIS requests didn't provide much, but I noticed that the Sitecore Rewrite module changed the URL several times in the handler pipeline to add a "?" Subsequent calls to the static module did not display any warnings or errors.
  • I have reproduced with an empty Sitecore 7.2 instance by adding NTNData CDN Connector config file

The error I see

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?

+3


source to share


2 answers


Until I figured out why the CDN connector is interfering with the download of static files, I was able to fix the problem using the approach of this answer .



Basically, by running the subfolder as an application with an application pool in classic mode and putting the static file handler mapping first, the CDN connector fails and everything works fine.

+1


source


I think I found the reason for this.

There is a processor that is patched just before the FilterUrlExtensions processor called CDNInterceptPipeline, which tries to transform the following via a URL link:

/path/to/file.ext!cf!a=1!b=2 in /path/to/file.ext?a=1&b=2.



This caused all the problems in our solution, including the one you indicated above, and for the created CDN we are using, we didn't even need it. Perhaps you can safely remove it from the SitecoreCDN.config file as we do.

Source: https://github.com/NTTDATA/SitecoreCDN/blob/master/Code/Pipelines/CDNInterceptPipeline.cs

+1


source







All Articles