Edit Node Value in AJAX.Config

May 7, 2009 at 1:39 PM
Hello,

I tried this in AJAX.Config:

SPWebConfigModification edit = new SPWebConfigModification("enableSessionState", "configuration/system.web/pages");
            edit.Sequence = 0;
            edit.Owner = OwnerModif;
            edit.Type = SPWebConfigModification.SPWebConfigModificationType.EnsureAttribute;
            edit.Value = "true";

            AddNodeValue(edit);

            SaveWebConfig(app);

protected void AddNodeValue(SPWebConfigModification config)
    {
      mListModifications.Add(config);
    }

But it won't work, how can I enable Sessions this way???
The package is created and installed and activated correctly but none of the ajax changes are made with those lines of code in the same file
Thanks in advance