I am facing this error while fetching data from custom table in Magento 2.3.5
the error is:
Argument 1 passed to Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider::searchResultToOutput() must implement interface Magento\Framework\Api\Search\SearchResultInterface, instance of Aspl\Contact\Model\ResourceModel\Contact\Grid\Collection given, called in D:\xampp\htdocs\M2\vendor\magento\framework\View\Element\UiComponent\DataProvider\DataProvider.php on line 282
please if anyone have idea about this problem then just give me solution.
Thanks In Advance.