473,491 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Create 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.GetExecutingAssembly());
string t =res.GetString("SomeText");

But, I am getting the following error:

System.Resources.MissingManifestResourceException: Could not find any
resources appropriate for the specified culture (or the neutral
culture) in the given assembly. Make sure "web.site.resources" was
correctly embedded or linked into assembly "web.site". baseName:
web.site locationInfo: <null> resource file name:
DMG.web.site.resources 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 2603

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

Similar topics

3
14722
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...
0
1664
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....
6
9743
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...
2
1997
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...
5
3816
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...
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...
6
2717
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...
6
4577
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
14913
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...
0
7115
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,...
0
6978
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...
0
7154
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,...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7360
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...
0
5451
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,...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
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...

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.