1

I'm running on a locally installed version of Kiln (Windows 2008 SP2 32-bit, SQL 2008 Express) and whenever I click on a file name from the 'Files @ tip' tab while looking at any repository in Kiln I get a '404 - File or directory not found' error page.

I'm assuming this isn't the expected behaviour - is there anything I can do to help debug the problem?

flag
What type of files are they? – Tyler Hicks-Wright Feb 26 2010 at 23:37
1 
Interestingly I can't view .cs, .csproj, .config or .resx files but I do seem to be able to view a host of others like .png, .bmp, .ico (which are all binary of course) and .sln, .vspscc to name but a few. – John Conners Feb 27 2010 at 0:26

closed as no longer relevant by Benjamin Pollack♦♦ Feb 22 2011 at 20:53

1 Answer

3

Which file extensions are protected by .Net are set on the machine level. It seems our servers for Kiln On Demand were configured to allow those extensions, while yours is not. I've opened a bug and we'll make sure and get a fix out in the next update.

In the meantime, you add the following <fileExtensions> section under <security> in your Kiln/web.config to correct the problem:

 <security>
     <requestFiltering>
         <requestLimits maxAllowedContentLength="2147483648" />
+        <fileExtensions>
+            <remove fileExtension=".cs" />
+            <remove fileExtension=".csproj" />
+            <remove fileExtension=".config" />
+            <remove fileExtension=".resx" />
+        </fileExtensions>
     </requestFiltering>
 </security>

(Obviously, exclude the +s.)

If you see any other 404s on specific file types, add them too.

link|flag
2 
Excellent, that's fixed it, thanks! – John Conners Feb 27 2010 at 8:43
1 
Just so I understand, is this somehting that will be corrected/changed in a future update, or will we still be required to make this config change? – Richard West Mar 3 2010 at 16:48
It has been added and should go out with the next licensed update. – Tyler Hicks-Wright Mar 3 2010 at 23:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.