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

System.Resources.MissingManifestResourceException

I'm trying to use an ImageComboBox in my app. The control worked fine in a
demo app, but the contructor throws a
System.Resources.MissingManifestResourceException with the text:

"Could not find any resources appropriate for the specified culture (or the
neutral culture) in the given assembly. Make sure
\"TreeViewContainer.resources\" was correctly embedded or linked into
assembly \"ImageComboBox\".\r\nbaseName: TreeViewContainer locationInfo:
TSC.UserInterface.ExtendedComponents.ImageComboBox .TreeViewContainer resource
file name: TreeViewContainer.resources assembly: ImageComboBox,
Version=1.0.2153.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\project\ to solution\project\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 6377


"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.Resources.MissingManifestResourceException with the text:


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

this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resource s.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
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.MyClass.resource", but when it's bugging, the resource file is
named "MyClass.resource". 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
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...
3
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...
7
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...
0
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...
0
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...
2
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...
2
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...
1
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....
0
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...
0
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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: 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...
0
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
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...

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.