473,549 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Resource s.MissingManife stResourceExcep tion

I'm trying to use an ImageComboBox in my app. The control worked fine in a
demo app, but the contructor throws a
System.Resource s.MissingManife stResourceExcep tion with the text:

"Could not find any resources appropriate for the specified culture (or the
neutral culture) in the given assembly. Make sure
\"TreeViewConta iner.resources\ " was correctly embedded or linked into
assembly \"ImageComboBox \".\r\nbaseName : TreeViewContain er locationInfo:
TSC.UserInterfa ce.ExtendedComp onents.ImageCom boBox.TreeViewC ontainer resource
file name: TreeViewContain er.resources assembly: ImageComboBox,
Version=1.0.215 3.16846, Culture=neutral , PublicKeyToken= null"

I commented out the few lines where I was changing the culture to geta
different default timestamp format, and am using nuetral culture exclusively
throughout my app so I'm not sure what the problem is.

With experimentation it seems that the moving of the source from
solution\projec t\ to solution\projec t\src\ or the changing of the namespace
from the provided default to one fitting our apps hierarchy will cause the
exception to be thrown.

Custom control:
http://www.codeproject.com/cs/miscct...sp#xx1245940xx

Nov 28 '05 #1
2 6400


"Dan Neely" wrote:
I'm trying to use an ImageComboBox in my app. The control worked fine in a
demo app, but the contructor throws a
System.Resource s.MissingManife stResourceExcep tion with the text:


More info. The exception is being thrown while attempting to load the image
list in InitializeCompo nents() The second line of the codeblock is
exceptional.

this.imageList1 .ImageSize = new System.Drawing. Size(16, 16);
this.imageList1 .ImageStream =
((System.Window s.Forms.ImageLi stStreamer)(res ources.GetObjec t("imageList1.I mageStream")));
this.imageList1 .TransparentCol or = System.Drawing. Color.Transpare nt;
Nov 28 '05 #2
Hi,

I'm having the same problem (but in VB.NET).

I studied the problem a little bit further. For some reason, the .resource
files that get generated / embedded in the assembly have a wrong name. Also,
the problem occurs only for some projects. I have several projects that work
just fine, but one problematic class library. I tried creating the project
again from scratch using the existing source code files - no luck.

If you use reflector and check your resources, you should see
"Namespace.MyCl ass.resource", but when it's bugging, the resource file is
named "MyClass.resour ce". The same thing can be seen from the obj folder
under the project folder.

How does the VS.NET2005 determine the names of the resource files? I found
this:

http://support.microsoft.com/default...;EN-US;Q318603

but it discusses VS.NET2003 and none of my code files have anything between
the namespace and the class declaration. And my VS.NET2003 is clearly
different from the one discussed in the workaround...

- Product review next week...
Jan 24 '06 #3

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

Similar topics

1
4412
by: DelboyJay | last post by:
I have found a strange resource problem, but luckily I have also found the solution which was not obvious from the runtime exception. I really think that the compiler should pick up this problem and fix it. What do you people think? Try the following: 1. Create a new c# windows application called MyTestApp 2. Create a notifyIcon on the form...
3
12625
by: Jesse | last post by:
Hi together, I've a problem with compiling an application with a build-Script and run it after. Several resource-files I compile with resgen.exe and put the files into a folders of the language. (en\*.resources, en-US\*.resources ...) With al.exe I generating several dlls with the format applicationname.resource.dll (in every...
7
1748
by: Ken Allen | last post by:
OK, for a number of reasons I have needed to begin experimenting with resources sooner than I had planned (I had avoided it for now). Step 1: I built the 'reseditor' application that is in the SDK sub-directory, as instructed by the MSDN. Step 2: I used the 'reseditor' to create a file named "MyResources.resources" that contains only some...
0
1485
by: Ian | last post by:
Hi there, Well I managed to compile by satellite dll's but still can't get it to work. It keeps throwing the following error. (see below) My code is ok I think but there must be something wrong, I have compiled a satellite dll and placed it in the es which is for spain under the bin. I have also include a MyResources.resx into the...
0
1196
by: Gene | last post by:
I have a Windows Form control that I have embedded in an ASP.NET page. I now have the need to catch an event from the control on the webpage. After researching the situation I found that this is the way to expose events. I added the following code to my class. Imports System.IO Imports Assetta.ColumnStyles Imports...
2
1760
by: Aeryn | last post by:
I have a windows solutions containing three forms. All works fine until I customize a form's Icon property. The icon displays fine in the IDE but if I try to run the application it throws "System.Resources.MissingManifestResourceException" before the main from is displayed. I've looked in the corresponding resx file and there is an entry for the...
2
1851
by: bob | last post by:
Hi, I am having trouble with Resources of a windows app. If I understand correctly. 1) New C# Windows app. Namespace 'TestResources' 2) Edit default Resources file, set String1 value to say "MyApp" 3) Put the following code in ctor after InitializeComponent ResourceManager rm = new ResourceManager("Resources",...
1
3175
by: Franklin M. Gauer III | last post by:
I create a simple DATAADAPTER in a webservice project. It creates the UPDATE, INSERT, DELETE commands for me - no problem. In vS2005 it creates these commands as RESOURCES in the RESX file (i.e. strings). The problem is whenever I try to test the webservice I get: System.Resources.MissingManifestResourceException: Could not find any...
0
1871
by: Prashant M | last post by:
iam generating am exe from o/p of the c# application. I mean generating seperate exe dynamically from an exe of one application. suppose o/p of an exe generated for application1 is a form1. then when i click a button on form1 which was generated by tht original exe i should get another exe generated. Now iam able to that using compiler...
0
1579
by: Prashant M | last post by:
iam generating am exe from o/p of the c# application. I mean generating seperate exe dynamically from an exe of one application. suppose o/p of an exe generated for application1 is a form1. then when i click a button on form1 which was generated by tht original exe i should get another exe generated. Now iam able to that using compiler...
0
7554
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...
0
7480
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...
0
7751
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. ...
0
7992
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...
1
7511
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5396
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...
0
5119
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...
0
3509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1973
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

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.