 |
| ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

August 27th, 2006, 07:46 AM
|
|
Registered User
|
|
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi everyone.
I will be very thankful to you if you help me fix it.
Actually I have the same issue, I have scripted successfully the aspnet_... tables to my host, the RoleManager is working fine and I'm able to manage the roles, however I'm unable to create members using the Membership.CreateUser method. I get this exception:
The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'. However, the current database schema is not compatible with this version. You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.
I've checked the aspnet_SchemaVersions table, it contains the required six rows.
my DB server is SQL 2K.
Please help me, I'm frustrated with this.
|
|

August 27th, 2006, 04:28 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
A pretty obvious question, but are you sure that you and ASP.NET are looking at the same database?
How does your connection string look like? Did you reconfigure all providers in the web.config to use your new connection string?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|

August 28th, 2006, 02:30 AM
|
|
Registered User
|
|
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks God, it is solved.
I don't know how, after somtime it worked automatically.
This is very strange.
Thank you Imar for your interest and for this great forum.
|
|

August 28th, 2006, 05:22 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
You're welcome./ Glad it's working.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

September 6th, 2006, 08:31 AM
|
|
Registered User
|
|
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi all.
I've just finished reading this topic but i'm still lost.
In fact, I've a Web.config file in each folder that i want to limit access to authenticated users. here is an example of one (folder's name is admin):
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<authorization>
<allow roles="Administrateur" />
<deny users="*" />
</authorization>
</system.web>
</configuration>
... and in the main Web.config file there is no <authorization> tag
So when i run my app in VS2005 it's OK, if i try to access to a file in this folder, i'm redirected to my login page.....
..but..
When i'm not in VS2005, i can access to files in this folder (without authentication).
What's wrong?!!
Thanks for any help
Regards,
Oro
P.S :"sorry for my english :p"
|
|
 |