473,502 Members | 7,848 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11769
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
3534
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
4901
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
1928
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
7890
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
8950
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
2280
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
11557
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
1426
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
1435
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
7244
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,...
0
7302
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6955
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7434
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5542
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4652
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3146
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1475
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
355
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.