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 August 12th, 2012, 09:58 AM
Registered User
 
Join Date: Aug 2012
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default deployment

when im putting my site on the shared hosting provider server, I get targetFramework="4.0" is not recognized and when I remove it I get another error which says <scriptManager> not recognized, please help!!!
 
Old August 12th, 2012, 11:34 AM
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,

Sounds like the Application Pool used by your web site is running with ASP.NET 2, not AP.NET 4. See step 3 on page 715.

You may have to ask your host to make this change, or they may offer an on-line control panel where you can do it yourself.

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 August 12th, 2012, 11:50 AM
Registered User
 
Join Date: Aug 2012
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

but even when I changed the targetFramework to 2.0 in the web.config it still did not work!
 
Old August 12th, 2012, 11:59 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You cannot simply change the target framework from 4 to 2 as there will be a lot of code depending on the 4.0 version of the framework in your site and web.config.

If you believe you're not using any .NET functionality, you could try changing the framework version of the site using its Property Pages in Visual Studio and then resolve any compilation and other errors. This is certainly not going to work for the Planet Wrox website though.

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
deployment Bhavin Crystal Reports 1 February 5th, 2009 08:07 AM
deployment p2pMember ASP.NET 2.0 Basics 0 June 7th, 2007 01:12 AM
Deployment sen22 .NET Framework 2.0 1 April 17th, 2007 02:38 PM
Deployment regbnvl BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 0 May 7th, 2006 04:44 PM
Deployment Bhavin Crystal Reports 2 October 25th, 2004 08:28 AM





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