Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 1st, 2011, 09:23 AM
Registered User
Join Date: Mar 2011
Posts: 7
Thanks: 4
Thanked 0 Times in 0 Posts
Unhappy Error I don't understand

Hi everybody,
Please help me with this error...
I'm making the relationships between database tables, and there is a relation between a table i created "UserDetails" and the "aspnet_Membership" table where the UserID in (UserDetails) is a primary key and it's a foreign key in (asp_Membership).
But when I want to save this I get this error:

Unable to create relationship 'FK_aspnet_Membership_UserDetails'.
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_aspnet_Membership_UserDetails". The conflict occurred in database "C:\USERS\RUBA\DOCUMENTS\VISUAL STUDIO 2010\PROJECTS\PROJECT1\FIRST\SITE\APP_DATA\ASPNETD B.MDF", table "dbo.UserDetails", column 'UserID'.
Reply With Quote
  #2 (permalink)  
Old April 1st, 2011, 09:38 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

Hi there,

Is this related to my book? If so, can you sepcify the chapter and page number you're working on? If it's not, please post messages like these in an appropriate general forum such as one of the SQL Server, Visual Studio or ASP.NET forums.

That said, on which column in the membership table are you joining? Maybe it has already some constraints set?

Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
Rabruba (April 2nd, 2011)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't understand which errors metinhoclam XSLT 8 July 30th, 2010 04:54 AM
Please help me understand SeanDunn BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 3 November 14th, 2009 02:38 PM
I don't understand... jmsherry ASP.NET 2.0 Basics 17 July 23rd, 2007 12:28 PM
I still do not understand aude_poullain ASP.NET 1.0 and 1.1 Basics 2 February 7th, 2007 09:11 PM
i can't understand this error! ion Classic ASP Databases 2 September 23rd, 2003 03:57 PM

All times are GMT -4. The time now is 09:36 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.