Unable to create BaseTable instance of Type

This error indicates that your Provider application type is probably a Web Site while your consumer is a Web Application. You have to have them either the same type or at least to have the Provider as a Web Application. See Creating RESTful Applications.