I have a JS file which returns a HTTP Error 414.0 - URL Too Long.
The URL isn't particularly long - http://beta.abcdefg.abc.ab/abcdef/abcdefgh.js
I am suspecting that maybe the physical path is too long, but it's only 91 characters - \abcdefsitestorage.file.core.windows.net\iisfarm\Websites\asp\asp-apps\abcdef\abcdefgh.js
(examples are same length and structure of real URL)
I have experimented with settings in the web.config but they have made no difference
<httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" maxRequestLength="2147483647" executionTimeout="1200" maxQueryStringLength="2097151" maxUrlLength ="65536" relaxedUrlToFileSystemMapping="true"/>
and
<security>
<requestFiltering>
<requestLimits maxUrl ="65536" maxAllowedContentLength="4294967295" maxQueryString ="2097151" />
</requestFiltering>
</security>
I've now run out of ideas so if anyone can point me in the right direction that would be great!
Edit:
Confirmed that issue is with IIS. Server response header is Server: Microsoft-IIS/10.0
Currently attempting to get FRT running, it isn't logging anything at the moment.
<system.webServer>
<tracing>
<traceFailedRequests>
<add path="*">
<traceAreas>
<add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" />
<add provider="WWW Server" areas="Rewrite,Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module" verbosity="Verbose" />
</traceAreas>
<failureDefinitions statusCodes="100-900" />
</add>
</traceFailedRequests>
</tracing>
</system.webServer>
Edit 2:
I've been doing some more testing and in this particular location it errors wit 414 for .js, .css and .txt files but it doesn't error with .aspx files.
Is there a separate location that non-aspx files have limits set?
Edit 3:
It is also giving a 414 error even if the target file doesn't exist!