Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 7.2 - INSERT statement conflicted with the FOREIGN KEY DNN 7.2 - INSERT statement conflicted with the FOREIGN KEY
Previous
 
Next
New Post
4/16/2014 7:31 PM
 

Hello

I have a public facing site running on Windows 2012 server and a separate instance of SQL 2012 as my database.

Internally all my site aliases are functioning fine - localhost, localhost/dotnetnuke/site, and internal ip address

The portal  is  #3, my portals and portalalias tables show all the proper entries.

When I try to access the site from my public IP or hosted DNS name I get:

 

The INSERT statement conflicted with the FOREIGN KEY constraint "FK_PortalAlias_Portals". The conflict occurred in database "DNN", table "dbo.Portals", column 'PortalID'.
The statement has been terminated.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_PortalAlias_Portals". The conflict occurred in database "DNN", table "dbo.Portals", column 'PortalID'.
The statement has been terminated.

Any information on how to resolve or what to change on IIS/DNN/SQL would be very greatly appreciated.

Thanks

Mike

 
New Post
4/16/2014 8:08 PM
 
if you enabled "auto add aliases" in Admin > Site Settings, DNN tries to add current url as website alias. This options should be turned off by default.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/17/2014 7:54 AM
 

Thank you Leopold.  Your advise was spot on.  I completely forgot to uncheck the AutoAlias box.

 
New Post
4/17/2014 5:20 PM
 
I am glad that you were able to solve your issue, have fun using DNN :))

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 7.2 - INSERT statement conflicted with the FOREIGN KEY DNN 7.2 - INSERT statement conflicted with the FOREIGN KEY


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out