Results 1 to 5 of 5

Thread: The base class 'Object' could not be loaded

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2011
    Posts
    152

    The base class 'Object' could not be loaded

    Well, this error is not anything I want to see:

    The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:

    frmSingleRecord --- The base class 'Object' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.
    I'm in the process of converting a project from SDI to MDI and something seems to have gone terribly wrong with one of my forms in the process. Google suggests that this is actually a Visual Studio bug; all I can tell is that closing, reopening, and rebuilding the project doesn't make it go away. Any help here?

  2. #2
    Fanatic Member
    Join Date
    Feb 2013
    Posts
    985

    Re: The base class 'Object' could not be loaded

    Hi,

    i've never really heard of any fixes for this type of problem, its happened to me a few times.
    there are some long winded work arounds.

    -go through the assembly file to find the problem
    -try and load it up without the broken form and just rebuild the form
    -copy paste the code, rebuild the forms in a newproject

    if its more more than 1 project (from the message it maybe)
    be sure to build the ones not dependant on others first
    Yes!!!
    Working from home is so much better than working in an office...
    Nothing can beat the combined stress of getting your work done on time whilst
    1. one toddler keeps pressing your AVR's power button
    2. one baby keeps crying for milk
    3. one child keeps running in and out of the house screaming and shouting
    4. one wife keeps nagging you to stop playing on the pc and do some real work.. house chores
    5. working at 1 O'clock in the morning because nobody is awake at that time
    6. being grossly underpaid for all your hard work


  3. #3
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: The base class 'Object' could not be loaded

    You know when they tell you to back-up everything and you think that some things can't possibly need all that messing about and it'll never happen to you anyway? It just did. I'm afraid this is almost certainly beyond recovery. I don't think it's a bug per se, but either way your references have become so mangled that the designer just can't piece it altogether into a coherent form. There may be a way to untangle them but frankly life is too short!

    If you're lucky then it may still be possible to run the project and even change code but it's probably folly to continue doing that for very long. You really would be better off recreating the forms in a new project and then copying and pasting as much code as is salvageable before casting the current project to outer darkness (trying to keep the weeping, wailing and gnashing teeth to a healthy minimum.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  4. #4
    Fanatic Member
    Join Date
    Feb 2013
    Posts
    985

    Re: The base class 'Object' could not be loaded

    LOL uhum sry
    thank the lord its not just me.
    Yes!!!
    Working from home is so much better than working in an office...
    Nothing can beat the combined stress of getting your work done on time whilst
    1. one toddler keeps pressing your AVR's power button
    2. one baby keeps crying for milk
    3. one child keeps running in and out of the house screaming and shouting
    4. one wife keeps nagging you to stop playing on the pc and do some real work.. house chores
    5. working at 1 O'clock in the morning because nobody is awake at that time
    6. being grossly underpaid for all your hard work


  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2011
    Posts
    152

    Re: The base class 'Object' could not be loaded

    Well, got a week-old backup. Could be worse.

Posting Permissions

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



Click Here to Expand Forum to Full Width