The following error was received when attempting to deploy a .NET BCS Connectivity Assembly to our SharePoint 2010 Farm:
Error occurred in deployment step ‘Add Solution’: The default web application could not be determined. Set the SiteUrl property in feature *Model Name*_Feature1 to the URL of the desired site and retry activation.
Parameter name: properties
While the Site URL property is automatically set in the Project properties by the SharePoint Configuration Wizard when creating the project, for some reason it doesn’t set a BCS Custom Property necessary for successful deployment.
To add this property, do the following:
Select the model object in the solution explorer. This is generally beneath the Package node. In the properties window, click (Collection) next to Feature Properties and click the elipsis (…) button.
In the Feature Properties window, click the Add button. Set the Key property to SiteUrl and the Value property to the URL of the root application (this should match the Site URL property in the Project properties.
You should now be able to deploy.