Question

Je suis en train de définir le fournisseur d'authentification pour un site Web nouvellement créé (Application Management -> Fournisseurs d'authentification). J'essaie de le régler sur soit ou Windows Forms (le réglage n'a pas d'importance).

Lorsque je clique sur Enregistrer je reçois ...

  

Impossible d'appliquer une modification de web.config au fichier   'configuration / system.web / pages'. Le noeud spécifié   "C: \ Inetpub \ wwwroot \ WSS \ VirtualDirectories \ testsolution9 \ web.config"   n'a pas été trouvé dans le fichier web.config. à   Microsoft.SharePoint.Administration.SPWebConfigFileChanges.ApplyModificationsWebConfigXmlDocument (XmlDocument   xdWebConfig, String chemin_fichier)

Je vérifie la web.config fichier et la section est présente! Ici, il 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>

Cependant, je ne comprends pas l'erreur lorsque je sélectionne une ancienne application Web au fournisseur de changement. J'ai même copié le contenu de l'ancien web.config dans le web.config des nouveaux sites, mais je reçois toujours la même erreur.

Sur une note distincte mais connexe j'ai une solution qui ajoute les entrées Ajax dans le fichier web.config et produit le même message d'erreur.

J'ai googlé beaucoup mais ne peut pas sembler aller nulle part, ils disent tous « ajouter dans la section des pages », mais il est déjà là?

Mise à jour 1

Je l'ai regardé à travers les journaux de SharePoint (de yuk) et ont obtenu ces entrées, le dernier étant l'erreur réelle.

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)  
Était-ce utile?

La solution 3

Je l'ai tracé ce retour à une installation des CKS Blog édition, il semble avoir quelque chose pour les modifications web.config sharepoint.

Autres conseils

Est-ce vraiment le message d'erreur?

Il me semble que quelque chose est transposable, ce qui indique peut-être quelque chose de fait une modification de configuration Web dans le code, mais avec un bug. Il me semble étrange que les états de message:

  • "Impossible d'appliquer une modification de web.config fichier 'configuration / system.web / pages'". Ce n'est pas un fichier - c'est un noeud
  • "Le noeud spécifié "C: \ Inetpub \ wwwroot \ WSS \ VirtualDirectories \ testsolution9 \ web.config" n'a pas été trouvé ..". Ce n'est pas un nœud - c'est un fichier

Pouvez-vous penser à quoi que ce soit dans votre solution qui pourrait être la cause?

Je crois que le code API lancer l'exception a un bug qui échange les paramètres: Regarde ce (en bas de # 1).

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top