Click here to Skip to main content
Rate this: bad
good
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 6:22am
mahmii273
Edited 4-Dec-12 6:48am
v3
Comments
Damith Weerasinghe at 4-Dec-12 12:31pm
   
http://msdn.microsoft.com/en-us/library/bb398202.aspx
richcb at 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 at 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
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 at 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
0 OriginalGriff 324
1 Maciej Los 239
2 Sergey Alexandrovich Kryukov 182
3 CPallini 120
4 Richard MacCutchan 120
0 OriginalGriff 5,474
1 Sergey Alexandrovich Kryukov 4,713
2 Peter Leow 2,944
3 DamithSL 2,465
4 Maciej Los 2,434


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