Corrupted Program?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crusson
    New Member
    • Mar 2008
    • 18

    Corrupted Program?

    I installed a third party piece of software designed to add mroe user control to the datagridviewer control and then uninstalled it. I found that it has somehow corrupted a Program I'm working on, so that I got the message "Type 'System.Windows .Forms.Form' is not defined" as I rolled over my "inherits system.windows. form.form" line in the code. This happens in all my clases of this project.

    When I click on design tabs, I see the error "An error occured while loading the document. Fix the error, and ten try loading the document again. The error message follows: The designer could not be shown for this file because none of the classes within it can be designed."

    All othe projects I'm working on work normally. I did a fix install, maybe will completely uninstall and reinstall soon, but haven't yet. I don't really expect that to work since all other projcts work fine. Any other ideas?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Reinstalling .NET should fix the problem. Don't think you need to "uninstall" it first.
    Just to a re-install?

    There might be some sneaky commands you can run tocorrectly re-register your DLLs with the system, but I don't know them and re-installing might be easier.

    Comment

    • crusson
      New Member
      • Mar 2008
      • 18

      #3
      I already did the reinstall. And I don't get the error message in any projects except for one. The reinstall did not fix this problem. Could it be that the project is corrupted somewhere in some file that I don't know about. I know nothing about vb.net project structure and whether there is some master file that holds project properties that may have been corrupted or whether there is a way to troubleshoot such a problem.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        If you go to the project in question, does the references have the correct .NET dll to handle that namespace?

        Comment

        • crusson
          New Member
          • Mar 2008
          • 18

          #5
          I copied the code from the corrupted project into a new one and it works fine. Still stumped about the problem though.

          It appears to be referenced. The suspect code is 'Inherits System.Windows. Forms.Form'

          References includes "System.Windows .Forms"
          This is how all of my other projects are as well.
          Glad I found a workaround, but I cannot distinguish this project (which is broken) from the rest (which work).

          Thanks Plater.

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Heh, well if copy/pasting to a new project worked, I suggest deleting the old one and pushing it from memory.

            Comment

            Working...