 |
| ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Professionals 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
|
|
|
|

April 30th, 2011, 05:35 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
aspnetdb database
I want to implement security in my web project. I am using AspNetSqlMembershipProvider. But I do not want to use the aspnet.mdf database. I want to use all the tables, views and sp of aspnetdb.mdf to my application database. In my application database I have created all the tables, views and sp. But when I try to create a new user then it is throwing an error.'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'.Please help me.
__________________
Happy coding...
Arnab Roy Chowdhury.
|
|

April 30th, 2011, 05:46 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
You need to do exactly what the error message tells you:
Quote:
|
You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory),
|
Cheers,
Imar
|
|

April 30th, 2011, 05:50 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have other tables and store procedure in my database. Is it possible to place all the table, views and store procedures of aspnetdb database in my datatabese?
__________________
Happy coding...
Arnab Roy Chowdhury.
|
|

April 30th, 2011, 06:06 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
How to create all the tables, views and store procedures of aspnetdb database to my existing database using aspnet_regsql.exe??
__________________
Happy coding...
Arnab Roy Chowdhury.
|
|

April 30th, 2011, 06:08 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Just run it, and it will guide you through the process with a wizard.
Alternatively, run it from a command prompt and use /? to see the parameters you can pass to it.
Cheers,
Imar
|
|

April 30th, 2011, 06:52 AM
|
|
Authorized User
|
|
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
To test the procedure. I have created a new application and attached the Northwnd database in to my application. Now i want to create the same structure in my northwnd database with all the northwnd database objects. So what I am trying to do is in my Northwnd database all the tables, views and store procedures of Northwnd database will be there and all the tables, views and store procedures of aspnetdb database also will be there.
For that i am using aspnet_regsql.exe.
Code:
aspnet_regsql.exe/C Data Source=.\SQLEXPRESS;AttachDbFilename=D:\Arnab's Documents\My Websites\WebSite3\App_Data\NORTHWND.MDF;Integrated Security=True;User Instance=True
But it is giving an error that 'Source=.\SQLEXPRESS;AttachDbFilename="D:\Arnab's' is invalid
__________________
Happy coding...
Arnab Roy Chowdhury.
|
|

April 30th, 2011, 10:02 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
See where this breaks? At the space in the path. My guess is that you need quotes around the path.
Also, you probably don't want a quote in your path; this will lead to lots of problems. Store the site in something like C:\Sites\Website3 instead; a lot easier....
Imar
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| about ASPNetDB.mdf |
bela_sush |
ASP.NET 3.5 Basics |
1 |
October 18th, 2010 12:14 PM |
| about ASPNetDB.mdf |
bela_sush |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
2 |
October 18th, 2010 10:56 AM |
| ASPNETDB.mdf again |
Will |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
2 |
April 28th, 2009 04:30 PM |
| ASPNETDB.mdf |
Will |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 |
3 |
April 27th, 2009 01:07 PM |
| ASPNETDB |
sanindia |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
3 |
October 27th, 2006 05:56 PM |
|
 |