Connecting Tech Pros Worldwide Forums | Help | Site Map

Problem with VS2005 windows form when i switch to design mode

teixeira1985@gmail.com
Guest
 
Posts: n/a
#1: Oct 26 '07
Hi ,

Due an unknown cause VS2005 started to show an error when i switch
from code to design in windows forms projects.
I repaired the installation but the same happens.
The error is:

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.
Hide

at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.GetValueNames()
at
Microsoft.VisualStudio.Shell.Design.WindowPaneProv iderService.AppendWindowPanes(RegistryKey
parentKey, ArrayList windowPanes)
at
Microsoft.VisualStudio.Shell.Design.WindowPaneProv iderService.GetRegisteredPanes(String
extension)
at
Microsoft.VisualStudio.Shell.Design.WindowPaneProv iderService.CreateWindowPane(DesignSurface
surface)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.DeferrableWindowPaneProviderService.CreateWindow Pane(DesignSurface
surface)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.DeferrableWindowPaneProviderService.DeferredWind owPane.EnsurePane()

Any help will be greatly appreciated,
Best regards,
Tiago Teixeira


Brendon Bezuidenhout
Guest
 
Posts: n/a
#2: Oct 28 '07

re: Problem with VS2005 windows form when i switch to design mode


*EEK!!!!* The White window of death *shudder*

Right unfortunately this one is a pain to track down and it can be several
different things. From what I can see in your post it LOOKS like (assuming
here *grin*) you have custom controls on the form you are having issues
with. I have the same problem at work where several of our custom controls
cause the forms to die a horrible white death...

IF you do have custom controls on the form:
a) Are they in the same project or a different project in the same solution?
b) On each build are the references to the custom controls (if (a==true))
set to static version numbers or do they increment?

For some reason (still trying to figure it out even after SP1 for VS2005)
due to custom controls having different assembly versions it struggles to
load them correctly - or so I've found. Say for example you have v1.1.1.1 as
your last "stable" build and could see the form and next build v1.1.1.2 the
solution still "thinks" the old 1.1.1.1 is valid. Also you will find that
the .dll that houses the controls is incremented in version even if there
were no changes to the code. Clean solution and rebuild having CLOSED the
form's design in VS... Should work - If not scream and I'll dig around my
favorites and send you all I have on the issue...

HTH
Brendon

<teixeira1985@gmail.comwrote in message
news:1193399517.553332.186870@50g2000hsm.googlegro ups.com...
Quote:
Hi ,
>
Due an unknown cause VS2005 started to show an error when i switch
from code to design in windows forms projects.
I repaired the installation but the same happens.
The error is:
>
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.
Hide
>
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.GetValueNames()
at
Microsoft.VisualStudio.Shell.Design.WindowPaneProv iderService.AppendWindowPanes(RegistryKey
parentKey, ArrayList windowPanes)
at
Microsoft.VisualStudio.Shell.Design.WindowPaneProv iderService.GetRegisteredPanes(String
extension)
at
Microsoft.VisualStudio.Shell.Design.WindowPaneProv iderService.CreateWindowPane(DesignSurface
surface)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.DeferrableWindowPaneProviderService.CreateWindow Pane(DesignSurface
surface)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.DeferrableWindowPaneProviderService.DeferredWind owPane.EnsurePane()
>
Any help will be greatly appreciated,
Best regards,
Tiago Teixeira
>
teixeira1985@gmail.com
Guest
 
Posts: n/a
#3: Oct 29 '07

re: Problem with VS2005 windows form when i switch to design mode


Thanks for the help.

I've no custom controls.
The same happens when i open a new blank windows form solution.
I've already repaired the VS2005 and I also have the latest SP for it.
I think i'll fix this uninstalling and re-installing all, i think it
will be quicker.

Anyway, let me thank you for the all the info you put here to me.

Best regards,
Tiago Teixeira

Closed Thread