Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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
 
Old October 13th, 2011, 08:33 AM
Registered User
 
Join Date: Jul 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Deployment Error

Hi Imar,

I uploaded my files to web/host using FTP but I am getting below error message

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 10: <system.web>
Line 11: <pages theme="Monochrome"></pages>
Line 12: <compilation debug="false" targetFramework="4.0" />
Line 13:
Line 14:
Source File: C:\HostingSpaces\REVOLUTRIX\revolutrix.com\wwwroot \test\release\web.config Line: 12

Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209

Though it is working fine when I tried from my localhost using IIS.Also in IIS .Net Framework version registered is 4.0.30319.

Let me know If I am missing something.
 
Old October 13th, 2011, 12:01 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Your remote site is still running under the .NET 2.0 runtime. You need to configure IIS / the Application Pool to run under .NET 4 instead (or ask your host to do that for you).

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!
 
Old October 15th, 2011, 08:07 AM
Registered User
 
Join Date: Jul 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Thanks for the quick response. I ask the administrator to upgrade the remote site to .net Framework 4.0.
So which mode should I ask him to upgrade it, classic or integrated mode?
Note - IIS used is IIS5.1.

Thanks
Sonal
 
Old October 15th, 2011, 08:45 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

IIS 5.1 doesn't have Classic / Integrated mode so just setting it to .NET 4 should do the trick....

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!
 
Old October 18th, 2011, 06:29 AM
Registered User
 
Join Date: Jul 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I asked the administrator to upgrade it and they upgraded it 4.0 classic but I am still getting the error as

Line 9:
Line 10: <system.web>
Line 11: <pages theme="Monochrome"></pages>
Line 12: <compilation debug="false" targetFramework="4.0" />
Line 13:
Source File: C:\HostingSpaces\REVOLUTRIX\revolutrix.com\wwwroot \test\release\web.config Line: 11

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

I am not getting what is wrong now.
why .net is so sensitive :(
 
Old October 19th, 2011, 12:19 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's not sensitive; it's trying to be helpful ;-)

The targetAttribute was introduced in .NET 4 and doesn't make sense in .NET 2. So, .NET 2.0 does the right thing and throws an error saying it doesn't recognize this attribute, rather than silently continuing using .NET 2 where you would expect it to run under .NET 4.

Juding from the error message, I'd say the site still runs under .NET 2. They may have installed .NET 4, but they also need to configure your site / application pool to run under .NET 4.

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
Error in deployment ivanosato ASP.NET 3.5 Basics 3 February 18th, 2010 04:45 PM
Trust error on deployment? JeffPK BOOK: Expert Access 2007 Programming ISBN 978-0-470-17402-9 3 November 2nd, 2009 04:15 PM
Error on Deployment DureSameen BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 February 21st, 2007 05:36 AM
Deployment Error BSkelding Pro VB.NET 2002/2003 0 June 3rd, 2004 08:26 AM
Deployment error amrev VS.NET 2002/2003 0 September 22nd, 2003 02:31 AM





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