473,809 Members | 2,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

resource satellite assembly

Hi NG,

I have a web project and want to use a resource file.
I tried to build a satellite assembly in a very simple
test project and everything went fine.

Application Namespace: WebApplication1
Assemblyname: WebApplication1
ResourceFile: WebResource.de. resources

al command:
al /t:lib
/embed:WebResour ce.de.resources ,WebApplication 1.WebResource.d e.resources
/c:de /out:WebApplicat ion1.resources. dll

codebehind:
ResourceManager rm = new
ResourceManager ("WebApplicatio n1.WebResource" ,Assembly.GetEx ecutingAssembly ());
Response.Write( rm.GetString("t itle"));

So far so good

But if I change the properties like this:

Application Namespace: Test.WebApplica tion1
Assemblyname: Test.WebApplica tion1
ResourceFile: WebResource.de. resources

al command:
al /t:lib
/embed:WebResour ce.de.resources ,Test.WebApplic ation1.WebResou rce.de.resource s
/c:de /out:Test.WebApp lication1.resou rces.d
ll

codebehind:
ResourceManager rm = new
ResourceManager ("Test.WebAppli cation1.WebReso urce",Assembly. GetExecutingAss embly());
Response.Write( rm.GetString("t itle"));

.... then I get an exception, that the resources can not be found
What is the problem?

Thanks in advance ...
Regards
Bjoern

Nov 16 '05 #1
0 1393

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1175
by: Frank L | last post by:
Greetings, I am somewhat puzzled by a difference that occurs when I compile my web application out of VS.NET or if I compile it through NAnt. The issue is with how the resources get compiled into the application's dll file. Using the Reflector application I can see that VS.NET comiles the default language resource into the main dll while putting other languages into so-called satellite assemblies to folders which are named after the...
6
3186
by: James | last post by:
I have two question regarding the version resource that is generated for a satellite assembly. 1) I have a file in my C# console app project called StringResources.en-US.resx. When I build the project, a satellite assembly is built and placed in the appropriate subfolder (en-US). The satellite assembly has a version #, however, none of the other version information that is part of the main app (set in AssemblyInfo.cs) is passed into...
3
13528
by: Sarah Woodfield | last post by:
Hi, I have written an application in VB.Net which runs well on my development PC. However on a few clients machines, at apparently random intervals, they get the above message and the programme crashes out. The error isn't occurring during set-up, but during use of the programme. I am having trouble trapping for this as I don't know what it means and therefore what might be causing it. As far as I know, I am not using any resource files...
1
4034
by: Namratha Shah \(Nasha\) | last post by:
Hi All, This is a resource file generation tool which converts an xml based resource formats to .net resource file i.e. (.resources) and vice-versa. Today we will see how we will generate ==> .txt files from .resources or .resx files. ==> .resources files from text or .resx files.
3
1628
by: gjenglish | last post by:
I have recently migrated an ASP.NET 1.1 web application to ASP.NET 2.0. In this application I am storing all my resources in satellite assemblies and I am accessing them via the ResourceManager object. However, the ResourceManager is no longer returning the resources from the satellite assemblies; it appears that it is always using the fallback resource assembly (neutral); which in my case is the resource assembly that is embedded in the...
1
4035
by: scpedicini | last post by:
Let's say that I've built an assembly called MyApi.dll with two different language resource files, one called DefaultResource.resx (which is my english resource file), and a german resource file called DefaultResource.de.resx. However, I would like both of these files to live inside MyApi.dll. Inside MyApi.dll, I have a ResourceManager that is loaded using: new System.Resources.ResourceManager("MyNamespace.DefaultResource",...
1
1905
by: vecozo | last post by:
Centralized resource files Hi, We are considering to migrate our custom asp.net localization procedure, to one that stored .Text properties of controls in a SQL database, towards the usage of standard resources (hence .resx files). Plain Resx files do not seem to be a very scalable solution: We have dozens of servers and we do not want to access all servers to deploy files in case of minor changes in the personalized text. So we need...
1
1274
by: Jason | last post by:
Greetings , I'm studying for a MS exam and I'm a little confused about assemblies. Not what they are but just a specific comment that I'm reading and it doesn't make sense to me. It reads "Assembly resource files are preferred for use with localized data that is not tied directly to the user interface such as message box text" My question is why wouldn't satellite assemblies be the preferred method
2
2405
by: Nader | last post by:
I'm trying to use satellite assemblies in my web application. I got a problem with loading resource files. I have the falowing code: protected ResourceManager GetStrings = new ResourceManager("StringsFallback", typeof(Satellite).Assembly); This should load the resources stored in the StringsFallback assembly file. Actually I don't realy know what exactly I should put at the second argument... And I get this error message:
12
5280
by: TS | last post by:
i have a need to possibly enable mutli language support. What benefit do i get by using a resource file instead of a custom xml solution? thanks!
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.