Corrupt .resources file.

  • Thread starter Thread starter GS
  • Start date Start date
G

GS

How do I fix this corrupt resource file header problem?
Corrupt .resources file. Got an unexpected EndOfStreamException while trying
to read the ResourceReader header.

When I open up properties, resources, they looked ok to me. I even click on
each item and they open up in pain just fine.


what can I do?
 
How do I fix this corrupt resource file header problem?
Corrupt .resources file. Got an unexpected EndOfStreamException while trying
to read the ResourceReader header.

When I open up properties, resources, they looked ok to me. I even click on
each item and they open up in pain just fine.

If Visual Studio understands the file just fine, but your own code
fails to read it properly, that strongly suggests your own code is
wrong.

What exactly could be wrong I can't say. Your best bet for getting
anyone to offer useful advice will be to post a code sample showing how
you are trying to read the file. All we can say for sure based on what
you've written so far is that you're reading too much data during the
"while trying to read the ResourceReader header" operation. You may be
misusing the ResourceReader class, or there may be some other issue.

Hard to say without any specific information.

Pete
 
the error occured :
this.pictureBoxReloadRe.Image =
global::RegexParse.Properties.Resources.ReloadRe21x21;


the above used to work for loading Gif files for button
 
the error occured :
this.pictureBoxReloadRe.Image =
global::RegexParse.Properties.Resources.ReloadRe21x21;

the above used to work for loading Gif files for button

Well, on the assumption that the above is simply trying to read data
from your project's Resources section, and the resource itself is
named ReloadRe21x21, then all I can suggest is that the resource it
itself corrupt.

Have you tried just deleting the resource from the project and adding it again?

Pete
 
thanks. I have tried that and seems to fix the problem.

Storage though that everything looked OK from VStudio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top