Getting an error on the winhost account

Discussion in 'Site Programming, Development and Design' started by dpcolgan, Feb 27, 2010.

  1. dpcolgan

    dpcolgan .net Programmer

    Hi. I am an asp.net / vb. net programmer. I am getting a peculiar error. I am using asp.net membership with my Winhost sql server 2008 db and vs 2005. I do not have any connections named "LocalsqlHost" in my web.config nor should I need one. When I run the project locally connecting up to the db there at Winhost I get a message the following message:

    "The connection name localSQLServer was not found in the applications configuration or the connection string is empty"

    My application looks for a connection string named "MainConn" - Haven't run into this anywhere else. Any ideas?
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    Try adding this in your applications web.config file under the connection string element.

    <remove name="LocalSqlServer" />
     

Share This Page