Hi,
This message comes up when the Data Foundation is not pointed to a 'Secure Connection'. Please follow these steps to resolve this issue:
1) In the Projects folder, right-click the .cnx connection and select 'Publish Connection to Repository'
2) Enter the CMS credentials and click Connect
3) Choose a valid folder to save the connection and then click Finish
4) Choose "Yes', when prompted for creating a 'Secured Connection'
5) Next, you need to update the Data Foundation, so open the 'Connection' tab of the Data Foundation
6) Select Change Connection > choose the 'Secured' connection that we just saved and click OK
7) Save the Data Foundation
8) Publish the Business Layer
Hope this helps!