Designer load error



Ok, spending an hour a day doing the exit VS -> restart VS -> rebuild
project dance is getting REALLY old.

I have a perfectly good user control that I work in for an hour. I close
Visual Studio for whatever reason and start it back up to continue working
on the control only to be greeted with a nice error telling me the designer
can't find the file or assembly suchandsuch.dll.

I am editing a user control (CustomerEdit.cs) that contains another user
control (AddressEdit.cs). The error message references the embedded user
control and says it can't find the file or assembly that I used as the
DataSource on a BindingSource on AddressEdit.

There in fact isn't anything wrong with the references since I did nothing
since the last time it was working perfectly fine and the application will
still run perfectly fine in the debugger - it's just the forms designer
that's choking.

Finding the right magical combination of rebuilding the application in
between exit and restart of Visual Studio eventually does the trick, but as
there's no consistent pattern to that "fix" it literally eats up over an
hour a day. I've had this same error in several other cases. Usually if I
close the form in the designer before exiting VS I avoid this problem, but
even that isn't foolproof.

Am I the only one experiencing this fragility?



.



Relevant Pages

  • Re: Any way to tell if you are in the designer from a static function?
    ... to load Visual Studio itself in the debugger, to do that set the debug ... debug with that startup project. ... I know exactly where the problem is, because the designer actually tells ... the exact file and line number that caused the control to not be able to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Custom UserControl with subcontrols (designer support)
    ... columns collection as is used for the original Columns property. ... control to the listView's Column property hoping that the designer would be ... >> To do that, open your user control in the designer, select all the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to Prevent Flicker (Double-buffering not helping)
    ... I am creating a designer, in fact, although that should have been the easy ... The other is a control application, ... > article on creating a Windows Forms Designer? ... >> window over the entire user control, which then uses the various mouse ...
    (microsoft.public.dotnet.languages.vb)
  • RE: user control - image button only works on second select
    ... So does the test page and usercontrol I sent you works as you expected? ... control, as for the main page and dropdownlist, I don't think there will ... user control - image button only works on second select ... | only working on selecting the button twice. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: UserControl event & method call sequence
    ... a usercontrol on an aspx page, following are the order of events. ... It does not always use this user control ... >>> I have an aspx page that loads an ascx user control. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)