943,981 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 5379
  • ASP.NET RSS
Aug 19th, 2006
0

Problem with Provider Management in ASP.NET 2.0

Expand Post »
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
Quote ...
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

Quote ...
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
ASP.NET Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Texpert is offline Offline
14 posts
since Jan 2006
Apr 23rd, 2008
0

Re: Problem with Provider Management in ASP.NET 2.0

Simply Reinstall your windows XP or What ever you have.........
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Jack12 is offline Offline
1 posts
since Apr 2008
Apr 23rd, 2008
0

Re: Problem with Provider Management in ASP.NET 2.0

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!
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
Apr 23rd, 2008
0

Re: Problem with Provider Management in ASP.NET 2.0

make sure your web.config has forms authentication

Quote ...
</namespaces>
</pages>
<authentication mode="Forms"/>
</system.web>
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: graphs / charts
Next Thread in ASP.NET Forum Timeline: Hidden characters (linebreaks) in string?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC