Pregunta

Estoy tratando de establecer el proveedor de autenticación para un sitio web recién creado (gestión de aplicaciones -> proveedores de autenticación). Intento configurarlo en Forms o Windows (la configuración no importa).

Cuando hago clic en Guardar, obtengo ...

No se pudo aplicar una modificación web.config para archivar 'Configuración/System.Web/Pages'. El nodo especificado "c: inetpub wwwroot wss virtualDirectorios testSolution9 web.config" no se encontró en el archivo web.config. en microsoft.sharepoint.administration.spwebconfigfilechanges.applymodificationswebconfigxmlDocument (xmlDocument xdwebconfig, string filepath)

Reviso el web.config Archivo y la sección está presente! Aquí está...

<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
      <namespaces>
        <remove namespace="System.Web.UI.WebControls.WebParts" />
      </namespaces>
      <tagMapping>
        <add tagType="System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mappedTagType="Microsoft.SharePoint.WebControls.SPSqlDataSource, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      </tagMapping>
    </pages>

Sin embargo, no recibo el error cuando selecciono una aplicación web anterior para cambiar el proveedor. Incluso he copiado todo el contenido de la antigua web.config en la web.config de los nuevos sitios, pero aún obtengo el mismo error.

En una nota separada pero relacionada, tengo una solución que agrega las entradas AJAX al archivo web.config y produce el mismo mensaje de error.

He buscado mucho en Google, pero parece que no puedo llegar a ningún lado, todos dicen "agregar la sección de páginas", pero ¿ya está allí?

Actualización 1

He estado mirando a través de los registros de SharePoint (YUK) y tengo estas entradas, la última es el error real.

03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/configSections Node name - sectionGroup[@name='system.web.extensions'] Node value - 
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/configSections/sectionGroup[@name='system.web.extensions'] Node name - sectionGroup[@name='scripting'] Node value -      
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/configSections/sectionGroup[@name='system.web.extensions']/sectionGroup[@name='scripting'] Node name - section[@name='scriptResourceHandler'] Node value -     
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/configSections/sectionGroup[@name='system.web.extensions']/sectionGroup[@name='scripting'] Node name - sectionGroup[@name='webServices'] Node value -   
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/configSections/sectionGroup[@name='system.web.extensions']/sectionGroup[@name='scripting']/sectionGroup[@name='webServices'] Node name - section[@name='authenticationService'] Node value -      
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/configSections/sectionGroup[@name='system.web.extensions']/sectionGroup[@name='scripting']/sectionGroup[@name='webServices'] Node name - section[@name='jsonSerialization'] Node value -    
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/configSections/sectionGroup[@name='system.web.extensions']/sectionGroup[@name='scripting']/sectionGroup[@name='webServices'] Node name - section[@name='profileService'] Node value -   
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/SharePoint/SafeControls Node name - SafeControl[@Assembly='System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'][@Namespace='System.Web.UI'][@TypeName='*'] Node value -    
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.diagnostics/switches Node name - add[@name='DiagnosticsSwitchesGeneralMod'] Node value -      
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.diagnostics/switches Node name - add[@name='DiagnosticsSwitchesHttpModuleExceptionHandlerMod'] Node value -    
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration Node name - system.web.extensions Node value -    
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.web.extensions Node name - scripting Node value -      
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.web.extensions/scripting Node name - webServices Node value -    
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.web/compilation/assemblies Node name - add[@assembly='System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'] Node value -     
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.web/httpHandlers Node name - add[@path='*.asmx'] Node value -    
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.web/httpHandlers Node name - add[@path='*_AppService.axd'] Node value -    
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.web/httpHandlers Node name - add[@path='ScriptResource.axd'] Node value -   
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.web/httpModules Node name - add[@name='HttpModulesMod'] Node value -     
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.web/httpModules Node name - add[@name='ScriptModule'] Node value -      
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     Topology                        8gp8    Medium      Adding web config node - Path - configuration/system.web/httpModules Node name - add[@name='Session'] Node value -   
03/30/2010 14:12:54.11  w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     General                         8nca    Verbose     Application error when access /_admin/Authentication.aspx, Error=Failed to apply a web.config modification to file 'configuration/system.web/pages'.  The specified node "C:\Inetpub\wwwroot\wss\VirtualDirectories\testsolution11\web.config" was not found in the web.config file.   at Microsoft.SharePoint.Administration.SPWebConfigFileChanges.ApplyModificationsWebConfigXmlDocument(XmlDocument xdWebConfig, String filepath)     at Microsoft.SharePoint.Administration.SPWebApplication.ApplyWebConfigModifications()     at Microsoft.SharePoint.Administration.SPWebApplication.Provision()     at Microsoft.SharePoint.Administration.SPWebApplication.UpdateAuthenticationSettings(SPUrlZone zone, SPIisSettings newSettings, Boolean createJob)     at Microsoft.SharePoint.Administration.SPWebApplication.Updat...  
03/30/2010 14:12:54.11* w3wp.exe (0x17C4)                           0x1F00  Windows SharePoint Services     General                         8nca    Verbose     ...eAuthenticationSettings(SPUrlZone zone, SPIisSettings newSettings)     at Microsoft.SharePoint.ApplicationPages.AuthenticationPage.BtnSave_Click(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
¿Fue útil?

Solución 3

He rastreado esto a una instalación de la edición del blog de CKS, parece haber hecho algo a las modificaciones de SharePoint Web.Config.

Otros consejos

¿Ese es realmente el mensaje de error?

Me parece que algo se transpone, tal vez indicando que algo está haciendo una modificación de configuración web en código pero con un error. Me parece extraño que el mensaje indique:

  • "No se pudo aplicar una modificación web.config a la configuración/system.web/páginas". Este no es un archivo, ¡eso es un nodo!
  • "El nodo especificado" c: inetpub wwwroot wss virtualDirectorios testSolution9 web.config "no se encontró ...". Este no es un nodo, ¡ese es un archivo!

¿Puedes pensar en algo en tu solución que pueda causar esto?

Creo que el código API que arroja la excepción tiene un error que cambia los parámetros: Mira esta página (Fondo del #1).

Licenciado bajo: CC-BY-SA con atribución
scroll top