asp.netsql-serverhostinglogin-controlcreateuserwizard

createuserwizard/asp login controls problems hostgator


I used vs web developer to build my first website. i've been following the walkthroughs, everything has sort of been going swimmingly...or as swimmingly as someone fyling by the seat of their pants can go...and now i'm trying to learn how to deploy.

as mentioned in the title, i'm using hostgator. the site uses the createuserwizard and the login controls. for some reason, those controls do not work. however, i can add new records to the database, the gridview and datasearches by way of stored procedures all work.

this is the error i get when i try to login/create a new user:

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)

any help would be greatly appreciated i don't know what to do and i'm sorry to say but this is my first time trying to build a site of this nature.


Solution

  • Solved!

    this was in the connection string portion of my web.config file:

    <remove name="LocalSqlServer"/>
    <add name="LocalSqlServer" connectionString="connStr" providerName="System.Data.SqlClient" />
    

    out of desperation i changed it to this:

    <remove name="LocalSqlServer"/>
    <add name="LocalSqlServer" connectionString="Server=[serverip]; Database=db; User Id=user; Password=pass; Initial Catalog=db" providerName="System.Data.SqlClient"/>
    

    problem solved, god only knows why.