title: SQL Server not connecting
body: <p>I have created a form and connected to a SQL Server database. The data entered in the form enters into the database. But when I upload the same form into the upload the form gets submitted the but get an error saying. Please help me out</p>
  
  <blockquote>
    <p>Server Error in '/' Application. 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) Description: An unhandled exception occurred during the execution of the current web request.
    Please review the stack trace for more information about the error and
    where it originated in the code.</p>
    
    <p>Exception Details: System.Data.SqlClient.SqlException: 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)</p>
    
    <p>Source Error:</p>
    
    <p>Line 23:<br>
    Line 24:         SqlConnection con = new
    SqlConnection(@"Data Source=.\sqlexpress;Initial
    Catalog=Accomdation;Integrated Security=True");</p>
    
    <p>Line 25:         con.Open(); </p>
  </blockquote>