Welcome to MSDN Blogs Sign in | Join | Help

Data Sources window is inactive in Design View

On certain machines, after installing Visual Studio 2005, the contents of the Data Sources window disappears when a design surface that allows drag and drop from the Data Sources window is active. For example, the Windows Forms designer, User Control Designer, etc…

The cause of this issue is how VS processes the list of associated controls for each data type in the Data Sources window. When users customize the controls in the Data Sources window the settings are saved in the WinFormControls.xml file in the users application data folder. The version numbers in this file have been changed between beta releases and the RTM release and this mismatch of version numbers is the cause of the disabled Data Sources window. Basically this means if you customized the list in a pre-release version of Visual Studio and then install the released version on the same machine you might run into this problem as the installer for Visual Studio does not overwrite or remove this file during setup.

To fix this you have the following 2 options:

Option 1 fixes the problem but no customization is saved and the Data Sources window returns to its original state just like you installed a fresh product:

1)      Close Visual Studio

2)      Delete <DriveLetter>:\Documents and Settings\<UserName>\Application Data\Microsoft\Visual Studio\8.0\DataBindingSetting\WinFormControls.xml
Note:
For Express versions use:
<DriveLetter>:\Documents and Settings\<UserName>\Application Data\Microsoft\VBExpress\8.0\DataBindingSetting

Or, you can simply search for WinFormControls.xml under <DriveLetter>:\Documents and Settings\<UserName>\Application Data\Microsoft\

Option 2 fixes the problem and attempts to preserve any customizations you applied to the Data Sources window previously:

1)      Close Visual Studio

2)      Open the xml file (<DriveLetter>:\Documents and Settings\<UserName>\Application Data\Microsoft\Visual Studio\8.0\DataBindingSetting\WinFormControls.xml)

Note: see above for other SKU's

3)      Check if the version numbers of System.Windows.Forms are 2.0.0.0 (this is the RTM version)

4)      If the version number is not 2.0.0.0 replace the version number with 2.0.0.0

5)      If the version number is 2.0.0.0 delete the file (unfortunately prior settings will be lost, sorry…)

We apologize for any inconvenience this may be causing developers who have installed previous Betas or CTP versions of Visual Studio to help provide early feedback of the product. 

Published Friday, November 18, 2005 9:30 PM by SmartClientData
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Data Sources window is inactive in Design View

Tuesday, November 22, 2005 11:43 AM by trapemiya
it's very helpful! I have saved a lot of time.

# re: Data Sources window is inactive in Design View

Wednesday, December 14, 2005 10:07 AM by Diego
This is interesting as I have been missing the data sources window for some time (I think from before installing RTM). But in my computer the "Application Data\Microsoft\Visual Studio" folder is called "Application Data\Microsoft\VisualStudio" (without the space between the words Visual and Studio). And there is no DataBindingSetting folder, so no WinFormControls.xml file either. What should I do?

# re: Data Sources window is inactive in Design View

Thursday, December 15, 2005 9:07 PM by trialsin
My file early have de version 2.0.0.0, so I deleted and this working now.
Thank you.

# re: Data Sources window is inactive in Design View

Sunday, December 18, 2005 1:10 AM by Al Dean
Very HELPFUL!! I am disappointed that I had to dig several days on MSDN and have yet to find it, thanks to Google on this post!!

# re: Data Sources window is inactive in Design View

Wednesday, January 11, 2006 5:55 PM by Jeff
I found the .xml file and deleted it. However, I am still unable to get my datasources window to populate!!!

Any ideas?

# re: Data Sources window is inactive in Design View

Friday, January 13, 2006 3:37 PM by Rudy McDaniel
Yes, this helped me too. I was pulling my hair out over this issue. Thank you so much for posting this fix!

# re: Data Sources window is inactive in Design View

Thursday, February 02, 2006 12:54 AM by vico
Thanks!! All resolved!!

# VS2005 フォームデザイナで、データソースウインドウに何も表示されない時の対処方法

Wednesday, February 08, 2006 8:56 PM by The road to C# master trapemiya
it's very helpful! I have saved a lot of time.

# re: Data Sources window is inactive in Design View

Tuesday, February 21, 2006 9:27 AM by Indrek
I had the same problem and deleting the xml file did not fix the problem.
I got my Data Sources back after excluding a dataset which was upgraded from VS2003. This dataset was for storing in-memory data (without table adapters and sql server). Maybe that's why it messed up Data Sources.

Hope this helps.

# Visual Studio 2005 and .NET Framework 2.0 Setup Troubleshooting Guide

Wednesday, March 01, 2006 7:35 PM by Aaron Stebner's WebLog
Where to get Visual Studio 2005 and the .NET Framework 2.0

Where to download the .NET Framework 2.0...

# Visual Studio 2005 and .NET Framework 2.0 Setup Troubleshooting Guide

Friday, April 13, 2007 12:33 PM by Aaron Stebner's WebLog

Where to get Visual Studio 2005 and the .NET Framework 2.0 Where to download the .NET Framework 2.0 redistributable

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker