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

March 24, 2011 by · Leave a Comment 

Recently I was installing the SQL Server 2008 Express Edition in my system. I got the following error:

Error Message:
SQL Server Setup has encountered the following error:
Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

After spending quiet amount of time in the net, I could not find any solution.

After a number of attempts, I got the solution.

The solution is:
Have the focus of the SQL Server installation window always. Ie., the window of the SQL Server Installation should always be active until it is complete.

This solution worked for me. Hope this helps you too.
Do let me know if this doesn’t work for you.