|
| 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
|
|
|
| |
|
| |
| |
| 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]
|
|
|
| |
|
| |
| |
| Srini |
IT works fine. Thanks [Original message clipped]
|
|
|
| |
|
|
| |
|
|
| |
| 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]
|
|
|
| |
|
| |
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|