Skip to content

error 404.0 when trying to access added static file type (*.mem) #385

@planserver-pro

Description

@planserver-pro

I have the problem that after adding i18n to my project, IIS will not serve additional static file types added via web.config:

<system.webServer>
<staticContent>
<mimeMap fileExtension=".mem" mimeType="application/octet-stream" />
</staticContent>

Browsers will not download .mem files - I get an 404 error. I tried

i18n.LocalizedApplication.Current.UrlsToExcludeFromProcessing = New System.Text.RegularExpressions.Regex("(.mem)$")

but this doesn't help. I also tried setting i18n.UrlLocalizer.UrlLocalizationScheme = i18n.UrlLocalizationScheme.Void - this helps and shows me that the cause must be somewhere in i18n. It seems to me that somehow, when using i18n, the added fileTypes in staticContent are ignored. Could this be the case? If so, what can I do to make this work again?

Any help would be greatly appreciated, because i18n has been a blessing for me so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions