The default web application could not be determined.

Recently I was trying to deploy a BDC model to a SharePoint 2013 Farm. Creating the model was quite straight forward as known from the previous version. Then I hit Deploy and the deployment started. But suddenly this error appeared:

DeployFehler

This solution for this problem was so easy that it took a few minutes until I figured out what the problem was. The Feature.Template.xml file was not correctly prepared. I simply added

<Properties>
 	<Property Key='SiteUrl' Value='http://portal/' />
</Properties>

And that was it. The installation went without problems. For sure you have to replace ‘http://sharepoint’ with the url of your SharePoint.

SharePoint 2013 Apps – Debugger does not hit breakpoint

Recently I was experimenting with SharePoint 2013 Apps and different deploy possibilities. I made a few changes on the linked projects, changed some project and solution settings and out of a sudden the debugger did not work for my web project. No matter what I did, it just ignored the breakpoints and even exception did pop up in the Visual Studio. After searching a while I found the solution and it was so incredibly easy. When debugging SharePoint 2013 Apps both, the app and the web project, have to be set as start-up project. The solution property page should look like this: