Note that there are some explanatory texts on larger screens.

plurals
  1. POSimpleMembership API connectionStringName error
    primarykey
    data
    text
    <p>I am trying to use <a href="http://anderly.com/2011/05/18/simplemembership-mvc3-1-1-published/" rel="nofollow">SimpleMembership</a> in my MVC 3 application. However I get the following error:</p> <blockquote> <p>System.ArgumentException was unhandled by user code. Unable to find the requested .Net Framework Data Provider. It may not be installed.</p> </blockquote> <p>I'm using EF and the framework is obviously there since my app works perfect without the SimpleMembership API</p> <p>Here is the Set Up in the Web config file:</p> <pre><code>&lt;connectionStrings&gt; &lt;add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /&gt; &lt;add name="SeniorProjectModelContainer" connectionString="metadata=res://*/Models.SeniorProjectModel.csdl|res://*/Models.SeniorProjectModel.ssdl|res://*/Models.SeniorProjectModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;Data Source=GOGOTOPPY;Initial Catalog=SPMT;Integrated Security=True;MultipleActiveResultSets=True&amp;quot;" providerName="System.Data.EntityClient" /&gt; &lt;/connectionStrings&gt; </code></pre> <p>And heres how it looks in the in the Membership file in the App_Start folder:</p> <pre><code>WebSecurity.InitializeDatabaseConnection(connectionStringName: "SeniorProjectModelContainer", userTableName: "Users", userIdColumn: "UserId", userNameColumn: "UserName", autoCreateTables: true); </code></pre> <p>Any help would be greatly appreciated! </p> <pre><code>Update: </code></pre> <p>The quick work around was to take the metadata part out of the connection string and change the provider name to the SqlClient so it looks similar to this:</p> <pre><code>&lt;connectionStrings&gt; &lt;add name="Membership" connectionString="Data Source=serverName;Database=datebaseName;User ID=idName;Password=password;Trusted_Connection=False;Encrypt=True;" providerName="System.Data.SqlClient" /&gt; &lt;/connectionStrings&gt; </code></pre> <p>Is there any downside of the connection string looking like this?</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.
 

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