Thursday, October 30, 2008

Recovering lost AJAX Control Toolkit Controls in VS2008

When using Visual Studio 2008 and you have the AJAX Control Toolkit installed you might have experienced that your AJAX Controls disappear from the Toolbox. If you right-click on a Tab in the Toolbox and select Show All, you'll see that the controls are still there; however, they are all greyed out. This happens when using Visual Studio 2008 and targeting .Net Framework 2.0 in both Web Application Projects and Web Sites. You can resolve this by doing the following for Web Applications and Web Sites.
Web Solutions:
1. Click Project.
2. Select ProjectName Properties.
3. Under Target Framework, change it from .NET Framework 2.0 to .NET Framework 3.5.
4. Click Save.

Web Sites:
1. Click Website.
2. Select Start Options.
3. Select Build and under Target Framework, change it from .NET Framework 2.0 to .NET Framework 3.5.
4. Click OK.

No comments: