Install-SPApplicationContent does not parse XML comment in webconfig xml

If you use custom webconfig files under 14/CONFIG folder to modify web application’s web.config file, then pay attention not to include any XML comment <!– –> in the xml files. Neither Install-SPApplicationContent nor STSADM –o copyappbincontent parse xml comments.   For example: in 14/CONFIG/webconfig.custom.xml,   1: <?xml version="1.0" encoding="utf-8"?> 2: <actions> 3: <remove path="configuration/appSettings/add[@key=’Security.ServiceAccount’]" /> 4: …

1

Modify Web.config File Dynamically in SharePoint 2010

Recently I was asked to modify a custom solution downloaded from CodePlex to allow it to updated web.config file programmatically. The deployment steps provided from CodePlex involve manual modification to web.config files on all WFE servers across the farm which is not a best practice approach for deploying custom solutions. There are many other articles…

1

SP2010 Survey List Error and Event ID 5586

Are you experiencing the following combination of errors from event logs and ULS los? I found it occur most often after SharePoint migration from 2007 to 2010. However the same issue can also be reproduced in SP2010 using the out-of-box survey list and a minor change via the standard user interface. Summary To save you…

3

SharePoint 2010 Health Analyser Timer Job Changed Custom Web.Config Machine Key

I recently had an issue with custom machine key in the web.config file on the WFE servers. We use non-autogenerated machine key to de/encrypt custom solutions deployed in SharePoint farm. However this key was changed every midnight and the next morning users would start complaining about custom solution throwing errors. Initial research (Thanks for Nigel…

1

SharePoint Default My Site Association With Office 2007/2010

There is a nice article about what this links does and how to change your default my site. Set or change your default My Site http://office.microsoft.com/en-us/sharepoint-server-help/set-or-change-your-default-my-site-HA010168639.aspx   However what I wanted to do was to *remove* default my site settings from my PC, so it would stop prompting me for account credentials. (Yes, I understand…

0