Compartilhar via


Instalando as extensões de AJAX ASP.NET 2.0 1.0 em Windows SharePoint Services versão 3.0

Você deve instalar e configurar as extensões de AJAX Microsoft ASP.NET 2.0 1.0 para trabalho em um ambiente Windows SharePoint Services 3.0 wssversion3. Este tópico descreve os procedimentos para instalar e configurar as extensões 1.0 AJAX ASP.NET. O processo instalação implanta o assembly 1.0 ASP.NET AJAX (System.Web.Extensions.dll) para o Global Assembly Cache (GAC) e também instala os arquivos Microsoft AJAX Library JavaScript. O processo configuração informa ao Windows SharePoint Services 3.0 como ao identificador que têm funcionalidade ASP.NET AJAX Web Parts. Ele também registra os controles de servidor como seguro para uso em Windows SharePoint Services 3.0.

Observe que o procedimento descrito a seguir se aplica ao .NET Framework 2.0. Se você estiver usando .NET Framework 3.5, alteração de número versão em cada uma das amostras de codificar XML de Version=1.0.61025.0 a Version=3.5.0.0.

Importante

Você deve completo essas etapas para cada servidor Web no farm de servidor front-end.

Para instalar AJAX Extensions Microsoft ASP.NET 2.0

  1. Fazer o download ASP.NET AJAX 1.0 .

  2. Para instalar as extensões, clique duplo o arquivo .msi .msi e siga os prompts.

  3. Estende o arquivo web.config SharePoint, que é geralmente encontrados em um Diretório com a seguinte estrutura: drive\inetpub\wwwroot\VirtualDirectories\port number.

    1. Add the following <sectionGroup> elements within the <configSections> element.

                                    <sectionGroup name="system.web.extensions"
        type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
        PublicKeyToken=31bf3856ad364e35">
      
        <sectionGroup name="scripting"
        type="System.Web.Configuration.ScriptingSectionGroup,
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
        PublicKeyToken=31bf3856ad364e35">
      
        <section name="scriptResourceHandler"
        type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
        PublicKeyToken=31bf3856ad364e35" requirePermission="false" 
        allowDefinition="MachineToApplication"/>
      
        <sectionGroup name="webServices"
        type="System.Web.Configuration.ScriptingWebServicesSectionGroup,
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
        PublicKeyToken=31bf3856ad364e35">
      
        <section name="jsonSerialization"
        type="System.Web.Configuration.ScriptingJsonSerializationSection,
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
        PublicKeyToken=31bf3856ad364e35" requirePermission="false" 
        allowDefinition="Everywhere" />
      
        <section name="profileService"
        type="System.Web.Configuration.ScriptingProfileServiceSection,
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
        PublicKeyToken=31bf3856ad364e35" requirePermission="false" 
        allowDefinition="MachineToApplication" />
      
        <section name="authenticationService"
        type="System.Web.Configuration.ScriptingAuthenticationServiceSection,
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
        PublicKeyToken=31bf3856ad364e35" requirePermission="false" 
        allowDefinition="MachineToApplication" />
      
        </sectionGroup>
        </sectionGroup>
        </sectionGroup>
      
    2. Add the following controls declaration within the <pages> element, which is located within the <system.web> element.

                                    <controls>
          <add tagPrefix="asp" namespace="System.Web.UI" 
          assembly="System.Web.Extensions, Version=1.0.61025.0, 
          Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </controls>
      
    3. Add the following assembly declaration within the <assemblies> element.

                                    <add assembly="System.Web.Extensions, Version=1.0.61025.0, 
        Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      
    4. Add the following verb handlers within the <httpHandlers> element.

                                    <add verb="*" path="*.asmx" validate="false" 
        type="System.Web.Script.Services.ScriptHandlerFactory, 
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, 
        PublicKeyToken=31bf3856ad364e35"/>
      
        <add verb="*" path="*_AppService.axd" validate="false" 
        type="System.Web.Script.Services.ScriptHandlerFactory, 
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, 
        PublicKeyToken=31bf3856ad364e35"/>
      
        <add verb="GET,HEAD" path="ScriptResource.axd" 
        type="System.Web.Handlers.ScriptResourceHandler, 
        System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, 
        PublicKeyToken=31bf3856ad364e35" validate="false"/>
      
    5. Add the following script module handler within the <httpModules> element.

                                    <add name="ScriptModule" 
        type="System.Web.Handlers.ScriptModule, System.Web.Extensions, 
        Version=1.0.61025.0, Culture=neutral, 
        PublicKeyToken=31bf3856ad364e35"/>
      
    6. Add the following safe control entry within the <SafeControls> element, which is located within the <SharePoint> element.

                                    <SafeControl Assembly="System.Web.Extensions, 
        Version=1.0.61025.0, Culture=neutral, 
        PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" 
        Typename="*" Safe="True" />
      
    7. Add the following scripting web service handlers within the <configuration> element.

                                    <system.web.extensions>
          <scripting>
            <webServices>
            <!-- Uncomment this line to enable the authentication 
            service. Include requireSSL="true" if appropriate. -->
            <!--
              <authenticationService enabled="true" 
              requireSSL = "true|false"/>
            -->
            <!-- Uncomment these lines to enable the profile service. 
            To allow profile properties to be retrieved and modified in 
            ASP.NET AJAX applications, you need to add each property 
            name to the readAccessProperties and writeAccessProperties 
            attributes. -->
            <!--
              <profileService enabled="true" 
              readAccessProperties="propertyname1,propertyname2" 
              writeAccessProperties="propertyname1,propertyname2" />
            -->
            </webServices>
            <!--
            <scriptResourceHandler enableCompression="true" 
            enableCaching="true" />
            -->
          </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>
      

Recursos adicionais