Windows Forms Designer Fails to Load

I'm having a big problem with Visual Studio Express. The designer won't load. I used to get this message:

One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.

No data is available.

Hide

at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.GetValueNames()
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes)
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.GetRegisteredPanes(String extension)
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.CreateWindowPane(DesignSurface surface)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.DeferrableWindowPaneProviderService.CreateWindowPane(DesignSurface surface)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.DeferrableWindowPaneProviderService.DeferredWindowPane.EnsurePane()
then I did this:

"Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\ViewAdapters]
"Microsoft.VisualStudio.OLE.Interop.IOleDocument, Microsoft.VisualStudio.OLE.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"="Microsoft.VisualStudio.Design.PassthroughWindowPane, Microsoft.VisualStudio.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
"System.Windows.Forms.Control, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"="Microsoft.VisualStudio.Windows.Forms.WinformsWindowPane, Microsoft.VisualStudio.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

Check for the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\ViewAdapters, and see if it contains the two non default values above. If you're missing those or they have different values, you can try clearing out any existing ViewAdapaters key in that path and importing the key I put up there (copy the yellow text above, paste it into notepad, save the file with a .reg extension, and run it)."

which changed the message to this:

One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.

No more data is available.
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.GetValueNames()
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes)
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.GetRegisteredPanes(String extension)
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.CreateWindowPane(DesignSurface surface)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.DeferrableWindowPaneProviderService.CreateWindowPane(DesignSurface surface)
at Microsoft.VisualStudio.Design.VSDesignSurface.Microsoft.VisualStudio.Designer.Interfaces.IVSMDDesigner.get_View()

I still can't open the designer, which is really bothering me because I need to use it, and I can't reformat my hard drive (too much presious data and nowhere to back it up)

Please help.




Answer this question

Windows Forms Designer Fails to Load

  • Ron L

    To answer Weston's question - on my machine, it happens on any project i open.. new or old.

    The following version is installed on my machine:

    Microsoft Visual Studio 2005
    Version 8.0.50727.42 (RTM.050727-4200)
    Microsoft .NET Framework
    Version 2.0.50727



  • Are Haugsdal

    This is the same bug as reported here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=789118&SiteID=1. There are some steps in there if you want to try to see if they help.

    We were unable to repro this problem on our side. Did you install anything recently that could have messed with the installation



  • David d48701

    I dont think i installed anything recently but yes.. I noticed that i started seeing this error when I had both VS 2003 and VS 2005 on my machine. I was working on a project in VS 2003 for a few days and that involved establishing a connection to database as well. After that project I had to switch to the other project in VS 2005 and forms didnot load.."

    I tried entring the 2 reg entries mentioned in the other forum.. but it allowed me to enter only one of the keys at a time. When i tried entering the other one manually it said - "Key already exists" though i cud not see it!!

    So, choosing to have the Second key in there (System.Windows.Forms.Control, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"="Microsoft.VisualStudio.Windows.Forms.WinformsWindowPane, Microsoft.VisualStudio.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) only... had my forms appear back again and I was happy until I had to deal with the OleDb stuff. Now, I can no longer establish db connectivity.. and configure dataAdapters.

    Please let me know if u need any other information...

    I wud appreciate a quick response.

    Thanks!



  • Thomas S. Andersen

    Does this happen when trying to create a new proejct or just when you are opening an existing project

    What Express edition are you using



  • kewpcg

    Were you able to successfully add the 2 registry entries I mean - after running the .reg file, did u check if both the entries were successfully entered in there Because I have the same problem and when I run this reg file, it does not let me enter the second registry key.

    I have a way around this problem - if you follow the following you will be able to view forms in designer, but you will lose the ability to configure dataAdapters etc. So if you r using DataSets, DataAdapters in your app, please dont follow these steps else try this:

    1) Delete the ViewAdapters Reg entry altogether.

    2) Manually enter a key in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0 and rename this as ViewAdapters

    3) Now manually add a new string value in this new key System.Windows.Forms.Control, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

    Assign its value as Microsoft.VisualStudio.Windows.Forms.WinformsWindowPane, Microsoft.VisualStudio.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

    You should be able to load forms in designer now. Please note that u might not be able to configure dataAdapters now..

    Does any one have any remedy to this issue because I need to load forms in designer and use dataSets and dataAdapters as well.. please help!

    Thanks



  • psc161

    Could you try created a new user on your computer and see if the Designer works if that user
  • Buhari

    I'm going to enter this as a bug and see if I can get someone to take a look at this.

  • Windows Forms Designer Fails to Load