who can help me about web.config

Discussion in 'General troubleshooting' started by keeperman, Sep 3, 2010.

  1. who can help me in regard to web.config

    hi, when I publish my website. I got this "Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty."

    Winhost Knowledge Base says, http://support.Winhost.com/KB/a813/parser-error-message-connection-name-localsqlserver.aspx
    The solution is to modify my application's web.config as follows

    ==============
    <connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="Data Source=DBServerName;Integrated Security=false;Initial Catalog=DBName;User ID=DBLogin;Password=DBPassword" providerName="System.Data.SqlClient" />
    </connectionStrings>
    ================


    the problem is I don't know how to modify,this is my web.config
    ================
    <connectionStrings>
    <add name="MvcMusicStoreEntities" connectionString="metadata=res://*/Models.StoreDB.csdl|res://*/Models.StoreDB.ssdl|res://*/Models.StoreDB.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MvcMusicStore.mdf;Integrated Security=True;User Instance=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
    </connectionStrings>
    ====================

    Who can tell me how to modify it according as my web.config?
    Thanks very much!
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    Last edited by a moderator: Oct 14, 2015

Share This Page