I've started to edit the solution. Actually I got anoying error there.
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. F:\Downloads\AjaxControlToolkit_9c860ac12ae9\SampleWebSites\AjaxControlToolkitSampleSite\Web.config
<compilation debug="true" targetFramework="4.0">
Most of the article suggest that this error cause because of .net 4 is not installed. Actually I've already installed it. What should I do?
What .NET framework are you having your application in? 4.0 or 3.5? You need to download the matching version of the Ajax Control Toolkit for that specific framework.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Actually I've installed all 2.0, 3.0, 3.5 and 4.0 frameworks. So I've check in the project (actually the website cause this) properties and there shows only 2.0, 3.0 and 3.5 frameworks, not 4.0 is listed.
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. F:\Downloads\AjaxControlToolkit_9c860ac12ae9\SampleWebSites\AjaxControlToolkitSampleSite\Web.config
<compilation debug="true" targetFramework="4.0">
1, Make sure you had installed Visual Studio 2010.
2, Open the F:\Downloads\AjaxControlToolkit_9c860ac12ae9\AjaxControlToolkit.sln.
3, in the Visual Studio Solution Explorer, right-click the website project,"F:\Downloads\AjaxControlToolkit_9c860ac12ae9\SampleWebSites\AjaxControlToolkitSampleSite".
4, click Property Page.
5, click Build in the listbox at left hand.
6, at the right hand, see the Target Framework, select .Net Framework 4.
7,click OK.
8, Try again.
If this still not work, make sure your .Net Framework 4 has installed correctly.
I recommend you to use VS2010 to test the AJAX control tookit version 4.0.
Or use the AJAX control tookit version 3.5 in VS2008.
PS.
If you want to deploy the AJAX control toolkit v4.0 sample site which you downloaded to your IIS, please select the .NET Framework 4.0 in the Application Pool configuration. Follow the document below:
wanttobe
Member
178 Points
169 Posts
.NET 4 not installed? But it is.
Jul 28, 2010 11:17 AM|LINK
Split off from http://forums.asp.net/t/1582688.aspx:
I've started to edit the solution. Actually I got anoying error there.
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. F:\Downloads\AjaxControlToolkit_9c860ac12ae9\SampleWebSites\AjaxControlToolkitSampleSite\Web.config
<compilation debug="true" targetFramework="4.0">
Most of the article suggest that this error cause because of .net 4 is not installed. Actually I've already installed it. What should I do?
XIII
All-Star
182684 Points
23455 Posts
ASPInsiders
Moderator
MVP
Re: .NET 4 not installed? But it is.
Jul 28, 2010 11:49 AM|LINK
I split this off as it contains a new question.
What article are you talking about?
What .NET framework are you having your application in? 4.0 or 3.5? You need to download the matching version of the Ajax Control Toolkit for that specific framework.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
wanttobe
Member
178 Points
169 Posts
Re: .NET 4 not installed? But it is.
Jul 28, 2010 12:01 PM|LINK
I've found this.
https://support.discountasp.net/KB/a796/aspnet-40-application-error-unrecognized-attribute.aspx
Actually I've installed all 2.0, 3.0, 3.5 and 4.0 frameworks. So I've check in the project (actually the website cause this) properties and there shows only 2.0, 3.0 and 3.5 frameworks, not 4.0 is listed.
XIII
All-Star
182684 Points
23455 Posts
ASPInsiders
Moderator
MVP
Re: .NET 4 not installed? But it is.
Jul 28, 2010 12:04 PM|LINK
Hi,
Did you download the control toolkit that targets the 3.5 framework?
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
wanttobe
Member
178 Points
169 Posts
Re: .NET 4 not installed? But it is.
Jul 28, 2010 01:21 PM|LINK
Sir, actually I've downloaded the latest version. I souldn't find the prior versions there.
XIII
All-Star
182684 Points
23455 Posts
ASPInsiders
Moderator
MVP
Re: .NET 4 not installed? But it is.
Jul 28, 2010 01:49 PM|LINK
Hi,
seems the latest version with source code for .NET 3.5 is this one: http://ajaxcontroltoolkit.codeplex.com/releases/view/33804. For the latest binaries you can download it here: http://ajaxcontroltoolkit.codeplex.com/releases/view/43475. However if you integrate the control toolkit in a 3.5 website you need to match the version of the ajax control toolkit for that framework.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Jerry Weng -...
All-Star
29527 Points
3488 Posts
Re: .NET 4 not installed? But it is.
Jul 29, 2010 12:08 PM|LINK
Hi,
1, Make sure you had installed Visual Studio 2010.
2, Open the F:\Downloads\AjaxControlToolkit_9c860ac12ae9\AjaxControlToolkit.sln.
3, in the Visual Studio Solution Explorer, right-click the website project,"F:\Downloads\AjaxControlToolkit_9c860ac12ae9\SampleWebSites\AjaxControlToolkitSampleSite".
4, click Property Page.
5, click Build in the listbox at left hand.
6, at the right hand, see the Target Framework, select .Net Framework 4.
7, click OK.
8, Try again.
If this still not work, make sure your .Net Framework 4 has installed correctly.
wanttobe
Member
178 Points
169 Posts
Re: .NET 4 not installed? But it is.
Jul 30, 2010 05:15 AM|LINK
Okay sir, I'll give a try on this
wanttobe
Member
178 Points
169 Posts
Re: .NET 4 not installed? But it is.
Jul 30, 2010 05:38 AM|LINK
Actually I didn't install. I've just install the .Net Framework 4 Extend and I wonder why it's not listed there.
Jerry Weng -...
All-Star
29527 Points
3488 Posts
Re: .NET 4 not installed? But it is.
Jul 30, 2010 06:27 AM|LINK
Hi,
VS2008 does not support .NET Framework 4.
I recommend you to use VS2010 to test the AJAX control tookit version 4.0.
Or use the AJAX control tookit version 3.5 in VS2008.
PS.
If you want to deploy the AJAX control toolkit v4.0 sample site which you downloaded to your IIS, please select the .NET Framework 4.0 in the Application Pool configuration. Follow the document below:
http://www.codeproject.com/KB/aspnet/IIS7ASPNet.aspx