I have some problem with the forum. When im not logged in then its ok. When im logged inn and try to view a thread then i get this error:
System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_MembersThreads_MemberInfo". The conflict occurred in database "kbsdesi_clubDB", table "dbo.MemberInfo", column 'memberid'.
The statement has been terminated.
Source Error:
Line 391: cmd.Parameters.AddWithValue("@memberid", memberid)
Line 392: conn.Open()
Line 393: cmd.ExecuteNonQuery()
Line 394: conn.Close()
Line 395: End Using
It has been ages since I have last looked at the forum for this project, if I remember Mark had a perfectly working forum for the kit but anyways ther is a page that has plenty of info for this problem as when you google the text you will find it all over
the place:
kbsdesign
Member
2 Points
18 Posts
Problem with forum
Oct 12, 2010 12:42 PM|LINK
Hi,
I have some problem with the forum. When im not logged in then its ok. When im logged inn and try to view a thread then i get this error:
System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_MembersThreads_MemberInfo". The conflict occurred in database "kbsdesi_clubDB", table "dbo.MemberInfo", column 'memberid'.
The statement has been terminated.
Source Error:
Source File: D:\hshome\kbsdesign\kbsdesign.web.surftown.nu\App_Code\Forums.vb Line: 393
Stack Trace:
aabruzzese
Contributor
2806 Points
759 Posts
Re: Problem with forum
Dec 09, 2010 03:42 PM|LINK
It has been ages since I have last looked at the forum for this project, if I remember Mark had a perfectly working forum for the kit but anyways ther is a page that has plenty of info for this problem as when you google the text you will find it all over the place:
http://norskwebforum.no/viewtopic.php?f=22&t=44014
They have it in non english but there are several code sections with the fix and how to apply it for each page invovled.