Umbraco Forms - Library.GetApprovedRecordsFromForm(formId) Object reference not set to an instance of an object5 months ago / mcchu28
An exception of type 'System.NullReferenceException' occurred in Umbraco.Forms.Web.dll but was not handled in user code
Additional information: Object reference not set to an instance of an object.
at Umbraco.Forms.Mvc.DynamicObjects.Library.GetApprovedRecordsFromForm(String formId)
Workaround: I had this issue when I call the library in its own test project. I believe the connection to Umbraco database is not setup properly. I call this function within the Umbraco project and it seems fine after.