GeekO
05-16-2008, 07:55 AM
I have developed a website using Visual Studio 2008 with roles. The site works perfect locally. Now i have used the copy feature and copied over the website to asp.net, i used the sql tools and attached the MDF. First i was getting the error where the membership provider was looking for LocalSqlServer so i added these two lines to the <connections>
<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' />
This fixed the main error so the age will show but i still cannot login without an error and when i try to view other pages which deal with membership and roles i also get errors. Is there something special i have to do to change from localhost to remote server? Any ideas?
<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' />
This fixed the main error so the age will show but i still cannot login without an error and when i try to view other pages which deal with membership and roles i also get errors. Is there something special i have to do to change from localhost to remote server? Any ideas?