473,834 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.RESX files in ASP.NET applications. VS.NET doesn't convert to .resource files

O.K. So I added a new resource file to my web application called
"web.site.resx" .

Now, I thouhgt I should be able to access my resources like this:

ResourceManager res = new ResourceManager ("web.site",
Assembly.GetExe cutingAssembly( ));
string t =res.GetString( "SomeText") ;

But, I am getting the following error:

System.Resource s.MissingManife stResourceExcep tion: Could not find any
resources appropriate for the specified culture (or the neutral
culture) in the given assembly. Make sure "web.site.resou rces" was
correctly embedded or linked into assembly "web.site". baseName:
web.site locationInfo: <null> resource file name:
DMG.web.site.re sources assembly: web.site, Version=1.0.0.0 ,
Culture=neutral , PublicKeyToken= null

Can anyone please tell me how to use .resx files in ASP.NET apps?
Thank you very much!

Oli
Jul 19 '05 #1
0 2638

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

Similar topics

3
14744
by: Steve | last post by:
Hello, According to my C# book, I can add a .resx file to my project by going to the Project menu, Add New/Assembly Resource File... I want to add 6 icon files, one.ico, two.ico...six.ico. I got as far as adding the Resource1.resx file. I now see a table like thing with the titlel "Data for data". So how do I add my ico files to this table? I see the xml page. Do I have to manually type in the ico files? And before I do that do...
0
1678
by: Josef Meile | last post by:
Hi, I'm working with .resx files for a multilanguage application and so far it has worked perfectly. However, now I want to add more attributes to the xml schema and read them at running time. ie: I want to programatically generate forms and validate their input fields according to the data stored on a resource file. Here is an example:
6
9758
by: Hans Kesting | last post by:
Hi, When I add a webform, VS generates three files: WebForm1.aspx WebForm1.aspx.cs (could also be "WebForm1.aspx.vb" I guess) WebForm1.aspx.resx What is that last file for? How can I use it? I understand the use of (but haven't used yet..) the "stand alone" resource
2
2023
by: Paul | last post by:
I have plugged the ExceptionManagement app block into our framework and have a question about resource files. ExceptionManagerText.resx is one of resource files in the project. When you look at .dll's manifest in the disassembler the file is ExceptionManagerText.resources. When/How is the file transformed from it's text form, .resx, to it's binary form, ..resources? HTH: I was getting the error: "Could not find any resources appropriate...
5
3837
by: Franck | last post by:
Hello, I've just moved to visual developper 2005 to do so, I also had to use the convert assistant. what it did; moving my file resx files that i had in a diresctory called resx to a new directory called: App_GlobalResources in my code i had :
0
256
by: Oliver Degnan | last post by:
O.K. So I added a new resource file to my web application called "web.site.resx". Now, I thouhgt I should be able to access my resources like this: ResourceManager res = new ResourceManager("web.site", Assembly.GetExecutingAssembly()); string t =res.GetString("SomeText"); But, I am getting the following error:
6
2748
by: FBS | last post by:
Hello I'm currently working on a winform project that must be in 3 languages (French, English et Polish). I know that I have to work with *.resx files, (1 for each language, 1 for the default) but also 1 for each Form. The problem I have is that I must change the form and modify the objects on
6
4611
by: ad | last post by:
I wnat to load a file in an .resx file and transfer the file to a stream. How can I do?
8
14957
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to cut and paste code that MSDN recommends for playing a simple wav file from inside an embedded file, like presumeably the 'resources' file .resx is. I want to embed the .wav file in a 'resource file' since I don't want the user storing the file on...
0
9799
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
9646
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9332
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
7760
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
6957
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4427
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
3981
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3083
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.