Step by Step configure your sharepoint running with .NET Framework 3.5


Step by Step configure your sharepoint running with .NET Framework 3.5

(Do not forget to backup your web.config file)

1) First setup Framework 3.5 to your server.And you already have got a Web Application on which you want to do these changes.

2)Add fallowings to Web.Congif in configuration -> 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>

3-) Add fallowings to web.config sharepoint->SafeControls

      <SafeControl Assembly="System.Web.Silverlight,Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.SilverlightControls" TypeName="*" Safe="True" />

      <SafeControl Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />

4-) Add fallowings to web.config System.Web->httphandlers

      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>

5-) Add fallowings to web.config System.Web->httpmodules

      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

6-) Add fallowings to web.config System.Web->compilation->assemblies

        <add assembly="System.Core,Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

        <add assembly="System.Data.DataSetExtensions,  Version=3.5.0.0, Culture=neutral,   PublicKeyToken=B77A5C561934E089"/>

        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

7-)Add fallowings to web.config System.Web->Pages

      <controls>

        <add tagPrefix="asp" namespace="System.Web.UI"

              assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,

        PublicKeyToken=31BF3856AD364E35"/>

        <add tagPrefix="asp" namespace="System.Web.UI.WebControls"

              assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,

        PublicKeyToken=31BF3856AD364E35"/>

        <add tagPrefix="cc1" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>

        <add namespace="ProfileDAL" assembly="ProfileDAL ,Version=0.0.0.0,Culture=neutral, PublicKeyToken=aa99289942830a2b" tagPrefix="cc1" />

      </controls>

8-)Add fallowings to web.config

  <system.web.extensions>

    <scripting>

      <webServices>

      </webServices>

    </scripting>

  </system.web.extensions>

  <system.webServer>

    <validation validateIntegratedModeConfiguration="false"/>

    <modules>

      <add name="ScriptModule" preCondition="integratedMode"

          type="System.Web.Handlers.ScriptModule,

            System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

            PublicKeyToken=31bf3856ad364e35"/>

    </modules>

    <handlers>

      <remove name="WebServiceHandlerFactory-Integrated" />

      <add name="ScriptHandlerFactory" verb="*"

          path="*.asmx" preCondition="integratedMode"

          type="System.Web.Script.Services.ScriptHandlerFactory,

            System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

            PublicKeyToken=31bf3856ad364e35"/>

      <add name="ScriptHandlerFactoryAppServices" verb="*"

          path="*_AppService.axd" preCondition="integratedMode"

          type="System.Web.Script.Services.ScriptHandlerFactory,

            System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

            PublicKeyToken=31bf3856ad364e35"/>

      <add name="ScriptResource" preCondition="integratedMode"

          verb="GET,HEAD" path="ScriptResource.axd"

          type="System.Web.Handlers.ScriptResourceHandler,

            System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

            PublicKeyToken=31bf3856ad364e35" />

    </handlers>

  </system.webServer>

  <system.codedom>

    <compilers>

      <compiler language="c#;cs;csharp" extension=".cs"

compilerOptions="/warnaserror-" warningLevel="4"

type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0,

Culture=neutral, PublicKeyToken=b77a5c561934e089">

        <providerOption name="CompilerVersion" value="v3.5"/>

      </compiler>

      <compiler language="vb;vbs;visualbasic;vbscript"

extension=".vb" compilerOptions="/optioninfer+"

type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0,

Culture=neutral, PublicKeyToken=b77a5c561934e089">

        <providerOption name="CompilerVersion" value="v3.5"/>

      </compiler>

    </compilers>

  </system.codedom>

9-) Reset iis

Advertisements

About bpostaci
Escalation Engineer in Microsoft.

One Response to Step by Step configure your sharepoint running with .NET Framework 3.5

  1. Pingback: Ninject with Sharepoint « Bugra Postaci's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: