Problem with Provider Management in ASP.NET 2.0

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2006
Posts: 14
Reputation: Texpert is an unknown quantity at this point 
Solved Threads: 0
Texpert's Avatar
Texpert Texpert is offline Offline
Newbie Poster

Problem with Provider Management in ASP.NET 2.0

 
0
  #1
Aug 19th, 2006
Hi,

I am developing this app using ASP.NET 2.0, SQL Server 2005 express and VS 2005 express edition. All I am trying to do is use Login Web controls provided in ASP.NET 2.0 for my user login pages. When I go to ASP.NET configuration and click on Security tab I get following error
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database.
and when I try "Choose Data Source" I get error

Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.
I've ran aspnet_regsql wizard and it has created role and membership tables in my database. I can connect to the database from the other pages of the application. Here is my web.config
  1. <?xml version="1.0"?>
  2. <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  3. <appSettings>
  4. <add key="CompanyName" value="Kendall Park Learning Center" />
  5. </appSettings>
  6. <connectionStrings>
  7. <add name="KPLC_OneSourceConnectionString1" connectionString="Data Source=TEXPERT002;Initial Catalog=KPLC_OneSource;Integrated Security=True"
  8. providerName="System.Data.SqlClient" />
  9. </connectionStrings>
  10. <system.web>
  11. <compilation debug="true" strict="false" explicit="true"/>
  12. <pages>
  13. <namespaces>
  14. <clear/>
  15. <add namespace="System"/>
  16. <add namespace="System.Collections"/>
  17. <add namespace="System.Collections.Specialized"/>
  18. <add namespace="System.Configuration"/>
  19. <add namespace="System.Text"/>
  20. <add namespace="System.Text.RegularExpressions"/>
  21. <add namespace="System.Web"/>
  22. <add namespace="System.Web.Caching"/>
  23. <add namespace="System.Web.SessionState"/>
  24. <add namespace="System.Web.Security"/>
  25. <add namespace="System.Web.Profile"/>
  26. <add namespace="System.Web.UI"/>
  27. <add namespace="System.Web.UI.WebControls"/>
  28. <add namespace="System.Web.UI.WebControls.WebParts"/>
  29. <add namespace="System.Web.UI.HtmlControls"/>
  30. </namespaces>
  31. </pages>
  32. <authentication mode="Windows"/>
  33. </system.web>
  34. </configuration>

Has anyone used login controls with SQL Server 2005 express ? can you please tell me what am I doing wrong ?

thanks in advance.

Tejoo.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 1
Reputation: Jack12 is an unknown quantity at this point 
Solved Threads: 0
Jack12 Jack12 is offline Offline
Newbie Poster

Re: Problem with Provider Management in ASP.NET 2.0

 
0
  #2
Apr 23rd, 2008
Simply Reinstall your windows XP or What ever you have.........
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,293
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: Problem with Provider Management in ASP.NET 2.0

 
0
  #3
Apr 23rd, 2008
Hi Texpert I would advise you to ignore Jack12's response there, not very good advice. I have had this issue before myself but running the aspnet_regsql resolved it. I might recommend that you retry the utility and get back to us? hope this helps!
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,293
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso

Re: Problem with Provider Management in ASP.NET 2.0

 
0
  #4
Apr 23rd, 2008
make sure your web.config has forms authentication

</namespaces>
</pages>
<authentication mode="Forms"/>
</system.web>
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC