SQL Network Interfaces, error: 26 RRS feed

  • Question

  • I've built a website with asp.net & c# that was working well in localhost but when I uploaded it to smartasp.net it is showing this error(SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified). The connection string to database is: "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DB.mdf;Integrated Security=True;User Instance=True"

    And the database is located in App_Data folder. I've tried to change the connection to: "Data Source=.\SQLEXPRESS;AttachDbFilename=App_Data\DB.mdf;Integrated Security=True;User Instance=True", but the same problem can anybody help me.

    • Moved by Bob Beauchemin Sunday, March 30, 2014 2:48 PM Moved to the ADO.NET client-side forum
    Sunday, March 30, 2014 10:48 AM

All replies