Alfresco could not resolve view error

In Alfresco Share (share.log), I kept getting this error and couldn’t figure out what was causing it:

ERROR [org.alfresco.web.site] javax.servlet.ServletException: Could not resolve view with name 'user/guest/dashboard' in servlet with name 'Spring Surf Dispatcher Servlet'

After a lot of fruitless google searching and trial and error, I finally tracked it down to items missing share-config-custom.xml, so if you get something similar, review your share-config-custom.xml in detail.