473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Custom Membership Provider: aspnet_CheckSchemaVersion?

WB
Hi,

I am revamping my company's website with ASP.Net 2.0. In order to use our
existing user data in our SQL 2000, I have written a custom membership
provider. However, when I try to logon with the Login control, it gives an
error:
System.Data.SqlClient.SqlException: Could not find stored procedure
'dbo.aspnet_CheckSchemaVersion'.

Is it because I have not run the aspnet_regsql.exe yet? Do I have to?

I took reference from the following two Microsoft articles and they didn't
mention about the aspnet_regsql.exe anyway.

http://msdn2.microsoft.com/en-us/lib...embership.aspx
http://msdn2.microsoft.com/en-us/lib.../yh26yfzy.aspx

Any comments?
YWB.
Nov 22 '05 #1
2 11765
I am assuming that since you wrote your own provider that you are connecting
to your own database tables rather than the membership tables in the
SQLMembershipProvider database. When you use the login controls it assumes
that you are going to that database unless you tell it otherwise. The error
you are getting shows that it's trying to access the SQLMembershipProvider
database which has not been created. You only run aspnet_regsql.exe if you
want to use the built-in database. Check out this post at the ASP.NET Forums
for instructions on wiring up a custom membership provider

http://forums.asp.net/1112968/ShowPost.aspx
--
Rick
"WB" wrote:
Hi,

I am revamping my company's website with ASP.Net 2.0. In order to use our
existing user data in our SQL 2000, I have written a custom membership
provider. However, when I try to logon with the Login control, it gives an
error:
System.Data.SqlClient.SqlException: Could not find stored procedure
'dbo.aspnet_CheckSchemaVersion'.

Is it because I have not run the aspnet_regsql.exe yet? Do I have to?

I took reference from the following two Microsoft articles and they didn't
mention about the aspnet_regsql.exe anyway.

http://msdn2.microsoft.com/en-us/lib...embership.aspx
http://msdn2.microsoft.com/en-us/lib.../yh26yfzy.aspx

Any comments?
YWB.

Nov 22 '05 #2
WB
Hi Rick,

Yes, you're right. I didn't set the type attribute correctly in the <add>
tag under <provider> in the web.config file. After changing it to the
namespace of my membership provider, it's working fine now.

Thanks!
YWB.

"Rick" wrote:
I am assuming that since you wrote your own provider that you are connecting
to your own database tables rather than the membership tables in the
SQLMembershipProvider database. When you use the login controls it assumes
that you are going to that database unless you tell it otherwise. The error
you are getting shows that it's trying to access the SQLMembershipProvider
database which has not been created. You only run aspnet_regsql.exe if you
want to use the built-in database. Check out this post at the ASP.NET Forums
for instructions on wiring up a custom membership provider

http://forums.asp.net/1112968/ShowPost.aspx
--
Rick
"WB" wrote:
Hi,

I am revamping my company's website with ASP.Net 2.0. In order to use our
existing user data in our SQL 2000, I have written a custom membership
provider. However, when I try to logon with the Login control, it gives an
error:
System.Data.SqlClient.SqlException: Could not find stored procedure
'dbo.aspnet_CheckSchemaVersion'.

Is it because I have not run the aspnet_regsql.exe yet? Do I have to?

I took reference from the following two Microsoft articles and they didn't
mention about the aspnet_regsql.exe anyway.

http://msdn2.microsoft.com/en-us/lib...embership.aspx
http://msdn2.microsoft.com/en-us/lib.../yh26yfzy.aspx

Any comments?
YWB.

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the...
3
by: Adam J Knight | last post by:
Hi all, I am in the process of creating a custom membership provider (ASP.NET 2.0): Currently I am inheriting from MembershipProvider which isn't a problem. However, the...
0
by: paulmac106 | last post by:
Hi, I was able to get the login control to work with my custom membership provider (a sql db table), but the "remember me" function and the function that will send a user their forgotten...
4
by: Ron | last post by:
Hi, I have created a custom membership provider that i use to create certain types of user accounts that only require a User Name and Password nothing else this code below works great if i use...
1
by: yaou | last post by:
Can anyone help me? I have written a custom membership provider but when I try to log in through login control, I get an error. This is what I did: 1. I made a class library called...
0
by: Mwob | last post by:
Hi all, I'm about to start creating a custom membership provider. Its for a website that already has a table of users in a single table, so I need to create a custom MP to talk to the data in...
1
by: Kirk | last post by:
I followed the procedure at this site (http://www.devx.com/asp/Article/ 29256/0/page/1) to create a custom membership provider on a ASP.NET Web Site. However, when I try this same method on a...
0
by: asnowfall | last post by:
After logging in, I am not able to redirect to the target url; and this happens only when I connect to the website using "http://machine- name:portname"; but not if I connect using either...
1
by: Erik | last post by:
Hi Everyone, Hopefully this is an easy one. I've googled around for the answer but cant find it. I have simple login page that authenticates via a web service. I am using a custom membership...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.