<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Need to get ASPNETDB.MDF to work on remote server</title><link>http://forums.asp.net/thread/2429667.aspx</link><pubDate>Wed, 18 Jun 2008 01:59:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2429667</guid><dc:creator>jpcoliveros</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2429667.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2429667</wfw:commentRss><description>&lt;p&gt;Does the host provide hosting for SQL Server Express Edition as well? The UserInstance property in the connection string declaration is not supported in the full-blown SQL Server instance. What you can do is that run aspnet_regsql to configure the database provided for you on the remote server. Otherwise, if you insist on using the ASP.NET database, ensure that there&amp;#39;s a SSExpress instance present and verify with the hosting provider that you are getting the correct connection string name in order for SSExpress database to work in their servers. &lt;/p&gt;&lt;p&gt;HTH&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need to get ASPNETDB.MDF to work on remote server</title><link>http://forums.asp.net/thread/2429100.aspx</link><pubDate>Tue, 17 Jun 2008 18:22:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2429100</guid><dc:creator>drocco</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2429100.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2429100</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Note in the code that I&amp;#39;ve posted that I already tried that&lt;/p&gt;&lt;p&gt;&amp;nbsp;The users and application tables used &amp;quot;/&amp;quot; so I declared that in the web.config&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need to get ASPNETDB.MDF to work on remote server</title><link>http://forums.asp.net/thread/2429088.aspx</link><pubDate>Tue, 17 Jun 2008 18:18:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2429088</guid><dc:creator>guru_sarkar</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2429088.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2429088</wfw:commentRss><description>&lt;p&gt;check this: &lt;a href="http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Need to get ASPNETDB.MDF to work on remote server</title><link>http://forums.asp.net/thread/2429043.aspx</link><pubDate>Tue, 17 Jun 2008 18:00:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2429043</guid><dc:creator>drocco</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2429043.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2429043</wfw:commentRss><description>&lt;p&gt;My website is hosted remotely by a separate company, but I test it locally before launching anything&lt;/p&gt;&lt;p&gt;I wanted to set up an administrator portal for it, so I used WAT to configure membership/roles&lt;/p&gt;&lt;p&gt;It automatically created the database ASPNETDB.MDF and updated my web.config file&lt;/p&gt;&lt;p&gt;Everything worked fine locally, but after uploading it to the remote server, I got the error &amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;&lt;i&gt;An error has occurred while establishing a connection to
the server. &amp;nbsp;When connecting to SQL Server 2005, this failure may be
caused by the fact that under the default settings SQL Server does not
allow remote connections. (provider: SQL Network Interfaces, error: 26
- Error Locating Server/Instance Specified)&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/h2&gt;&lt;p&gt;So I started reading some articles on this issue and the steps that I&amp;#39;ve taken to try and correct this so far have been to start from scratch, delete the automatically created database and then use aspnet_regsql to create a new one&lt;/p&gt;&lt;p&gt;Then I used WAT to re-add my users/roles&lt;/p&gt;&lt;p&gt;Then I changed my web.config in the following areas&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;lt;connectionStrings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;remove name=&amp;quot;LocalSqlServer&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;LocalSqlServer&amp;quot; connectionString=&amp;quot;connection string provided by hosting company&amp;quot; providerName=&amp;quot;System.Data.SqlClient=&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/connectionStrings&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authentication mode=&amp;quot;Forms&amp;quot; /&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;roleManager enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;providers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clear /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add connectionStringName=&amp;quot;LocalSqlServer&amp;quot; applicationName=&amp;quot;/&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name=&amp;quot;AspNetSqlRoleProvider&amp;quot; type=&amp;quot;System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add applicationName=&amp;quot;/&amp;quot; name=&amp;quot;AspNetWindowsTokenRoleProvider&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type=&amp;quot;System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/providers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/roleManager&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;membership&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;providers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clear/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;AspNetSqlMembershipProvider&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type=&amp;quot;System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connectionStringName=&amp;quot;LocalSqlServer&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applicationName=&amp;quot;/&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/providers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/membership&amp;gt;&lt;/p&gt;&lt;p&gt;Then I uploaded the ASPNETDB.MDF and it&amp;#39;s log file to the ~/App_Data directory and updated my web.config file on the remote server&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now when I try to log in, I no longer receive the error, but it&amp;#39;s telling me that my credentials are incorrect&lt;/p&gt;&lt;p&gt;What&amp;#39;s going on here?&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>