I'm running through the Get Started with Azure Cloud Services tutorial.
When I build and run the sample project, Database I/O errors with:
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: 50 -
Local Database Runtime error occurred. Cannot create an automatic instance.
See the Windows Application event log for error details.)
I am running
VS.NET 2017
, and did make the recommended change:If you're using Visual Studio 2015 or higher, change the SQL Server connection string in the application Web.config file of the ContosoAdsWeb project and in the ServiceConfiguration.Local.cscfg file of the ContosoAdsCloudService project. In each case, change "(localdb)\v11.0" to " (localdb)\MSSQLLocalDB".
In my
ServiceConfiguration.Local.cscfg
:<Setting name="ContosoAdsDbConnectionString" value="Data Source=(localdb)\MSSQLLocalDB; Initial Catalog=ContosoAds; Integrated Security=True; MultipleActiveResultSets=True;" />
I verified that the SQL Express
localdb
exists and can be connected to:
If anyone has any ideas or suggestions, I would be very grateful. Thanks!
Edit: Windows Application Log Error (it's the same error, just repeated several times)