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 171167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:56:22+00:00 2026-05-11T12:56:22+00:00

I have a web application built in asp.net, which uses resource files to support

  • 0

I have a web application built in asp.net, which uses resource files to support multiple languages. The problem I have is that I can only add a new language file in Visual Studio, and I have to rebuild the whole application to have a the new language included. After searching the net I’ve found out that the compilation of the resource files can be done in the .net compiler. I’ve used the following commands:

resgen.exe /compile langfile.en.resx

al.exe /out:en\App_GlobalResources.resources.dll /culture:en /embedresource:langfile .en.resources

The file is copied into the website’s folder but it doesn’t work. I mean, when I select the new language from the web page, the strings are loaded from the default resource file. If I create the resource file in VS, it works okay. I checked the sizes of the two dll files, the one generated by VS and the one compiled by myself, and they have the same size but the compiled one doesn’t work. I can only think that maybe I would have to use some other parameters in the commands above but I don’t really know.

Any help is really appreciated.

  • 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. 2026-05-11T12:56:22+00:00Added an answer on May 11, 2026 at 12:56 pm

    You can achieve what you want by writing your own expression builder instead of using the built-in resources version and pull the information from a database or XML files. Basically you write your own class inheriting from System.Web.Compilation.ExpressionBuilder and then register it in Web.config like this:

    <compilation>   <expressionBuilders>     <add expressionPrefix='CustomResources' type='CustomResourcesExpressionBuilder'/>   </expressionBuilders> </compilation> 

    and then you can reference it like normal resources:

    <%$ CustomResources:Section, Key %> 

    You can find some articles on this here and here.

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

Sidebar

Related Questions

I have a web application built on ASP.NET MVC framework which requires a service
I have a web application developed with ASP.net and C# that is running on
I have an ASP.Net 4.0 web application which very frequently loads data from the
I have a fairly standard ASP.Net web application which is used via mobile safari
I have a web application using ASP.NET 2.0 and I want to know if
Given: ASP.Net application which uses a legacy COM library legacy COM library which is
I've built a custom login system for my asp.net mvc 1.0 web application as
Background: I have a winform application written in VB.NET that uses a WebService to
I'm writing an asp.net Web Application. I wrote a login page that authenticates a
I'm working with a web application I built in ASP.NET MVC. It is deployed

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.