Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7517759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:33:07+00:00 2026-05-30T01:33:07+00:00

How can i serve a locale appropriate .resx file to a http client in

  • 0

How can i serve a locale appropriate .resx file to a http client in ASP.NET?

e.g.

GET /App_LocalResources/MeshModdler.resx

Background

i have a client-side binary that needs to ask a web-server for the appropriate language resources (i.e. it does not have all possible translations; it asks for the one it needs).

Right now the client-side binary prefers to be given an xml file containing all the localized resources (strings, etc). This XML file has a format that looks curiously like Microsoft’s resx format (one might think the format was copied – and they would not be wrong).

Ideally we can use the power of an ASP.NET web-server to locate the appropriate resx file based on the http client’s Accept-Language, e.g.

GET /App_LocalResources/MeshModdler.resx
Accept-Language: az-Cyrl-AZ

Ideally the web-server would try to return, in order of preference:

  • MeshModdler.az-Cyrl-AZ.resx
  • MeshModdler.az-AZ.resx
  • MeshModdler.az.resx
  • MeshModdler.resx

But instead the server returns:

HTTP/1.1 404 Not Found

Bonus Chatter

i know this is not possible. So in addition to a cannot be done answer, i would also accept an answer that just does what i want:

  • harnesses the power of an ASP.NET web-server to perform resource resolution and fallback
  • allows new localization resx files to be dropped into a folder and have them picked up
  • will not require resorting to creating a dummy page that builds what looks like a resx file, but has to thunk every entry with:

    <root> 
       <data name="TesselateMesh.Caption">
           <value><%$ Resources:MeshModdler, TesselateMesh.Caption1 %></value>
       </data>
       ...
    </root>
    

Additional Chatter

The hack for now will be to rename the resx files to xml:

  • MeshModdler.az-Cyrl-AZ.xml
  • MeshModdler.az-AZ.xml
  • MeshModdler.az.xml
  • MeshModdler.xml

And re-invent the fallback code:

GET /MeshModdler.az-Cyrl-AZ.xml
404 Not found

GET /MeshModdler.az-AZ.xml
404 Not found

GET /MeshModdler.az.xml
200 Ok

But it would be nice to work with ASP.NET, not against it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:33:09+00:00Added an answer on May 30, 2026 at 1:33 am

    You can create an ASHX file that takes a resource name file and looks up the correct .ResX file on the server. (moving your current fallback logic to /GetResource.ashx?Name=MeshModeler)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I serve some static content in liferay? I have a directory structure
I have a ASP.NET web app that utilizes ReportViewer to show local reports. Everything
I have an ASP.NET MVC web application which is hosted by an external provider,
I am currently looking into devloping an ASP.NET website. I have configured IIS7 on
I have a list of objects in an asp.net page. Each object represents a
Can Maven copy local file to a remote server using SSH? I want to
You can serve static files with Sinatra by placing them in public/ (by default)
Google maps in some region can serve traffic information showing the blocked roads and
I am looking for a jQuery plugin which can serve me the floating share
OK, I'm aware that triple-quotes strings can serve as multiline comments. For example, Hello,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.