Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > Help --- something's gone wrong with resources
 

Help --- something's gone wrong with resources

I've got a little project I'm working on . Everything was working fine, and I'd been working on this for about a week.

Then I got the bright idea of trying to see if I could use 'resources'. I played around with it for awhile, decided I wanted to go a different way, and tried to pull out what I did from the project.

Now, whenever I try to compile the project, I get a "MissingManifestResourceException". The first time I got the exception, it was tied to a little form that just gives options like New, Load, Exit. So, I just made a new version of the form. For some reason, that new form works, but whenever it tries to call up the next form, now it complains that a .resources file is not there for that form.

So, something I've done seems to have convinced vs that I now need to add a .resources file to every form. Either that, or redo a weeks work of recreating each form from scratch. It wasn't that way when I started the day, so its something I did in trying to understand resources. But I don't have a clue as to what it might be.

Any ideas on what I did to cause this error?
Any ideas on what I can do to fix it to recover this project?

COMarc420  Monday, November 30, 2009 11:49 PM
Still don't know what caused this, and it would be interesting to know someday.

But I did find how to fix it.

In VS, Solution Explorer, dive down into the Obj/bin/debug files. This is where I found the .resource files that I had never seen before and didn't know that they exist. When I clicked on the one that related to may main form that I don't want to redo, I said 'Exclude from project"

No more exceptions with this message.

Note: the help for this exception is worthless. I've seen several posts around the forums of people struggling with this message. None of them seem to provide any useful answers. Certainly none helped me understand this. So, I put this up here in the hopes that it helps some other poor soul struggling with a strange exception where neither the exception name nor the help seem to tell you even a hint about what to do about it.

Well, my project compiles again after nearly giving me a heart attack that I'd lost almost everything. And what I learned was to stay the heck away from resources.
COMarc420  Tuesday, December 01, 2009 1:34 AM
G'day COMark420,

I know the feeling, but I cannot help you solve the matter. But I can advise that, when exploring a new tack, I now always store the working one by copying the whole folder intact into a reserve folder. I've got more projects in the reserve folder that anywhere else, since I lost a large C++ image-processing project, with over 30 frames on the main form, when the form designer failed me (or I in some still unknown way failed it)

I'm glad you got your wok back safely. I never got that feeling, but regularly get the oter and the relief of a fall-back reserve.

Regards
Ron
Regnwald  Tuesday, December 01, 2009 3:50 AM
For this is the product Source Safe and Team Server Edition

http://msdn.microsoft.com/en-us/library/3h0544kx(VS.80).aspx

Otherwise take the advice from Regnwald,


Success
Cor
Cor Ligthert  Tuesday, December 01, 2009 7:37 AM

You can use google to search for other answers

Custom Search

More Threads

• "user32" SendMessage (....)
• Function for Time Help!!!!
• Using an External DLL
• Oh ____! Apparently byVal doesn't pertain to arguments of type Object?
• Add Active Directory User as Local Admin
• Count lines in a textbox
• VB Application Startup Failure: Type Initializer Exception
• Click on a button in the browser to open another new window
• GDI+ Run OnPaint on separate thread.
• Cound not start the service on Local Computer