473,383 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Help me please (Resources)

Hello,

Thanks ins advance for reading my message

Im trying to use many .resx files for different webforms when I try to the project the following error appears:

Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Site.resources" was correctly embedded or linked into assembly "Site". baseName: Site locationInfo: <null> resource file name: Site.resources assembly: Site, Version=1.0.1384.18527, Culture=neutral, PublicKeyToken=null

Anyone knows what could be happend, thanks for your help!!!

Thankfully,

KMILO
Nov 15 '05 #1
1 1275
The compiler automatically adds the default namespace and folder location to
the resource file, so when you add the resource to the ResourceManager
object, you should use the whole name.

For example, I have a project called "MyProject", whose default namespace is
"MyProject.Core". I added a "Localization.resx", the structure is:

Core <project name... default namespace = "MyProject.Core">
|- References
|- Other Project folders
|-Resources
| \- Localization
| \- Localization.resx
|
\Localization.cs

The route I have to give the ResourceManager when opening is:

"MyProject.Core.Resources.Localization.Localizatio n"

Something like:

using System.Threading;
using System.Resources;

<add class definition here>
public static ResourceManager m_ResMan;
m_ResMan = new
ResourceManager("MyProject.Core.Resources.Localiza tion.Localization",Assembl
y.GetExecutingAssembly());

Otherwise, if you want to know the exact name, look in the "obj/" folder
after compiling, there should a ".resources" file with the complete name
given by the compiler to that resource, in my case:
MyProject.Core.Resources.Localization.Localization .resources

Hope this helps,

Javier Campos
Virtual Media Systems, S.L.
"KMILO" <km*****@hotmail.com> escribió en el mensaje
news:OM**************@tk2msftngp13.phx.gbl...
Hello,

Thanks ins advance for reading my message

Im trying to use many .resx files for different webforms when I try to the project the following error appears:
Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Site.resources" was
correctly embedded or linked into assembly "Site". baseName: Site
locationInfo: <null> resource file name: Site.resources assembly: Site,
Version=1.0.1384.18527, Culture=neutral, PublicKeyToken=null
Anyone knows what could be happend, thanks for your help!!!

Thankfully,

KMILO

Nov 15 '05 #2

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

Similar topics

0
by: Durham Writer | last post by:
Hi all, I'm currently working on a resource directory for the homeless, needy and those dealing with mental illness. The site is located at: http://triangle-resources.no-ip.org Triangle...
1
by: Alpha | last post by:
I have a Window based application that shows up still running in the task manager when I close it. It reaches the "this.close" statement and then it stops at the "}" at the section of the...
1
by: Sam Smith | last post by:
Dear All I would be really grateful if someone would help me. I have scoured the docs and the web for this I am writing a VC++ application, using .NET and Windows Forms. I am using Visual C++...
0
by: Steve B. | last post by:
Hi all, I'm looking for a pretty way to globalize an ASP.Net application. I base on the Globalization Architecture for ASP.NET article from the MSDN Library. If I have a user control...
5
by: archana | last post by:
Hi all, I am having confusion regarding localization in .net. I have one form on which i have some labels and button. After designing that form what i did is set localization property of form...
9
by: jmchadha | last post by:
I have got the following html: "something in html ... etc.. city1... etc... <a class="font1" href="city1.html" onclick="etc."click for <b>info</bon city1 </a> ... some html. city1.. can repeat...
3
by: Robert Dufour | last post by:
I am trying to localize a very simple web site (english and french) I have a master page and one content page for now. On the master page I have placed a Localize control On the content page I...
1
by: sahilrekhi | last post by:
Hi i am working on a graphical user interface deisgn programme. when i compile the file i i get the following output with the mentioned errors: 1>------ Rebuild All started: Project: guiq,...
2
by: tonsi | last post by:
I have a page but it wont center the div. Can anyone take a look at it and help. When I try to center in the body using text-align: center; it doesn't work with the main container (called Table_01)....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.