Expand Minimize

Supportability

Checks if the farm solutions endanger the supportability of SharePoint.

Index

Rule Description Type Severity
SPC030101: Do not override SharePoint system files Solutions must not override system files. If this solution is deployed it could damage the SharePoint farm and make it unreachable. Solution CriticalError
SPC030202: Do not access SharePoint API via reflection It is not supported to access non public properties or methods of the SharePoint API, e.g. via reflection. Assembly CriticalError
SPC030203: Do not read ConnectionString from SPContentDatabase There is no reason to read the connection string of a SharePoint content database except if you want to read from the database which is not supported. Assembly Error
SPC030204: Do not query SharePoint databases directly It is not allowed to read or write directly to SharePoint databases. Use API, webservices etc. instead. Assembly Error
SPC030206: Do not start Process.Start in a feature and event receiver Do not start a new process in a feature and event receiver. Sometimes this may be used to run PowerShell or a batch command but this can bring the execution into timeout issues, block the process e.g. in case of errors or opening message boxes. Assembly Error
SPC030207: Do not write to the SharePoint file system Do not create directories or write to files in the SharePoint file system. If this is necessary (e.g. in TimerJobs) ensure that no SharePoint system files are overwritten, that the file size is limited and will not exceed uncontrolled and ensure, that these files are deleted during deinstallation of your code. Assembly Error
SPC030208: Do not modify the registry on a SharePoint system Do not modify the registry on a SharePoint system. If this is necessary ensure that no SharePoint keys are modified and that changes are deleted during deinstallation of your code. Assembly Error
SPC030211: Do not modify Farm settings via code Do not change properties of the SPFarm object and do not call methods that modify the SPFarm configuration. Such changes should be done only by the farm administrator or should be part of a deployment script e.g. with PowerShell. Assembly Error
SPC030212: Do not activate Farm features via code Do not activate or deactivate features with Farm scope. This operation should only be done by the farm administrator or should be part of a deployment script e.g. with PowerShell. Assembly Error
SPC030221: Do not modify WebApplication settings via code Do not change properties of the SPWebApplication object and do not call methods that modify the SPWebApplication configuration. Such changes should be done only by the farm administrator or should be part of a deployment script e.g. with PowerShell. Assembly Error
SPC030222: Do not activate WebApp features via code Do not activate or deactivate features with WebApplication scope. This operation should only be done by the farm administrator or should be part of a deployment script e.g. with PowerShell. Assembly Error
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.