Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to change ASP.NET Configuration tool connection string
    primarykey
    data
    text
    <p>how can I change ASP.NET Configuration tool-s connection string name? (Which connection string will ASP.NET Configuration tool will use) I'm learning ASP.NET and everywhere and in book that I'm reading now theres connection string named: LocalSqlServer.</p> <p>I want to use my local sql server database instead of sql express to store Roles, Membership and other data. </p> <p>I have used aspnet_regsql.exe to create needed data structures in my database. after that I changed my web.config to look like:</p> <p><code>&lt;connectionStrings&gt; &lt;remove name="LocalSqlServer"/&gt; &lt;add name="LocalSqlServer" connectionString="Server=(LOCAL); Database=MyDatabase;Integrated Security=True" providerName="System.Data.SqlClient" /&gt; &lt;/connectionStrings&gt;</code></p> <p>but when I run ASP.NET Configuration tool it says that: "The connection name 'ApplicationServices' was not found in the applications configuration or the connection string is empty."</p> <p>ASP.NET Configuration tool uses connection string named: ApplicationServices not LocalSqlServer.</p> <p>cause of that I have to modify web.config to: <code>&lt;connectionStrings&gt; &lt;add name="ApplicationServices" connectionString="Server=(LOCAL); Database=MyDatabase;Integrated Security=True" providerName="System.Data.SqlClient" /&gt; &lt;/connectionStrings&gt;</code></p> <p>and everything works fine.</p> <p>I wish to know why the hell my web site uses connection string named: ApplicationServices and all books and online documentations uses LocalSqlServer? and how to change it to LocalSqlServer?</p> <p>I have: Windows 7 Sql Server 2008 R2 Visual Studio 2010 Premium Project type is website</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload