Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I running website the for error as follows:



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:


Line 27: during development.
Line 28: -->
Line 29: <compilation debug="true" targetFramework="4.0">
Line 30: <assemblies>
Line 31: <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

Source File: C:\Documents and Settings\Hai Quan\My Documents\Downloads\FileUploadInDatabase\SmartFileUpload\web.config Line: 29

Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


everybody help me.
Posted

close the compilation tag

for example

<compilation debug="true" targetframework="4.0" />
 
Share this answer
 
Close the tag
HTML
<compilation debug="true" targetframework="4.0"></compilation>

replace above tags by
HTML
<compilation debug="true" targetframework="4.0" />


And also check the framework you are working
means if your are working with 3.5 then set that one as 3.5 .and if 4.0 then set as 4.0

You can remove that tag.
 
Share this answer
 
remove targetFramework="4.0"

r u using visual studio 2008 or 2010?
if 2008 then remove targetFramework="4.0"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900