Can't add users

Discussion in 'Databases' started by legacydvdco, Nov 23, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello,


    I'm new to this whole ASP.NET 2.0 thing so please bear with me. Iam developing a website that has amembers areausing Visual Web Developer 2008 Express Edition. I've also created a remote ms2005 database on discountasp.net usingaspreq command.I am ableto addand manage roles, test connections etc. using the asp website administration tool. I just can't seem to create users. I get the message "An error was encountered. Please return to the previous page and try again". I think this may have something to do with my web.config file settings. Thay are as follows:







    <configuration>








    <appSettings/>


    <connectionStrings>


    <remove name="LocalSqlServer"/>


    <add name="LocalSqlServer"


    connectionString="Data Source=sql2k505.discountasp.net;&amp;#xD;&amp;#xA; Integrated Security=False;&amp;#xD;&amp;#xA; Initial Catalog=SQL2005_422826_legacydvco;&amp;#xD;&amp;#xA; User ID=SQL2005_422826_legacydvco_user;&amp;#xD;&amp;#xA; Password=*******"











    providerName="System.Data.SqlClient" />


    </connectionStrings>


    <system.web>





    <roleManager enabled="true" />


    <compilation debug="false">


    </compilation>





    <authentication mode="Forms">


    <forms name="SqlAuthCookie" timeout="10" />


    </authentication>











    </system.web>


    <system.net>


    <mailSettings>


    <smtp from="Legacy DVD Website">


    <network host="smtp.legacydvd.com" password="*******" userName="[email protected]" />


    </smtp>


    </mailSettings>


    </system.net>


    </configuration>


    Thanks in advance
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    I don't think the problem is caused by the connection string. If you can manage roles / test connections, your application should be connecting to the DB fine. The role / user provider should be using the same connection string.

    What was the exact error?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. The error message is "An error was encountered. Please return to the previous page and try again". I have since been testing over the internet. I am able to setup a user online but not through the website administration tool. I can then edit user through administration tool.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page