Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
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
 
Old August 27th, 2006, 07:46 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.




 
Old August 27th, 2006, 04:28 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old August 28th, 2006, 02:30 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.


 
Old August 28th, 2006, 05:22 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome./ Glad it's working.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old September 6th, 2006, 08:31 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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"







Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Membership Provider Scott663 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 1st, 2008 05:16 PM
Custom Membership Provider kulkarnimonica ASP.NET 2.0 Professional 0 June 21st, 2007 03:56 PM
ASP.NET SQL Membership Provider bignermo ASP.NET 2.0 Professional 2 March 20th, 2007 05:41 AM
Simple ASP.NET Membership Provider Login jumpseatnews ASP.NET 2.0 Basics 0 July 16th, 2006 10:53 AM
custom membership provider msrnivas General .NET 1 September 18th, 2005 04:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.