A nested site and EF 4.3.1 gave me trouble.
The problem was caused by what appeared to be duplicates in the connection strings and library utilized by both sites.
Presumably, it was loading the connection strings from the parent site but failing to load the strings from the sub-site.
Add this to your sub-site:
<connectionStrings> <clear/> ...your normal connection strings </connectionStrings>