Error when including update control in user control

I have dragged the AutomaticUpdater control into my user control in VS designer and the following error came up:

If I include the control in a form directly, then no error occurs. Can this control be included only in a Form directly? That would be a very unfortunate limitation.

---------------------------Microsoft Visual Studio---------------------------Failed to create component 'AutomaticUpdater'. The error message follows:

'System.NullReferenceException: Object reference not set to an instance of an object.

at wyDay.Controls.AutomaticUpdater.set_ContainerForm(Form value)

at wyDay.Controls.AutomaticUpdater.set_Site(ISite value)

at System.ComponentModel.Container.Add(IComponent component, String name)

at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)

at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)

at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType)

at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host)

at System.Drawing.Design.ToolboxItem.CreateComponentsCore(IDesignerHost host, IDictionary defaultValues)

at System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)

at System.Windows.Forms.Design.OleDragDropHandler.CreateTool(ToolboxIte...'---------------------------OK ---------------------------

Can you tell me what user control type you're dragging the AutomaticUpdater to? (I know it's a UserControl, but can you tell me the first base type - e.g. Panel)

The control itself is derived from System.Windows.Forms.UserControl. I was dragging the AutomaticUpdater onto a Panel contained within this user control.

We're working to fix this problem. It's a problem with the underlying design of the AutomaticUpdater control. It depends on a form for several reasons.

Here's a hacky way you can fix this in the mid-time: Add the AutomaticUpdater to your form and then set the control to top most. This way it will still be on the form but it will appear to be part of your user control.

We are working to fix this, though.

When is this expected to be fixed? The workaround is not suitable for us.

We're pushing to get this released with wyBuild 2.5.24. About 2 weeks or so.

Just as a side note to any developers that still look at this thread - this error will pop up in Visual Studio 2010 if one drags the AutomaticUpdater control onto a Service control (not in code view) (.net 4.0).

Your walkthrough at http://wyday.com/wybuild/help/automatic-updates/windows-services-console-apps.php doesn't require that we use the control, but I hadn't looked around for that walkthrough yet and found this thread.

This error still occurs in VS2012 - is there any resolution?

This was fixed long ago. Use the latest version of the AutomaticUpdater. Make sure you install wyBuild downloaded directly from this website. And if you're still getting an error after following the AutomaticUpdater tutorials (and making sure you're using the *right* AutomaticUpdater.dll and not something like the Controls.dll) then tell me exactly what the error says.

Sorry for the delay, here is an image : http://screencast.com/t/BuAiqXKmea6I

I opened up a basic form, added a usercontrol and dropped the AutomaticUpdater on the control and the error message was displayed. I just purchased the the software direct from your website - running: 2.6.18.4

Don't add the AutomaticUpdater to a user control. Add it to your form directly. If you want to make a custom version of the AutomaticUpdater then use our source code