Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 23rd, 2011, 12:29 PM
Authorized User
Points: 57, Level: 1
Points: 57, Level: 1 Points: 57, Level: 1 Points: 57, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2011
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Default Error after copying web site to remote site

Hello,

I got the following error when opening my web site after using the Copy Web Site feature in Visual Web Developer express 2010 to copy my web site from the source site to the remote site.

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:


Line 11: <system.web>
Line 12: <customErrors mode="Off"/>
Line 13: <compilation debug="false" strict="false" explicit="true" targetFramework="4.0"/>
Line 14: <authentication mode="Forms">
Line 15: <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>


Source File: \\filer\mass$\windows\domains\tau-mweb\web.config Line: 13


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618


---------------

When I comment out this attribute it causes build errors in my app. Any ideas on where to go from here?

Any help much appreciated!
Thanks!
  #2 (permalink)  
Old September 23rd, 2011, 12:59 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at this:

Quote:
Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618
Your Application Pool is configured to run under .NET 2, not .NET 4. The targetFramework attribute is part of .NET 4, hence the error.

Make sure the application pool is set up to run under .NET 4 as explained in the book.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access the other site information in Asp.Net web site arunkongara ASP.NET 4 General Discussion 1 July 28th, 2011 10:16 AM
Publish Web Site & Copy Web Site angshujit ASP.NET 2.0 Basics 1 June 15th, 2007 09:21 AM
Web Site error sloynaz Classic ASP Components 1 May 11th, 2004 11:06 AM
Accessing a remote web site Ray Pinnegar Access VBA 2 July 24th, 2003 08:34 PM
remote exchange verification by web site mateenmohd Classic ASP Databases 0 June 4th, 2003 03:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.