473,413 Members | 1,993 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,413 software developers and data experts.

Could not find any resources appropriate for the specified culture

Hi,

Firstly, I have created an Assembly with RlinkPMBAPIRes.dll
Secondly, I have created an Assembly with TestRes.exe which is the calling
application.

1. RlinkPMBAPIRes
RlinkPMBAPIRes
--MyResources.en-US.resx
---->obj
--RlinkPMBAPIRes.dll
--RlinkPMBAPIRes.MyResources.en-US.resources

In this project i have a method called GetResourceValue(string
sTagName) in a csResource.cs file

public string GetResourceValue(string sTagName) {
string sRetVal ="";
CultureInfo ci = new CultureInfo(CultureInfo.CurrentCulture.Name);
System.Threading.Thread.CurrentThread.CurrentCultu re = ci;
ResourceManager resources = new System.Resources.ResourceManager
("RlinkPMBAPIRes.MyResources",Assembly.GetExecutin gAssembly());
sRetVal = resources.GetString(sTagName);
return sRetVal;
}

2. TestRes.exe

RlinkPMBAPIRes.cPMBAPIResource m_oRes = new
RlinkPMBAPIRes.cPMBAPIResource();
m_oRes.GetResourceValue("ResName");

When i tried to inovke this method I am getting this below error.

"Could not find any resources appropriate for the specified culture (or the
neutral culture) in the given assembly. Make sure
\"RlinkPMBAPIRes.MyResources.resources\" was correctly embedded or linked
into assembly \"RlinkPMBAPIRes\".\r\nbaseName: RlinkPMBAPIRes.MyResources
locationInfo: <null> resource file name:
RlinkPMBAPIRes.MyResources.resources assembly: RlinkPMBAPIRes,
Version=1.0.1916.27881, Culture=neutral, PublicKeyToken=null" string
Could you please tell me what is the problem here. Is it trying to look the
resource in some other directory.?

Thanks
Ajoy


Nov 17 '05 #1
0 6124

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

Similar topics

1
by: Derick Smith | last post by:
Hi! I am just starting to use .NET and need some help! If I create my own DLL for String resouces using this command: C:\WINNT\MICROS~1.NET\Framework\v1.1.4322\Al /t:lib...
3
by: Craig | last post by:
Hi I'm creating a web control whereby I use a resource file to store strings for property descriptions and so forth. The namespace for the control is: Unsd.Web.WebControls all classes in the...
0
by: Rob Dob | last post by:
Hi, I have a VS2003 C# asp.net project that has been converted into a VS2005 project. Everything seemed to work well until I make a modification to anything within the Component Designer...
2
by: Eric Falsken | last post by:
Eric Falsken <eric@db4o.com> wrote on 04 Dec 2005: > craigkenisston@hotmail.com wrote on 19 Nov 2005: > >> I'm working in the migration of an asp.net application in 1.1 to 2.0. >> I'm new to...
1
by: ddelaney | last post by:
I've seen this posted before in many places, but have yet to find a real fix. I have a web application on dev server right now, and randomly, hours or days, it returns the expception posted below. ...
2
by: antonyliu2002 | last post by:
I am testing AJAX. I've downloaded the AJAX Extension and the CTP December package and installed on BOTH my development machine and the production server. Then I created a very very simple web...
0
by: S.Tedeschi | last post by:
Hi all, as already posted, I'm converting an app and I'm facing tons of cons. One of them is my .aspx files can be used by ComponentDesigner to load, e.g., SelectCommands' CommandText, but when...
2
by: =?Utf-8?B?c2FtMDFt?= | last post by:
I have a remoting application that was developed on a Windows XP SP2 machine with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it works great. Problem is, when I install the msi...
3
by: EricW | last post by:
Hi, When I run a class I get this message: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "F_E_I_T.Remove.resources" was correctly...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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,...
0
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...
0
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
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
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
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...

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.