"whenever I try to run it in my local machine I have the following exception"
You seem to miss something after your last sentence? Most likely you'll have trouble reaching the database (DB permissions), reaching the Site (IIS config/bindings/or permission on file system), or in case you reach the site it could be a missing localhost or other dev url license in Kentico.
Does any of this sound correct?