New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding mime types produces 404 #732
Comments
I found the cause of this issue Aspnet core does not honor webserver->staticcontent->mimetypes as described in these posts. In short, static file requests in this case does not reach IIS express to be served, hence web.config modifications has no effect. https://stackoverflow.com/questions/51770084/how-to-add-mime-types-in-asp-net-core The below modification on
|
I have been trying to get mime maps working on this repository.
Every http request to unknown mime types (On IIS Express and Azure web apps) results in 404 error.
Steps.
GET http://localhost:63554/assets/sample.properties 404 (Not Found))
What did I try.
appcmd set config /section:staticContent /+[fileExtension='properties',mimeType='application/octet-stream']
from IIS Express folder(C:\Program Files(x86)\IIS Express) in command line(as admin)Here is full web.config
Interestingly enough, deploying this to an azure app service still produces this error.
@MarkPieszak Have you encountered a similar error on unusual mime types before?
PS: Default VS 2017 angular template works without adding mimemap for
properties
file.The text was updated successfully, but these errors were encountered: