Description:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 10: <system.web>
Line 11: <customErrors mode="Off"/>
Line 12: <compilation debug="true" targetFramework="4.0" >
Line 13: <assemblies>
Line 14: <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
You should set your target framwrok to 4.0. This could be done in website properties (IIS6) or the application pool properties (IIS7). Make sure that you have installed .NET 4 Framework or that your hosting provider support
asp.net 4 hosting.
Description: An error occurred during the processing of a configuration file required to service this request.
Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 10: <system.web>
Line 11: <customErrors mode="Off"/>
Line 12: <compilation debug="true" targetFramework="4.0">
Line 13: <assemblies>
Line 14: <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456
i think the above underlined sentence has something need to know !
Yes it's configured to .Net framework 2.0 while your web.config points to .net framework 4.0. As I said above, you have to set it using Application pool.
1. Open IIS.
2. Click Application Pools.
3. Double click on your website.
4. Set the .Net framework version as '.Net Framework v4.0'.
Do you host it with your own server or with hosting provider? Have you install your .net 4 on your server? From the above error, it means that you havent setup .net 4 on your site. Please make sure you have set it to .net 4 framework. If your current host
doesnt support .net 4, then you can find another provider that support .net 4, see the option on
http://www.microsoft.com/web/Hosting/Home and I would recommend you
HostForLife.eu, their hosting plan is really reliable. :)
if thsi is the dot net version problem then it might possible that my web server has older dot net version....
is it possible ?
Yes it's possible. Contact your hosting provider and ask from them what's the installed .net framework version. If they alreay have 4.0, tell them to point your application to use it (By following the steps I said above).
dkt
Member
38 Points
39 Posts
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 29, 2012 04:02 PM|LINK
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Bimalvv
Contributor
2346 Points
478 Posts
Re: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 29, 2012 04:07 PM|LINK
Hi,
This means that your account is not configured for ASP.Net 4.0 framework.
Please see the link http://support.discountasp.net/KB/a34/which-version-of-microsoft-net-framework-do-you-support.aspx
Thanks,
Bimal
Bimal
HostingASPNe...
All-Star
15866 Points
2974 Posts
Re: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 29, 2012 04:11 PM|LINK
Hello,
You should set your target framwrok to 4.0. This could be done in website properties (IIS6) or the application pool properties (IIS7). Make sure that you have installed .NET 4 Framework or that your hosting provider support asp.net 4 hosting.
Regards
Free ASP.NET Examples and source code.
Ruchira
All-Star
42885 Points
7019 Posts
MVP
Re: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 29, 2012 04:33 PM|LINK
Hi,
In IIS, go to the application pool and set the framework version to 4.0 for your website.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.dkt
Member
38 Points
39 Posts
Re: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 30, 2012 03:52 AM|LINK
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Source File: D:\WEBDATA\highgradetutors.com\web.config Line: 12
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456
i think the above underlined sentence has something need to know !
Ruchira
All-Star
42885 Points
7019 Posts
MVP
Re: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 30, 2012 05:53 AM|LINK
Yes it's configured to .Net framework 2.0 while your web.config points to .net framework 4.0. As I said above, you have to set it using Application pool.
1. Open IIS.
2. Click Application Pools.
3. Double click on your website.
4. Set the .Net framework version as '.Net Framework v4.0'.
5. Click 'OK' and restart your application.
6. Try again.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.carl.steinha...
Participant
922 Points
247 Posts
Re: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 30, 2012 05:58 AM|LINK
Hi dkt,
Do you host it with your own server or with hosting provider? Have you install your .net 4 on your server? From the above error, it means that you havent setup .net 4 on your site. Please make sure you have set it to .net 4 framework. If your current host doesnt support .net 4, then you can find another provider that support .net 4, see the option on http://www.microsoft.com/web/Hosting/Home and I would recommend you HostForLife.eu, their hosting plan is really reliable. :)
Carl Steinhart
dkt
Member
38 Points
39 Posts
Re: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 30, 2012 05:58 AM|LINK
how i can access the webserver's IIS ?
this problem occurs when i access my website using browser.
if thsi is the dot net version problem then it might possible that my web server has older dot net version....
is it possible ?
dkt
Member
38 Points
39 Posts
Re: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 30, 2012 06:01 AM|LINK
hi carl,
i m hosting my website on hosting provider.
is it possible that they had older version of dot net installed in their web server in which i got the hosting space
Ruchira
All-Star
42885 Points
7019 Posts
MVP
Re: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Jan 30, 2012 06:04 AM|LINK
Yes it's possible. Contact your hosting provider and ask from them what's the installed .net framework version. If they alreay have 4.0, tell them to point your application to use it (By following the steps I said above).
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.