Error: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

AutomaticUpdater 2.6.18.4

I have been getting this error while moving from the form with the automatic updater control to another, even though the control is set to enabled = False.This has not happened before.In trying solving the problem, I have tried to create the control at runtime instead of setting enabled = true.This is what Ive done: automaticUpdater1 = New wyDay.Controls.AutomaticUpdater() Me.Controls.Add(automaticUpdater1) AutomaticUpdater1.ForceCheckForUpdate()

At ForceCheckForUpdate Im getting this message: "You must call the Initialize() function before you can use any other functions."

Setting the control to Enabled = False has very little effect on the AutomaticUpdater. A bulk of the code still runs, however the UI is disabled. So don't use that property.

AutomaticUpdater1.ForceCheckForUpdate()

Don't call ForceCheckForUPdate() in the contructor of your form. Also, don't dynamically create the AutomaticUpdater -- just create it at design time.

Error: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

This has been solved in the next version of the AutomaticUpdater. You can download the latest trunk of the AutomaticUpdater (r116 is best -- if you don't have SVN you can download the source using this tool).

Error: Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

This has been solved in the next version of the AutomaticUpdater. You can download the latest trunk of the AutomaticUpdater (r116 is best -- if you don't have SVN you can download the source using this tool).

I dont get why I need svn or the source of the controller.Isnt there a link to download the latest version of AutomaticUpdater?

We haven't released it yet. Hence downloading and building from source.

We haven't released it yet. Hence downloading and building from source.

Ok, Ive opened the latest trunk.Tried to build the solution and got the following message:

Error 1 Cryptographic failure while signing assembly 'D:\AutomaticUpdater\Control\obj\Debug\AutomaticUpdater.dll' -- 'Error reading key file 'd:\AutomaticUpdater\Control\au.signkey.snk' -- The system cannot find the file specified. ' AutomaticUpdater

Seems that au.signkey.snk is there but has a question mark next to it.

How do I proceed from here?

BTW, my version is AutomaticUpdater 2.6.18.4 and it looks the same as the source version. Are you sure its a newer version than mine?

Thanks!

In the AutomaticUpdater project. Click Project -> Properties, then go to the signing panel. Create a new "strong name key file" named "au.signkey.snk".

BTW, my version is AutomaticUpdater 2.6.18.4 and it looks the same as the source version. Are you sure its a newer version than mine?

Yes. We haven't bumped the version number yet. The code is most certainly different.

OK, I have added the file, managed to build and got my AutomaticUpdater.dllProblem is, when I try to add the dll to my toolbox, I get the following message:

there was an error loading types from assembly.'C:\AutomaticUpdater.dll' 'Request Failed'.

How do I proceed from here?

Thanks again.

Here, just use this: http://wyday.com/files/AutomaticUpdater.delete.on.12-26.2012.zip.

It's the latest version from SVN.

Thanks a lot!