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

Corrupt .resources file.

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?
Oct 29 '07 #1
4 6705
On 2007-10-28 23:48:16 -0700, "GS"
<gs**********************@msnews.Nomail.comsaid:
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

Oct 29 '07 #2
GS
the error occured :
this.pictureBoxReloadRe.Image =
global::RegexParse.Properties.Resources.ReloadRe21 x21;
the above used to work for loading Gif files for button

"Peter Duniho" <Np*********@NnOwSlPiAnMk.comwrote in message
news:2007102900464075249-NpOeStPeAdM@NnOwSlPiAnMkcom...
On 2007-10-28 23:48:16 -0700, "GS"
<gs**********************@msnews.Nomail.comsaid:
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

Oct 30 '07 #3
On 2007-10-29 23:56:41 -0700, "GS"
<gs**********************@msnews.Nomail.comsaid:
the error occured :
this.pictureBoxReloadRe.Image =
global::RegexParse.Properties.Resources.ReloadRe21 x21;

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

Oct 30 '07 #4
GS
thanks. I have tried that and seems to fix the problem.

Storage though that everything looked OK from VStudio

"Peter Duniho" <Np*********@NnOwSlPiAnMk.comwrote in message
news:2007103010482016807-NpOeStPeAdM@NnOwSlPiAnMkcom...
On 2007-10-29 23:56:41 -0700, "GS"
<gs**********************@msnews.Nomail.comsaid:
the error occured :
this.pictureBoxReloadRe.Image =
global::RegexParse.Properties.Resources.ReloadRe21 x21;

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

Oct 30 '07 #5

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

Similar topics

4
by: Hal Vaughan | last post by:
I am writing out archive files using ZipOutputStream with the following code: aEntry is a global Array of ZipEntries llData is a LinkedList of the data corresponding to the the ZipEntry of the...
5
by: Vinay | last post by:
Hi I have a corrupt word file. I am able to open it with the code given below tr Dim pInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo( pInfo.UseShellExecute...
4
by: SS | last post by:
We built an MSI file to deploy a .net app to the workstation. We created an HTML page that has a link to the MSI file. On a very sporadic basis, when the MSI is run we get the following message:...
9
by: Bungle | last post by:
Hi There, Does anybody know where i might be able to locate a tool/application that can determine whether a Database is corrupt?? Also, can a bad network connection cause a corruption to a...
3
by: Trevor Andrew | last post by:
Hi There, I have a small ASP.NET application under development. I am using VS.NET 2002 (2003 upgrade is on the way) with .NET Framework 1.1. It is hosted on a web hosting service in the US. I am...
4
by: nepdae | last post by:
Well, after reading and hunting all over the web, including here, I still haven't been successful in my attempts to resolve my situation. So, I thought maybe I'd just ask. Here's the situation: ...
17
by: shineofleo | last post by:
Here is the situation: I wrote a VB programm, which stores all the information in a single Access database file using jet engine. It worked well, however one of my customs reported that there was...
3
by: rdemyan via AccessMonster.com | last post by:
One of my users had a corrupt front end that wouldn't open. My app is launched using a launching application (logon app). The logon app has a button for downloading a "fresh" copy of the front...
13
by: Owen Jenkins | last post by:
Following on from an earlier post... I can reliably corrupt a record by doing the following ... Open two separate but identical front ends on one PC each linking to the same back end. Edit a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.