Visual Studio SharePoint solution overwrites machineKey
-
27-10-2019 - |
Question
Exactly what it says on the tin - any time I make a change in a SharePoint 2010 solution which results in web.config being updated by visual studio, it makes changes to the element
<machineKey validationKey="{key}" ...
Prevents login. Must be the key I specify.
Help!
Solution
To prevent the machine key being overwritten, make the following change:
Navigate to http:///Lists/HealthRules/AllItems.aspx
- Find the item “Web.config files are not identical on all machines in the farm.” And click it
- Click Edit Item > disable the Enabled & Repair Automatically checkboxes > click Save
(You can confirm its this setting by using the "Run Now" "Feature")
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow