Solved

How to change AspNetSQLProvider from SQLExpress to SQL2K.  And why do I get this error?

Posted on 2007-03-19
5
986 Views
Last Modified: 2013-12-17
I keep ketting this error when I try to implement the AspNetSQLProvider in the ASP.NET 2.0 Config tab of IIS.

I created an AJAX-exnable web solution (not a web application).  I first created a website (192.168.0.154), and pointed it to the folder that the above soltion was later placed in.

I then went into the ASP.NET 2.0 Tab in IIS, clicked on Global, and entered a connection name and string for LocalSQLServer.  I changed the login management to Forms, pointing to login.aspx page.

In VS2005, I clicked on the ASP.NET Web Application Configuration web page button, and selected the Provider Management link.  I click on the 'single provider' link, and click on test.  I get the following response:

Provider Management  
Successfully established a connection to the database.  

So, I KNOW I have a successful connection for the LocalSQLServer (I DO NOT WANT TO USE SQLEXPRESS.  I am using SQL2K, which is why I changed it).

When I go to click on the 'Security' tab in the ASP.NET Application Provider Configuration web page, I get the 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: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.


Now, it's obvious that somewhere, this stupid VS2K5 or IIS or something was supposed to populate the database I pointed to with a bunch of asp_membership tables and stored procs--which if obviously DID NOT DO.

So, after searching for about an hour on the web, finding zero answers of anyone that knows how to deal with or fix this problem, I am here to offer an expert 500 big ones to help solve this problem for me.

Thanks in advance for your help.  I wish I had become a plumber instead of a programmer.
0
Comment
Question by:louisiana_blues
  • 3
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 500 total points
ID: 18753350
The database does not get populated automatically. Run the aspnet_regsql.exe from the Visual Studio 2005 Command Prompt and follow the wizard
0
 

Author Comment

by:louisiana_blues
ID: 18753432
Hi DarkoLord. Thanks for responding...

How do I find this 'aspnet_regsql.exe from the Vistual Studio 2005'?  I don't see it anywhere in any menu....could you be more specific?  Thanks...
0
 

Author Comment

by:louisiana_blues
ID: 18753441
Oh. Sorry, I didn't see the 'command prompt'.  But I also don't know how to get a 'visual studio 2005 command prompt' either.  Is that just Start->Run->'cmd'?  I tried that and it said, no program exists...
0
 

Author Comment

by:louisiana_blues
ID: 18753478
Hey darko...

Thanks.  That did the trick!  I had to navigate to the windows\Micorosoft.NET\2.0..... folder

Is there an actual VIsutal Studio Command Prompt?  I've seen it once in my 'recent programs' on my start menu, but it's gone, and I never figured out how it got there in the first place.

I'd truly appreciate it if you could let me know how to go directly to a VS2K5 Command Prompt.  I've already awarded you the points, so you don't have to, but....it's be nice! :)

Thanks again.  An A.
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 18754733
Hi,

VS 2k5 Command Prompt is usually located in Start -> Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt

In usage, it's not really different than normal Command Prompt, however it gets open with all necessary environment variables, so you don't have to navigate to those Windows\Microsoft.NET\.... folders manuallly but you can just run the commands directly...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now