Solution for Class Magento\\Customer\\Api\\Data\\CustomerSearchResultsInterfaceFactory does not exist while install magento2

Solution for Class Magento\\Customer\\Api\\Data\\CustomerSearchResultsInterfaceFactory does not exist while install magento2  . Once you have install the magento2, when you hit the admin URL seems work but when you hit the frontend url you may get error report like below,

{“0″:”Class Magento\\Customer\\Api\\Data\\CustomerSearchResultsInterfaceFactory does not exist in
[Magento\\Customer\\Model\\ResourceModel\\CustomerRepository\\Interceptor]”,”1″:”#0 \\lib\\internal\\Magento\\Framework\\Code\\Generator\\Autoloader.php(35): Magento\\Framework\\Code\\Generator->generateClass(‘Magento\\\\Custome…’)\n#1 [internal function]: Magento\\Framework\\Code\\Generator\\Autoloader->load(‘Magento\\\\Custome…’)\n#2 [internal function]: spl_autoload_call(‘Magento\\\\Custome…’)\n#3 ………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………
{main}”,”url”:”\/root\/”,”script_name”:”\/root\/index.php”}

Due to following any reason you may get this error:

1. Folder permission for generation

2. Generation folder was not created inside pub folder

Execute : php bin/magento setup:di:compile

 

 

 

CORNER OF BLOG:

“SAVE WATER”