How to use ASPNETDB on shared hosting?

birmstoorsKar

New Member
On my asp.net site I use local DB, connection string is \[code\]Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\MyDataBase.mdf;Integrated Security=True;Connect Timeout=30\[/code\]So, MyDataBase.mdf is in APP_DATA folder.I need to use standard asp.net membership provider, for that I run utility \[code\]C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regsql.exe\[/code\] and it created me new DB ASPNETDB.MDF (and log aspnetdb_log.ldf) in APP_DATA folder, I filled it with users and roles via "ASP.NET Configuration"I uploaded it to my shared hosting and site works great, inclede getting data from MyDataBase.mdf database,but once I want login user which is in ASPNETDB.MDF, site throws an error:\[quote\] 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)\[/quote\]How to resolve that problem?Thank you!
 
Back
Top