I'm using MVC 4 from Internet template with simple membership provider. Site is running in Azure WebSites and SQL is also in Azure.
Sadly, I got error every time after I publish new version.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
I figured it out, that if I remove cookies from my browser the site is start working again.
Any ideas how to fix it?
Thanks.
EDIT: I found exactly same problem here.
Suggested solution https://stackoverflow.com/a/12991835/1585397 is "somehow" working. Sometimes is, sometimes isn't..