I have successfully hosted my mvc website on server.
But I’m not able to registered new user.
I have used following connection string.
<connectionStrings>
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
</connectionStrings>
Error is
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)
Using SQL membership tables for create user .
All going good on localhost but after hosting getting error.
Where I go wrong?
Sound like the aspnetdb.mdf file is not in the Data folder on the host can you confirm the App_Data directory and aspnetdb.mdf file exists on the host?