Re: Designer load error



Make sure you are adding references using the "Projects" tab in your
solution.

"Daniel Billingsley" <DanielBillingsley@xxxxxxxxxxxxxxxx> escribió en el
mensaje news:ugWVLRhIHHA.780@xxxxxxxxxxxxxxxxxxxxxxx
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: Basic questions on Classes - before I develop bad habits
    ... If you right click on references in the user control project, ... This will now allow your user control project to have access to your classes ... as there are references to the Class. ...
    (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)
  • Re: Context is not a member of....
    ... assuming that the code behind of the user control i.e ... Enter.ascx.vb resides in the App_Code directory, if I add the CodeFile ... If the code behind of the user control Enter.ascx.vb is placed in some ... TextBoxes are named txt1 & txt2. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP, C#.net
    ... I have a user control. ... OnInit method, ... get the gridview to retain its DataSource.. ...
    (microsoft.public.dotnet.languages.csharp)

Loading