SharePoint Designer 2010 does not open site


When attempting to open a site, SPD 2010 gives a plain error “Cannot open site” with details like

response code = “”, status = OK.


Make sure the following tag is in the web.config of the relevant site:

<serviceHostingEnvironment aspNetCompatibilityEnabled=”true” />

I had accidentally removed it and spent an hour figuring out what went wrong.