WEB.CONFIG connection problemhttp://forums.asp.net/t/1793663.aspx/1?WEB+CONFIG+connection+problemTue, 24 Apr 2012 02:07:36 -040017936634936176http://forums.asp.net/p/1793663/4936176.aspx/1?WEB+CONFIG+connection+problemWEB.CONFIG connection problem <p>I am trying to connect my website to my &nbsp;asp.net memebership on my database which i have hosted. I have added my connection strings and i still cant figure out the problem that is causing the memebership to stay local.</p> <p>I have run the regSQL ect.</p> <pre class="prettyprint">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=152368 --&gt; &lt;configuration&gt; &lt;connectionStrings&gt; &lt;add name=&quot;joanton7865org7272_youthpodcastConnectionString&quot; connectionString=&quot;Data Source=s1.************;Initial Catalog=YouthPodcast; User ID=*****;Password=******;Integrated Security=True;&quot; providerName=&quot;System.Data.SqlClient&quot; /&gt; &lt;add name=&quot;YouthPodcastEntities&quot; connectionString=&quot;metadata=res://*/YouthPodcastEntities.csdl|res://*/YouthPodcastEntities.ssdl|res://*/YouthPodcastEntities.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=s1.***********,6521;initial catalog=YouthPodcast;persist security info=True;user id=*******;password=********;MultipleActiveResultSets=True;App=EntityFramework&amp;quot;&quot; providerName=&quot;System.Data.EntityClient&quot; /&gt; &lt;/connectionStrings&gt; &lt;appSettings&gt; &lt;add key=&quot;webpages:Version&quot; value=&quot;2.0.0.0&quot; /&gt; &lt;add key=&quot;webpages:Enabled&quot; value=&quot;true&quot; /&gt; &lt;add key=&quot;PreserveLoginUrl&quot; value=&quot;true&quot; /&gt; &lt;add key=&quot;ClientValidationEnabled&quot; value=&quot;true&quot; /&gt; &lt;add key=&quot;UnobtrusiveJavaScriptEnabled&quot; value=&quot;true&quot; /&gt; &lt;/appSettings&gt; &lt;system.web&gt; &lt;compilation debug=&quot;true&quot; targetFramework=&quot;4.5&quot; /&gt; &lt;httpRuntime targetFramework=&quot;4.5&quot; encoderType=&quot;System.Web.Security.AntiXss.AntiXssEncoder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt; &lt;machineKey compatibilityMode=&quot;Framework45&quot; /&gt; &lt;authentication mode=&quot;Forms&quot;&gt; &lt;forms loginUrl=&quot;~/Account/Login&quot; timeout=&quot;2880&quot; /&gt; &lt;/authentication&gt; &lt;pages&gt; &lt;namespaces&gt; &lt;add namespace=&quot;System.Web.Helpers&quot; /&gt; &lt;add namespace=&quot;System.Web.Mvc&quot; /&gt; &lt;add namespace=&quot;System.Web.Mvc.Ajax&quot; /&gt; &lt;add namespace=&quot;System.Web.Mvc.Html&quot; /&gt; &lt;add namespace=&quot;System.Web.Routing&quot; /&gt; &lt;add namespace=&quot;System.Web.WebPages&quot; /&gt; &lt;/namespaces&gt; &lt;/pages&gt; &lt;profile defaultProvider=&quot;DefaultProfileProvider&quot;&gt; &lt;providers&gt; &lt;add name=&quot;DefaultProfileProvider&quot; type=&quot;System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; connectionStringName=&quot;joanton7865org7272_youthpodcastConnectionString&quot; applicationName=&quot;/&quot; /&gt; &lt;/providers&gt; &lt;/profile&gt; &lt;membership&gt; &lt;providers&gt; &lt;add connectionStringName=&quot;joanton7865org7272_youthpodcastConnectionString&quot; enablePasswordRetrieval=&quot;false&quot; enablePasswordReset=&quot;true&quot; requiresQuestionAndAnswer=&quot;false&quot; requiresUniqueEmail=&quot;false&quot; maxInvalidPasswordAttempts=&quot;5&quot; minRequiredPasswordLength=&quot;6&quot; minRequiredNonalphanumericCharacters=&quot;0&quot; passwordAttemptWindow=&quot;10&quot; applicationName=&quot;/&quot; name=&quot;DefaultMembershipProvider&quot; type=&quot;System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; /&gt; &lt;/providers&gt; &lt;/membership&gt; &lt;roleManager&gt; &lt;providers&gt; &lt;add connectionStringName=&quot;joanton7865org7272_youthpodcastConnectionString&quot; applicationName=&quot;/&quot; name=&quot;DefaultRoleProvider&quot; type=&quot;System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; /&gt; &lt;/providers&gt; &lt;/roleManager&gt; &lt;/system.web&gt; &lt;system.webServer&gt; &lt;validation validateIntegratedModeConfiguration=&quot;false&quot; /&gt; &lt;modules runAllManagedModulesForAllRequests=&quot;true&quot; /&gt; &lt;/system.webServer&gt; &lt;runtime&gt; &lt;assemblyBinding xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name=&quot;System.Web.Helpers&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; /&gt; &lt;bindingRedirect oldVersion=&quot;1.0.0.0-2.0.0.0&quot; newVersion=&quot;2.0.0.0&quot; /&gt; &lt;/dependentAssembly&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name=&quot;System.Web.Mvc&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; /&gt; &lt;bindingRedirect oldVersion=&quot;1.0.0.0-4.0.0.0&quot; newVersion=&quot;4.0.0.0&quot; /&gt; &lt;/dependentAssembly&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name=&quot;System.Web.WebPages&quot; publicKeyToken=&quot;31bf3856ad364e35&quot; /&gt; &lt;bindingRedirect oldVersion=&quot;1.0.0.0-2.0.0.0&quot; newVersion=&quot;2.0.0.0&quot; /&gt; &lt;/dependentAssembly&gt; &lt;dependentAssembly&gt; &lt;assemblyIdentity name=&quot;System.Net.Http&quot; publicKeyToken=&quot;b03f5f7f11d50a3a&quot; culture=&quot;neutral&quot; /&gt; &lt;bindingRedirect oldVersion=&quot;0.0.0.0-4.0.0.0&quot; newVersion=&quot;4.0.0.0&quot; /&gt; &lt;/dependentAssembly&gt; &lt;/assemblyBinding&gt; &lt;/runtime&gt; &lt;/configuration&gt;</pre> <p><br> <br> </p> 2012-04-17T08:18:44-04:004936190http://forums.asp.net/p/1793663/4936190.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p></p> <blockquote><span class="icon-blockquote"></span> <h4>inkey</h4> I have added my connection strings and i still cant figure out the problem that is causing the memebership to stay local.</blockquote> <p></p> <p>Please put <em><strong>clear</strong> </em>here :</p> <p>&nbsp;&lt;membership&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;providers&gt;<br> <em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </em>&lt;<em><strong>clear</strong></em>/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p> 2012-04-17T08:26:28-04:004936211http://forums.asp.net/p/1793663/4936211.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p></p> <blockquote><span class="icon-blockquote"></span> <h4>ignatandrei</h4> <p></p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>inkey</h4> I have added my connection strings and i still cant figure out the problem that is causing the memebership to stay local.</blockquote> <p></p> <p>Please put <em><strong>clear</strong> </em>here :</p> <p>&nbsp;&lt;membership&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;providers&gt;<br> <em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </em>&lt;<em><strong>clear</strong></em>/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p> <p></p> </blockquote> <p></p> <p></p> <p>Done that but now getting a error in my membership saying&nbsp;<span id="content_content_exceptionMessageLabel0">&nbsp;</span><span></span><span id="content_content_exceptionMessageLabel1">Default Membership Provider could not be found.</span></p> 2012-04-17T08:37:16-04:004936240http://forums.asp.net/p/1793663/4936240.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p>Set the default provider to your own;</p> <p>&lt;membership <strong>defaultProvider=&quot;DefaultMembershipProvider</strong>&quot;&gt; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;providers&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;clear/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add connectionStringName=&quot;joanton7865org7272_youthpodcastConnectionString&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enablePasswordRetrieval=&quot;false&quot; enablePasswordReset=&quot;true&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; requiresQuestionAndAnswer=&quot;false&quot; requiresUniqueEmail=&quot;false&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxInvalidPasswordAttempts=&quot;5&quot; minRequiredPasswordLength=&quot;6&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minRequiredNonalphanumericCharacters=&quot;0&quot; passwordAttemptWindow=&quot;10&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applicationName=&quot;/&quot; <strong>name=&quot;DefaultMembershipProvider</strong>&quot; type=&quot;System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; /&gt; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/providers&gt; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/membership&gt;</p> 2012-04-17T08:56:55-04:004936264http://forums.asp.net/p/1793663/4936264.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p></p> <blockquote><span class="icon-blockquote"></span> <h4>mm10</h4> <p></p> <p>Set the default provider to your own;</p> <p>&lt;membership <strong>defaultProvider=&quot;DefaultMembershipProvider</strong>&quot;&gt; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;providers&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;clear/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;add connectionStringName=&quot;joanton7865org7272_youthpodcastConnectionString&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enablePasswordRetrieval=&quot;false&quot; enablePasswordReset=&quot;true&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; requiresQuestionAndAnswer=&quot;false&quot; requiresUniqueEmail=&quot;false&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxInvalidPasswordAttempts=&quot;5&quot; minRequiredPasswordLength=&quot;6&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minRequiredNonalphanumericCharacters=&quot;0&quot; passwordAttemptWindow=&quot;10&quot; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applicationName=&quot;/&quot; <strong>name=&quot;DefaultMembershipProvider</strong>&quot; type=&quot;System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; /&gt; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/providers&gt; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/membership&gt;</p> <p></p> </blockquote> <p></p> <p></p> <p>Having now done that i getting a different error in my membership saying &quot;The provider did not return a ProviderManifestToken string&quot;</p> 2012-04-17T09:12:12-04:004936311http://forums.asp.net/p/1793663/4936311.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p>Check your connection string. Are you using integrated security OR SQL Server login?</p> <p>Try this if you want to use integrated security:</p> <p>&lt;add name=&quot;joanton7865org7272_youthpodcastConnectionString&quot; connectionString=&quot;Server=s1.************;Database=YouthPodcast;Trusted_Connection=True;&quot; providerName=&quot;System.Data.SqlClient&quot; /&gt;</p> <p>..or this if you want to use a SQL Server login:</p> <p>&lt;add name=&quot;joanton7865org7272_youthpodcastConnectionString&quot; connectionString=&quot;Data Source=s1.************;Initial Catalog=YouthPodcast;User Id=username;Password=password;&quot; providerName=&quot;System.Data.SqlClient&quot; /&gt;</p> 2012-04-17T09:38:54-04:004936349http://forums.asp.net/p/1793663/4936349.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p></p> <blockquote><span class="icon-blockquote"></span> <h4>mm10</h4> <p></p> <p>Check your connection string. Are you using integrated security OR SQL Server login?</p> <p>Try this if you want to use integrated security:</p> <p>&lt;add name=&quot;joanton7865org7272_youthpodcastConnectionString&quot; connectionString=&quot;Server=s1.************;Database=YouthPodcast;Trusted_Connection=True;&quot; providerName=&quot;System.Data.SqlClient&quot; /&gt;</p> <p>..or this if you want to use a SQL Server login:</p> <p>&lt;add name=&quot;joanton7865org7272_youthpodcastConnectionString&quot; connectionString=&quot;Data Source=s1.************;Initial Catalog=YouthPodcast;User Id=username;Password=password;&quot; providerName=&quot;System.Data.SqlClient&quot; /&gt;</p> <p></p> </blockquote> <p></p> <p></p> <p>I am trying to use SQLServer Login but i have used your connection string and now i get this&nbsp;<span>An error occurred while executing the command definition. See the inner exception for details.</span></p> <p></p> 2012-04-17T09:53:04-04:004936374http://forums.asp.net/p/1793663/4936374.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p>Does the error occur in your MembershipProvider? Use the debugger in Visual Studio to determine where the exception occurs. It's probably something wrong with your provider.</p> 2012-04-17T10:05:10-04:004936450http://forums.asp.net/p/1793663/4936450.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p>yea the error occurs when im using the membership</p> 2012-04-17T10:36:01-04:004936672http://forums.asp.net/p/1793663/4936672.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p></p> <blockquote><span class="icon-blockquote"></span> <h4>inkey</h4> <p></p> <p>yea the error occurs when im using the membership</p> <p></p> </blockquote> <p></p> <p>Correct the error in your code then...</p> 2012-04-17T12:25:07-04:004936725http://forums.asp.net/p/1793663/4936725.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p>Why do you have to have two databases?</p> 2012-04-17T12:54:42-04:004938325http://forums.asp.net/p/1793663/4938325.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p>One is the connection using the entity framework and the other is the connection string that i was using for the membership</p> 2012-04-18T09:47:41-04:004938652http://forums.asp.net/p/1793663/4938652.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p></p> <blockquote><span class="icon-blockquote"></span> <h4>inkey</h4> i getting a different error in my membership saying &quot;The provider did not return a ProviderManifestToken string&quot;</blockquote> <p></p> <p>this is an EF error string.</p> <p></p> 2012-04-18T10:54:30-04:004938759http://forums.asp.net/p/1793663/4938759.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p></p> <blockquote><span class="icon-blockquote"></span> <h4>inkey</h4> One is the connection using the entity framework and the other is the connection string that i was using for the membership</blockquote> <p></p> <p>Sorry, I was just wondering why they are two separate databases, if that cant be helped then thats fine but if this is your own project you should combine then!</p> 2012-04-18T11:35:39-04:004938849http://forums.asp.net/p/1793663/4938849.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p></p> <blockquote><span class="icon-blockquote"></span> <h4>bojangles</h4> <p></p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>inkey</h4> One is the connection using the entity framework and the other is the connection string that i was using for the membership</blockquote> <p></p> <p>Sorry, I was just wondering why they are two separate databases, if that cant be helped then thats fine but if this is your own project you should combine then!</p> <p></p> </blockquote> <p></p> <p></p> <p>Sorry it is one database</p> 2012-04-18T12:09:33-04:004947449http://forums.asp.net/p/1793663/4947449.aspx/1?Re+WEB+CONFIG+connection+problemRe: WEB.CONFIG connection problem <p>Hi</p> <p>Change the providerName of the &quot;YouthPodcastEntities&quot; to &quot;System.Data.SqlServerCe.4.0&quot;</p> <p>Hope this helpful<br> Regards<br> Young Yang</p> 2012-04-24T02:07:36-04:00