Multimobile Development: Building Applications for any Smartphone
Corrupt Resource file- For images
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.windowsforms.


Srini
Hi everybody,

When images are placed on screens the images generate an
entry in the resource file to store the image. This
resource file gets corrupt quite easily.

I am not able to open the run the application afterwards.
I get the error resource not found.

Any solution

Regards,

Srini
Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
Hristo Peykov
Hi,

I spent this morning trying to solve the same or very
similar problem.

In my case the problem was that I defined another class
in the same file with the form and put its source BEFORE
the form. Believe me or not when I move the same class
after the form code it worked. :-)

Regards,
Ico

[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
First volume of Multimobile Development nearly ready to go to press
A mention on Developing for the iPhone and Android: The pros and cons
 
    
Srini
IT works fine.
Thanks
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
 
    
Felix Wu(MS)
Hi Srini,

Are you talking the MissingManifestResourceException? This problem can occur when the resource can not be successfully loaded.

Do you have any custom classes defined before the default Form1 class? Since the compiler use the name of the first class as the default resource name for the form.

For example, you can find simular lines in the assembly's manifest (Note: You can check the compiled assemblies using ildasm.exe utility):

.mresource public WindowsApplication1.Form1.resources
{
}

As you can see, "Form1" is from the name of the first class in the code module. If you put another class, "MyClass" for example, before the "Form1" class, the resource
name will be changed to "WindowsApplication1.MyClass.resources". This makes the call:

System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));

fail to locate the resource.

If this is not the case, please explain a little bit more about problem, and I'm glad to look into it.

Regards,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
First chapters of Multimobile Development book now available on Apress Alpha program
iPad
 
 
System.Resources.MissingManifestResourceException
System.Resources.ResourceManager




Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734