Results 1 to 9 of 9

Thread: [RESOLVED] [02/03] Error Loading previously valid form

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Resolved [RESOLVED] [02/03] Error Loading previously valid form

    Any ideas? When I double-click on the form to bring it up in the form editor, I get this screen. When I double-click "Object reference not..." on the bottom it takes me to the top of the source page, but that is it. I don't know about the other two errors, but they don't get in the way of compiling and building (warnings, maybe). I have worked on this form many times, and this has never happened. I have no idea how to fix this.

    Thanks
    Last edited by 18experience; Mar 23rd, 2010 at 09:37 AM.
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  2. #2
    Frenzied Member
    Join Date
    Mar 2005
    Location
    Sector 001
    Posts
    1,577

    Re: [02/03] Error Loading previously valid form

    See if FormName.vb and FormName.Designer.vb have the same name.

    Public Class FormName
    Partial Class FormName
    VB 2005, Win Xp Pro sp2

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: [02/03] Error Loading previously valid form

    Do you mean in Explorer?

    Like this:
    Last edited by 18experience; Mar 23rd, 2010 at 09:37 AM.
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  4. #4
    Frenzied Member
    Join Date
    Mar 2005
    Location
    Sector 001
    Posts
    1,577

    Re: [02/03] Error Loading previously valid form

    No, open them with notepad.
    Or in visual studio in the solution explorer first click the 'show all files' button (it is the second from the left), then right click form.designer.vb and select 'view code'.
    VB 2005, Win Xp Pro sp2

  5. #5
    Frenzied Member
    Join Date
    Mar 2005
    Location
    Sector 001
    Posts
    1,577

    Re: [02/03] Error Loading previously valid form

    Disregard all, those instructions are for vb 2005.
    VB 2005, Win Xp Pro sp2

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: [02/03] Error Loading previously valid form

    I was thinking something was amiss.

    Get this, I fixed it, for a moment. I opened an old project and copied the new folders in. Everything was fine. I opened it, closed it, reopened it, erased and retyped a character in each project, rebuilt, closed, opened...really ran it through its paces. Nothing went wrong. Then, I moved the folder on my desktop and renamed it...screwed up again.

    What the hell?
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: [02/03] Error Loading previously valid form

    UPDATE:
    I renamed the folder to its original name, and it is working again. This is bizarre. There must be a string somewhere literally referencing that folder name.
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  8. #8
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: [02/03] Error Loading previously valid form

    Not so bizarre, happens plenty. Are you opening any files or doing anything like that during the loading of the form?
    My usual boring signature: Nothing

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Re: [02/03] Error Loading previously valid form

    I figured it out. Now, I think this is bizarre. I can call the folder whatever I want, and it will still work. However, if there is an ampersand (&) in the name of the folder (which there was) it won't work. I swear, I can change it from "&" to "and" and it will work, and I can change it back and it is hosed again. It could be that one of the "modules" is a custom control that was created where I work, I don't know. Come to think of it, this did happen to me when I was working on something else recently.
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

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