Visual Studio 2010 Toolbox controls disabled - asp.net

VS 2010 Toolbox in ASP.NET application development (design mode or source) is not showing all controls (showing HTML and reporting ones), I can see all by right click (Show all) but they are greyed out or inactive.
I have used devnev.exe in VS Command line to reset, have reinstalled VS, have deleted the four hidden files in C:\Users\Ramzan\AppData\Local\Microsoft\VisualStudio\10.0 with extension .tbd, all in vain.
This thing is driving me mad. I have another machine and everything works fine there.
Any help much appreciated.

Don't know if this applies; but I had all controls in the toolbox disabled; you could see them but they were disabled - This in Visual Studio 2010. I right click on a toolbox item then reset toolbox and then they are enabled. Note that you may lose any custom controls you added.

Probably your project is RUNNING. STOP the project then your toolbar items will become enable.

Right click in toolbox and remove check from "SHOW ALL" (if checked)

This was driving me crazy for a pair of days. In the choose items menu my 3rd party controls (CrystalReportsViewer) were checked. Reset toolbox did nothing to enable them. My solution was changing the target framework from .NET Framework 4 Client Profile to the full version .NET Framework 4, seems the client profile which is a subset of the version optimized for client applications does not support my controls or just using references to other 3rd party .dll librarys. This issue should only be for .NET 3.5 and 4.0, Client Profile is discontinued for .NET 4.5

I had the same problem and fixed it now after 3 days:
reset toolbox (not worked)
close and reopen the solution (not worked)
close and reopen the VS (it worked!)

After a long time googling , and mostly all answers - revolving around
Reset Toolbar
Delete .tbd files from C:\Users(your user)\AppData\Local\Microsoft\VisualStudio\11.0
Using devenv.exe /SafeMode & devenv.exe /ResetSettings.
None of them working out for me, making me more sick.
There is something I did which worked and thought it's worth sharing if it helps someone.
I followed all of the above steps, failing . I did Step 1 & 2 with my project (in VS 2012) open and
Right Click on Toolbox > Choose Items > Pressed Reset > ok.
Then again, Right Click on Toolbox > Add Tab > 'gave it some name' > then again
Reset Toolbox
There was some screen flash/flickering - some loading .
And to my surprise the Grey life ( grey controls ) were now available .
Hope this helps someone like me! :)

This worked for me..
How to completely reset the Toolbox and enable Visual Studio to rebuild it from scratch
Close Visual Studio;
Open the "c:\Users\\AppData\Local\Microsoft\VisualStudio\10.0" (Windows 7) folder and remove all the .TBD files;
Run the "regedit" tool. For this click the "Run" item in the Start menu and type "regedit" without quotation marks;
Find the "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstaller_AssemblyFoldersExCache" and "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\ToolboxControlsInstallerCache" keys;
Remove everything from these keys leaving them empty;
Run Visual Studio again and wait until it recreates all items in the Toolbox.

If you are working in WPF application and your Xaml is opened with xml, then make sure you right click and view designer, to get your toolbox controls enabled. (Toolbox controls seem to be active(enabled) only in designer mode). At least that was the case with me.

I know this is old but I just encountered the same problem and here is what I did:
Click on Data Flow
Right click anywhere in that window
Select SSIS Toolbox.
Hope this would help someone.

I worked for me doing the following steps:
Reset Toolbox (Right click in Toolbox->Reset Toolbox)
Add a new tab with any name (Right click in Toolbox->Add Tab)
Reset Toolbox (Right click in Toolbox->Reset Toolbox)

What helped me was changing Project type from Windows Application to Class Library - then (after re-build and reopen...) I got all Controls Enabled.

What did it for me on a custom control was to first remove the control from my base project. Then I had to pull up the custom control as a separate solution by itself and recompile it. I had to make sure that that it was compiled as a class library and not as a windows application. I had to make sure that it was compiled with Framework 4 (same as my base solution) and that all sub controls and projects were also using framework 4. Once I got all of those things sorted out I went back to my base project and added the newly compiled control and sure enough it was enabled.
I hope this helps someone.

I tried all the above mentioned still not working for me. I was working on a windows application after that I have started the web application coding on visual studio after that whenever I was opening the Visual studio this problem was occurring. I am using Visual studio 2015. So what I did, I have right-click inside the toolbox panel and selected 'choose option' then under '.Net framework' components tab I have checked all check boxes for which assembly name is 'System.windows.forms' It is working for me now.

Make sure the currently opened solution platform actually supports controls you need.
My problem was, for example, that I tried to add 'SqlConnection' control to .NET 6.0 application.
Once, I created a '.NET Framework Windows Form' project 'SqlConnection' control became available

Related

Visual Studio C# ASP .NET Web Form Designer Error

