Vulnerability in EPiServer.Forms
I get this DB Error on saving a new page programmatically:
"The INSERT statement conflicted with the FOREIGN KEY constraint \"FK_tblWorkContentProperty_tblContent\". The conflict occurred in database \"MyDbName\", table \"dbo.tblContent\", column 'pkID'."
The code which always worked is:
public static ContentReference SaveContentToPublishWithNoAccess(this IContentRepository contentRepository, IContent content)
return contentRepository.Save(content, SaveAction.Publish, AccessLevel.NoAccess);
What can be the reason? This happens only for one page that i am creating but i cannot see a difference to the others.I have restarted IIS and cleared the trash. Since it's on local i can also debug.
Are you using shared database? I mean, same database is being used by other developers too?
The following link might be related
If not, please let me know
Do you say that this error occurs only for one page that you are creating? And not for other pages you are creating?
Same page type, or different page type?