Click here to Skip to main content
12,755,986 members (35,037 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
I want to convert my project (it uses .NET 4.0) to .NET 3.5. How can I do this in Visual Studio 2010 ?!
Posted 4-Dec-12 7:22am
mahmii273
Updated 4-Dec-12 7:48am
v3
Comments
Damith Weerasinghe 4-Dec-12 12:31pm
   
http://msdn.microsoft.com/en-us/library/bb398202.aspx
richcb 4-Dec-12 12:33pm
   
I don't think you can really convert it as they are the same thing, one just has newer capabilities. You can either change the target framework or in IIS you can change the application pool to use one or the other.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Go into your project properties (right click your project, and click "Properties"), under the "Application" section, and change "Target framework" to ".NET Framework 3.5" or ".NET Framework 3.5 Client Profile", then fix any errors that appear (if any).
  Permalink  
Comments
ProgramFOX 4-Dec-12 12:40pm
   
Good answer, +5!
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

for converting

you have to set
<targetframeworkversion>v3.5

on web.config

and try following also

<configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
  Permalink  
Comments
Surendra0x2 4-Dec-12 14:08pm
   
Instead of this Do this-
http://alanfeekery.com/2011/03/28/changing-the-asp-net-target-framework-in-visual-web/

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

    Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100