Ok, so I start a new project in Visual Studio (currently updated to update 3) and choose ASP.NET Web Application (.NET Framework).
Then I choose the Empty template and to add the folders and core references for Web Forms.
Ok, great, so I add a webform to the project and then find there's a problem:
Design view or even Split view is not available for the new aspx page.
Pressing the buttons 'Design' or 'Split' do nothing and only the source is seen, which also becomes uneditable.
Now I have seen this issue before and searched and searched for an answer. But the only solution was a complete reinstall - this means a few GB download and then hours of the install program doing whatever it does (it is the slowest install for anything on any platform).
This issue seems to occur randomly, and once it occurs, it seems to be permanent, short of a complete reinstall of VS.
Is this a fault in Visual Studio that will never be fixed?
Does someone actually know how to fix this other than a complete reinstall?
Please do not suggest to try 'Open With' on the aspx file - yes I have tried every option and the original default is the correct one.
Answers from the Microsoft forum are about as helpful as giving wheels to a tomato, such as here. It has even been highlighted for Visual Studio 2008 here. Someone seems to have tried to raise the issue last year here.

Visual Studio 2010 issue properties not updating when clicking on a control (gridview)

My hard drive died recently so I had to install visual studio 2010 all over again. With this version of VS anytime I click on a control (like text box or gridview) the properties section doesn't update. Even when i right click on the control and click view properties it doesn't update ... The only way i can get the properties tab to update is by building the project (but i have to do this every time i want to view properties of a control). I have uninstalled and reinstalled (VS 2010 and SP1) but neither have had an effect on the issue.
I have also tried turning off the add-ons as i thought this might affect performance (but not joy). I also have Visual Studio 2008 and this works perfectly.
Its like as if the application isn't refreshing or something ? And the build is forcing a refresh ?
Well turns out it was McAfee Virus Scanner !!!!!!!
So annoying, i turned On-Access Virus Scanning OFF and everything worked :-)
Unfortunately the On-Access Virus Scanning turns itself back on after a few hours so I have added Visual Studio and my files location to the exclusion list and this works !
Hopefully someone else will find this useful

vs2005 - Switching between design and source mode get stuck

I dont know if anyone else has had this problem. I'm using VS2005 working on a C# website.
The problem is on the .aspx page, when I click on the "Design" option two things happen.
It does not switch to design mode. I see only source. But I the problem is that the source mode gets stuck and uneditable.
Second thing is that I cannot switch back to source mode and hence am stuck only in that non-editable mode.
I tried to Reset my settings, but that hasnt helped.
Any ideas?
Try running visual studio in safemode. Launches Visual Studio in safe mode, loading only the default environment and services, and shipped versions of third party packages.
Try the below command in Start-> Run
devenv.exe /safemode
http://msdn.microsoft.com/en-us/library/xee0c8y7(v=vs.80).aspx

Visual Studio 2010 hangs when starting asp.net site debugging

i have problem with Visual Studio 2010 on Windows 7 x64. When i started asp.net site debugging, it stoped working. Only solution is restarting IIS.
Have anyone experiences with this?
Thanks
As Peter mentioned, manually attaching through the Attach to Process dialog should work.
Another option is to temporarily update your project to .NET Framework v4.0. In the IDE, this can be done in 'Build' section of under project properties.
We are still investigating the issue to find a longer term solution.
Sorry for the inconvenience that this problem has caused.
This M$ Connect article points straight to the topic: http://connect.microsoft.com/VisualStudio/feedback/details/556000/vs-2010-hangs-when-debugging-asp-net-3-5-web-application-or-website
Apart from the different intermediate solutions proposed, there seems to be an official Microsoft VS 2010 HotFix available here: http://archive.msdn.microsoft.com/KB2106584/Release/ProjectReleases.aspx?ReleaseId=4834.
HTH
Here's a workaround that helped me:
Go to Debug->Attach to Process. If the 'Attach To' box says 'Automatic: Native code' then click the 'Select...' button. In the 'Select Code Type' dialog change the option from 'Automatically determine the type of code to debug' to 'Debug these code types' and choose ONLY the options for you project. For me this was 'Managed (v2.0, v1.1, v1.0)'. Click OK. Then click Cancel in the 'Attach to Process' dialog.
At this point I'm now able to do F5 Debugging.
I hope this helps!
For what it is worth I had this problem this morning out of nowhere. In my case I am converting a database into webpages and one of the folders of one of the projects in my solution now has over 200 thousand html web pages. As soon as I one off'd my solution and removed the project with the giant folder debugging worked again.
This is not unlike what happens when performing a global search and vs 2010 tries to search a folder with an enormous # of files.

Problem after installing ASP.NET MVC Framework

Installed ASP.NET MVC
Created Project
About 2 minutes into project (not even running / building / debugging)
Visual Studio 2008 will no longer take focus from the mouse.
Click on visual studio - seems like there is a modal open somewhere.
Windows + D... no modal
Can't see VS2008 in alt tab
Only way to get it back is task manager.
Happens with multiple solutions / projects...alawys ASP.NET MVC
I'd try this:
Press Alt + Space
If you see a menu appear that has Move as an option, select Move
Press any arrow key
Move your mouse around.
Hopefully a modal dialog will appear.
I really really hate to ask this, but did you try rebooting?
Here is a link to another related post that may be of use.
Visual Studio Solution Explorer Locks Up

Resources