0

I am working on ASP.net project. I have made my main database using sql server. and I have also used ASPNETDB.MDF database as auto generate database. At localhost the whole project run perfectly and the ASPNETDB.MDF is also generate automatically.

But after hosting the website, the ASPNETDB.MDF didn't generate automatically. I have checked all the things regarding version of .NET but all things are perfect. Even the connection with sql server is also established perfectly. Just the main issue is related to ASPNETDB.MDF which didn't generate automatically on server and shows below error.

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)

Please anybody help me. I try lots of ways but I didn't get any solutions from that.

Thanks in advance.

soumya
  • 3,801
  • 9
  • 35
  • 69
Nidhi Shah
  • 65
  • 1
  • 7

0 Answers0