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.
Comments
Anonymous
November 22, 2005
it's very helpful! I have saved a lot of time.Anonymous
December 14, 2005
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 DataMicrosoftVisual Studio" folder is called "Application DataMicrosoftVisualStudio" (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?Anonymous
December 15, 2005
My file early have de version 2.0.0.0, so I deleted and this working now.
Thank you.Anonymous
December 17, 2005
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!!Anonymous
January 11, 2006
I found the .xml file and deleted it. However, I am still unable to get my datasources window to populate!!!
Any ideas?Anonymous
January 13, 2006
Yes, this helped me too. I was pulling my hair out over this issue. Thank you so much for posting this fix!Anonymous
February 01, 2006
Thanks!! All resolved!!Anonymous
February 08, 2006
it's very helpful! I have saved a lot of time.Anonymous
February 21, 2006
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.Anonymous
March 01, 2006
Where to get Visual Studio 2005 and the .NET Framework 2.0
Where to download the .NET Framework 2.0...Anonymous
April 13, 2007
Where to get Visual Studio 2005 and the .NET Framework 2.0 Where to download the .NET Framework 2.0 redistributableAnonymous
January 20, 2009
PingBack from http://www.hilpers.com/870862-data-source-fenster-in-vb2005Anonymous
June 08, 2009
PingBack from http://hairgrowthproducts.info/story.php?id=4328Anonymous
June 19, 2009
PingBack from http://mydebtconsolidator.info/story.php?id=18875