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

We have been hearing that customers installing SQL Server 2008 and SQL Server 2008 August CTP are hitting the following error:

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

This issue is occurring due to .NET behavior on Win7 change that is exposing a bug in how we close UI dialogs. Generally, if you just rerun it won't hit the issue again.

 

Fix information:

This issue will be addressed in SQL Server 2008 R2 and a future SQL Server 2008 CU.

Comments

  • Anonymous
    November 24, 2009
    I had this same error a number of times trying to install SQL Express 2008 x64 on a 2008 R2 64-bit server (VMWare) and I finally got it working doing the following: Start the installation and when it gets to the point where the security window pops up asking you if you authorize the installation to run, open the temp folder.  C:{GUID} and copy that folder (contains setup.exe and supporting files) to your desktop.   Click "OK" on the security dialog and it will probably error.   Once the error dialog goes away just run the setup.exe from the temporary directory on your desktop and it works. Hope this helps someone else. ~Matt Heidenreich

  • Anonymous
    December 12, 2009
    When the security window popped up on my Windows 7 Professional it locked out everything in Windows until I responded to the question so I am unable to locate a C:{GUID} temp directory let alone copy it to my desktop.  Near as I can tell it isn't even created at that point.

  • Anonymous
    December 15, 2009
    Hi, The executable SQLEXPRADV_x64_xxx.exe is a self extracting archive : just uncompress it with any zip compression utility.

  • Anonymous
    December 21, 2009
    I faced the same issue when I was trying to install SQL 2008 64Bit SP1. How I overcome the issue?? Just Right Click the executable SQLEXPRADV_x64_xxx.exe and select open, it will run without any issue.

  • Anonymous
    December 21, 2009
    Sorry - Just Right Click the executable SQLEXPRADV_x64_xxx.exe and select open and RUN.

  • Anonymous
    January 18, 2010
    I experienced the same problem trying to install SQL Server 2008 Developer edition on my Windows 7 x64 laptop. New laptop, fresh install of MSSQL 2008. However my installation started to process after I turned off (UAC) and of course rebooted. Now the installation appears to be stuck at SqlEngineConfigAction_Install_Startup_Cpu64. There does not seem to be a lot of folks who encountered this particular error as the google results were not grand. If anyone has any idea as to why this seems to hang at "SqlEngineConfigAction_Install_Startup_Cpu64" I would appreciate learning about it.

  • Anonymous
    March 23, 2010
    Created c:temp folder and it worked for me!

  • Anonymous
    April 15, 2010
    c:temp worked first time no problem! thanx sheldon!

  • Anonymous
    April 18, 2010
    mark it..  I met same problem when running SQL server 2008 installation after having vs2010 installed.

  • Anonymous
    May 25, 2010
    Hi,  i uncompressed the file and then it ran just fine

  • Anonymous
    May 26, 2010
    Had the same problem when trying to install Management Studio 2008 on Win7 pc. I right clicked SQLmanagementStudioSP1_86_ENU.exe and chose the option 'Run as administrator' and it ran fine with no problems!

  • Anonymous
    May 26, 2010
    I had the very same problem on a machine with win7 professional os. Creating "temp" directory under c: drive did not solve my problem , but "run as administrator" option works fine.Thank you Paballo Mogorosi :)

  • Anonymous
    May 26, 2010
    I had the very same problem on a machine with win7 professional os. Creating "temp" directory under c: drive did not solve my problem , but "run as administrator" option works fine.Thank you Paballo Mogorosi :)

  • Anonymous
    May 31, 2010
    The comment has been removed

  • Anonymous
    June 02, 2010
    I had installled SQL2008express R2 because I wanted the SQLExpress instances (not cool loading test dbs onto production servers). When I went to install SQL2008 full version in order to get BIDS installed, it was hitting this error constantly. Creating the C:temp solved the issue. PS: you must do a NEW installation beside the current Express in order to gain access the the Reporting services/ BIDS versions. What a headache. PS:Using XP SP3 in corp environment

  • Anonymous
    June 18, 2010
    I had the same problem, but all I have to do is just restart, then run as Administrator

  • Anonymous
    July 01, 2010
    created c:/temp and worked fine 10x

  • Anonymous
    July 04, 2010
    Creation of c:temp folder worked for me also. was trying to install SQL 2008 EE x64 on Server 2008 R2. Thanks SheldonCohen !!

  • Anonymous
    July 13, 2010
    Run as Administrator worked for me too, thanks for the great tip.

  • Anonymous
    July 19, 2010
    Had the same issue installing SQL Server 2008 RTM on Windows Server 2003 R2. Trying to install again seemed to work.

  • Anonymous
    July 29, 2010
    I've faced this problem while installing SQL Server 2008 Service Pack 1. After some research I realized that it is a time  synchronization issue on my environment. I fixed this issue and thet brought me success.

  • Anonymous
    August 08, 2010
    I have got the same problem but on Win XP can any one pls suggest a fix....

  • Anonymous
    August 16, 2010
    I repeated installation , it is successful

  • Anonymous
    September 11, 2010
    Installing SQL Server 2008 onto Server 2008 R2. Simply created C:temp as suggested. Problem solved.

  • Anonymous
    September 16, 2010
    Already had C:Temp, error still came up. Temporarly gave all users securiy access to C:Temp and error disappeared. Probably runnig as Administrator would have achieved the same.

  • Anonymous
    October 06, 2010
    creating c:temp solved it on my machine

  • Anonymous
    October 14, 2010
    Well, I faked it out, since all articles I read stipulated SQL2K8 SP1, so I summarily applied SP1 even though I did not have a full SQL2K8 installation (the "C:Program FilesMicrosoft SQL Server" folder(s) were partially there)!! Woiked after that...<doh!>, then reapplied SP1 after the Full install... Hoping this is of help to someone...

  • Anonymous
    October 16, 2010
    I decided to upgrade my instance on m Win7 system from SQL 2008 to 2008 R2 and I received this message. I was able to get by it simply by rerunning the setup again after the inital error.

  • Anonymous
    October 25, 2010
    temporarly disable the antivirus. then the setup will gets executed.

  • Anonymous
    October 26, 2010
    what i did that fixed the problem was to del the folder "MSOCache" in drive C ( you will see the folder after set to - show hidden files and folders" under the folder and serch options. then rerun the setup from the CD and it workes.

  • Anonymous
    November 03, 2010
    Your version of SQL Server 2008 isn't compatible with this version of Windows. A newer version of this software is available for download that solves this problem. support.microsoft.com/.../968382

  • Anonymous
    November 10, 2010
    I've just has same problem with SQL 2008, when i installed on Windows 2008 Standart R2 the error shows up "Invoke or BeginInvoke cannot be called on a control until the window handle has been created.” But it fixed, i just Resintalled my .Net Framework and like pabalo said, i Run the setup.exe as administrator by right click -> Run as Administrator... Regards

  • Anonymous
    November 20, 2010
    Had the same problem; made sure no other instance of setup was running from process explorer and then restarted installation and it worked fine for me. All the best

  • Anonymous
    December 21, 2010
    If you have UAC turned on you have to run the executable as "Administrator"

  • Anonymous
    December 29, 2010
    It's December 2010 and I'm getting the same problem.  Is anyone minding the store?

  • Anonymous
    December 29, 2010
    c:temp solved my problem thanks =)

  • Anonymous
    December 30, 2010
    >temporarly disable the antivirus. then the setup will gets executed. I'm on XP, this worked, thanks murthy.

  • Anonymous
    January 19, 2011
    Thank you soo much PurpliD423, work great!!! =D

  • Anonymous
    February 07, 2011
    install the feature "windows process activation services"

  • Anonymous
    February 10, 2011
    This worked for me, i'm using windows xp, not sure if it has been posted.. After you run the SQLEXPADV....exe and it starts extracting the files, check which folder it is extracting to, open the folder and dbl click the setup.exe file and it will open the installation screen where you can install SQL

  • Anonymous
    February 10, 2011
    continued.....there will be 2 setup installation screens - use the second screen that comes up after all files have been extracted - as the first will fail as it will look for the files which were esctracted and auto deleted. for some reason when you use winzip to unzip the original exe the setup.exe file does not show?? weird!

  • Anonymous
    April 19, 2011
    I got the error message installing SP1 for SQL 2008 x64 on a Win 2008 R2 x64. I reran it, then got the Reboot failed. Took care of that by going to the reg key "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession Manager and remove the PendingFileRename key"

  • Anonymous
    April 25, 2011
    I have the same problem in April, 2011 using latest download. Microsoft is downsizing?

  • Anonymous
    April 26, 2011
    Re run the setup.exe that resolved my issue as mentioned here. To do so, use 7zip or winrar to unzip the SQLEXPR32_x86_ENU.exe If not, when you get the error popup, do not click ok. Go and copy the extracted files from the c:3bdkcnkdnd (temp folder watch out for this newly created folder on your machine) and paste it somewhere then click ok. you will loose c:3bdkcnkdnd but the copy of this folder will still remain. Now click setup.exe from this folder. If you get the error again. Then Click setup.exe again which resolved my issue.

  • Anonymous
    May 03, 2011
    The comment has been removed

  • Anonymous
    May 09, 2011
    Creating c:temp before installation solved the issue!

  • Anonymous
    May 12, 2011
    I had the same issue on a win7 professional os. Creating "temp" directory under c: drive did not solve my problem , but "run as administrator" option works fine.Thank you Paballo Mogorosi.

  • Anonymous
    May 30, 2011
    The comment has been removed

  • Anonymous
    June 03, 2011
    Created c:temp folder and it worked for me!

  • Anonymous
    June 03, 2011
    Got this error while installing SQL 2008 on win XP machine, Created c:temp folder and it worked for me!

  • Anonymous
    June 07, 2011
    i had same problem but i close my all explorer and its worked... i knw its silly but its really worked for me... sometimes windows behaving unexpected.. ;)

  • Anonymous
    July 05, 2011
    I have vm environment . CHP.  windows 2008 r2 standard 64 bit and in am installing sql 2008 r1 developer 64 bit. It worked for me . I created temp. copied software in that temp and then started installation as administrator.

  • Anonymous
    July 11, 2011
    Creating of the c:temp folder solved the issue, thanks

  • Anonymous
    July 16, 2011
    Ritgh Clicked on Setup.exe file and select Run as Administrator. Worked for me then without any issue.

  • Anonymous
    July 22, 2011
    Even though I was logged in as an administrator I got error "Invoke or Begin Invoke can not be called on a control unit until the window handle has been created" while installing SQL Server 2008. Simply I right clicked on Setup.exe selected Run As and then applied adminsitrator user and password. DONE.

  • Anonymous
    July 26, 2011
    It works for me when i running as administrator even though the folder is not under c:/temp.

  • Anonymous
    July 26, 2011
    Oh i forgot to mention...i extracted it into folder and then run the exe file.

  • Anonymous
    September 04, 2011
    Awesome... i didnt expect this can be resolved like this... small trick.. :)

  • Anonymous
    September 12, 2011
    I create a folder C:temp and paste the SQLManagementStudio_x64_ENU.exe into the folder...after this, the installation are be resolved.

  • Anonymous
    September 14, 2011
    C:temp directory creation worked for me.  Installing on server 2008 R2 and running as admin.

  • Anonymous
    October 05, 2011
    after i got the error, i installed the sql server service pack1 and it fixed this issue. please try this fix ,...

  • Anonymous
    October 10, 2011
    just created ctemp and it solved my issue

  • Anonymous
    November 04, 2011
    This solution is for SQLExpress: Right Click on the setup file and run it as administrator.

  • Anonymous
    November 15, 2011
    I was logged into the machine as a Domain Admin and still had to "Run as Administrator" to get this to work.

  • Anonymous
    November 22, 2011
    'Run as administrator' option worked for me. Thanks a lot..!!

  • Anonymous
    November 30, 2011
    C:temp worked thanx sheldon! Great Solution

  • Anonymous
    December 10, 2011
    I try to rerun, and problem was solved... :)

  • Anonymous
    December 13, 2011
    c:temp worked !! simply and great solution!!! thanks!!

  • Anonymous
    February 04, 2012
    So, the correct answer should be: "Since it's exposing a bug in how we close UI dialogs, that bug will be fixed." That's the answer I would expect, not "please keep trying." A

  • Anonymous
    March 21, 2012
    Instead of Invoke, I did BeginInvoke and it worked for me :)

  • Anonymous
    March 22, 2012
    Right Click on the setup file and run it as administrator. worked for me when installing enterprise edition, although my server is windows 2008 R2. If the issue is occurring due to .NET behavior on Win7 I'm wondering why it failed on windows 2008R2.

  • Anonymous
    March 31, 2012
    This bug in the installer UI (not like it's a core function of SQL Server with ramifications or anything) was known to Microsoft in 2009. I downloaded SQL Server 2008 Express last week, it the bug still exists!! Shame on you Microsoft.

  • Anonymous
    July 09, 2012
    The solution is to deactivate UAC for user control Settings, and then reboot the server. That worked for me

  • Anonymous
    July 15, 2012
    i have installing this  on windows xp  first i have installed framework 3.5 service pack 1 and then  i have installed this....still i m getting this type of error so what is the solution?

  • Anonymous
    August 31, 2012
    try running a few many times the setup it will work definately

  • Anonymous
    October 11, 2012
    Matt- same setup as yours and same problem. SQL2008Express-x64/W2K8R2-x64/VMware while skeptical, I tried your solution above  and it worked !!

  • Anonymous
    October 16, 2012
    The temp folder worked for me.  Thanks.

  • Anonymous
    February 10, 2013
    It shouldn't be this hard to install. Meanwhile, created c:temp and ran the executable as an administrator.. i.e. right click run as an administrator and it worked.

  • Anonymous
    May 16, 2013
    Just a right click > Open worked for me. Run as admin failed multiple time. Thanks guys.

  • Anonymous
    June 25, 2013
    I had to delete the C:MSOCache folder to get it working

  • Anonymous
    July 17, 2013
    The same issue occurs for me too. when i check accidentally. My IE has very older version. After upgrading to the new version and try running the setup again. Issue got resolved.  

  • Anonymous
    October 03, 2013
    Created temp folder in C: drive and installation progressed further.

  • Anonymous
    October 06, 2013
    Creating c:temp resolved my issue also installing SQL 2008 Enterprise on SQL 2008 R2 Datacenter OS

  • Anonymous
    January 08, 2014
    Create temp folder on C drive. its worked form me. Thanks

  • Anonymous
    February 02, 2014
    Just copy the installer on the desktop , its worked for me

  • Anonymous
    May 29, 2014
    It was as Simple as it is. I just right clicked the setup and ran as a Administrator and it worked and installed the SQL SP1 for me.

  • Anonymous
    June 19, 2014
    Creating c:temp resolved my issue. Thank you

  • Anonymous
    July 31, 2014
    es cierto corranlo como adninistrador click derecho  ejecutar como admoinistrador funciona

  • Anonymous
    October 15, 2014
    Had same problem restarted the system and it work fine

  • Anonymous
    November 21, 2014
    just create C:TEMP folder and that's the trick :)

  • Anonymous
    January 08, 2015
    got that error. minimizing all other windows except the SQL setup window worked for me.......and believe me i don't know why

  • Anonymous
    February 04, 2015
    The comment has been removed

  • Anonymous
    March 19, 2015
    Install WINRAR. right click on the file. then extract them in some folder then install the setup file with the admin rights. it will work fine.

  • Anonymous
    April 02, 2015
    After copied the GUID contain to desktop its work fine for me...Thanks

  • Anonymous
    August 06, 2015
    Run as Administrator works fine :-)

  • Anonymous
    December 07, 2015
    Right click and Run as Administrator