Results 1 to 9 of 9

Thread: [RESOLVED] HELP! Form Resource files gone

  1. #1
    Lively Member
    Join Date
    Mar 06
    Posts
    64

    Resolved [RESOLVED] HELP! Form Resource files gone

    After a few hours of happy programming I decided to start debugging and see if everything worked.
    What I got was 11 errors all on the same subject:

    Error 1 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.Promote.resources': System Error &H80070002& Dragonpit
    Error 2 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.Resources.resources': System Error &H80070002& Dragonpit
    Error 3 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.Resurec.resources': System Error &H80070002& Dragonpit
    Error 4 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.Rules.resources': System Error &H80070002& Dragonpit
    Error 5 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.RuleSpec.resources': System Error &H80070002& Dragonpit
    Error 6 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.SelEvil.resources': System Error &H80070002& Dragonpit
    Error 7 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.SelGood.resources': System Error &H80070002& Dragonpit
    Error 8 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.Setup.resources': System Error &H80070002& Dragonpit
    Error 9 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.SpellCard.resources': System Error &H80070002& Dragonpit
    Error 10 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.Status.resources': System Error &H80070002& Dragonpit
    Error 11 Unable to open file 'C:\DragonPit\Projects\Dragonpit\Dragonpit\obj\Release\Dragonpit.Training.resources': System Error &H80070002& Dragonpit

    These all relate to form names in the application:
    9 other form named .resource files still exist in the directory (named in the errors) but those 11 are missing.

    Questions:
    1) Where did they go ? nb no random deleting has been done or anything else stupid like that.
    2) How do I get them back ?

    Edit:
    Have found copies of the files in bin/debug directory, its still telling me it can't find the Dragonpit.exe file - this file doesn't exist anywhere on the computer.
    Last edited by OgreWookie; Jun 12th, 2012 at 10:57 AM. Reason: Update on situation

  2. #2
    Addicted Member
    Join Date
    Dec 09
    Location
    Arizona
    Posts
    177

    Re: HELP! Form Resource files gone

    Sounds like you might want to look for some file recovery software and see if you can recover them that way. As for the EXE, once you recover the resouce files, that should be recompilabe, but I am sure you know that.
    I have had a similar experience, and, unfortunately, had to start from scratch. After that I started saving templates of my forms so that if I lost one or two, I could go back a get a template and have the form up and running again in no time. Another thing I do, is I have two hard drives, and back up projects on the other hard drive. So far I am pretty benighted when it comes to using a source control program though!

  3. #3
    Lively Member
    Join Date
    Mar 06
    Posts
    64

    Angry Re: HELP! Form Resource files gone

    Having replaced the files from a Backup done 10 days ago all I get now when trying to build/debug is "Build Failed" there are no error messages to tell me why it failed.
    What the hell is going on ?

    What other problems can cause a build to fail beyond coding mistakes?
    Last edited by OgreWookie; Jun 12th, 2012 at 05:47 PM. Reason: extra question

  4. #4
    Lively Member
    Join Date
    Mar 06
    Posts
    64

    Re: HELP! Form Resource files gone

    Quote Originally Posted by skywola View Post
    Sounds like you might want to look for some file recovery software and see if you can recover them that way. As for the EXE, once you recover the resouce files, that should be recompilabe, but I am sure you know that.
    Now that I've copied backed up versions of the missing files into the folder have I now buggered this option? I've never used file recovery software (not had the need until now).

  5. #5
    Addicted Member
    Join Date
    Dec 09
    Location
    Arizona
    Posts
    177

    Re: HELP! Form Resource files gone

    Only way I know to find that out is to try recompiling. Hopefully that does it!

  6. #6
    Lively Member
    Join Date
    Mar 06
    Posts
    64

    Re: HELP! Form Resource files gone

    Sorted thank god.
    Method:
    Replace all missing files from backup - note to all: BACKUP YOUR WORK!
    Close Visual Studio
    Reopen VS
    Load project
    Build

    That final step just will not work unless you shut down and restart the program.

    Latest version of the game will be uploaded shortly if anyone wants a quick play.

  7. #7
    Lively Member
    Join Date
    Mar 06
    Posts
    64

    Re: HELP! Form Resource files gone

    http://www.mediafire.com/?m1w66fgqmtrcxgw

    Dragonpit v104. Needs MS.Net 4 to run but anyone on this forum should have that installed already.

  8. #8
    Angel of Code Niya's Avatar
    Join Date
    Nov 11
    Posts
    3,139

    Re: HELP! Form Resource files gone

    So its resolved then ?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | Create Sortable BindingList(not mine) | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading


    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. -jmcilhinney

  9. #9
    Lively Member
    Join Date
    Mar 06
    Posts
    64

    Re: HELP! Form Resource files gone

    Yes, but I still have no idea why it happened in the first place.
    Any information would be useful as I certainly don't want it happening again.
    Will mark as resolved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •