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
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!!!
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.