Learn More





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 ...Problem About Error When add new module.Problem About Error When add new module.
New Post
10/10/2015 4:02 AM

Hello everybody.

I am trying to add new module in Host -> Extension and getting below error message.
 The INSERT statement conflicted with the FOREIGN KEY constraint "FK_DesktopModulePermission_Roles". The conflict occurred in table "dbo.Roles", column 'RoleID'. The statement has been terminated.
I have configured multiple portal and child portal in my application. I have deleted portal form admin panel and i am thinking this error showing after i delete portal from admin panel.
The dnn version is 7.3.2. I have found that I need to create administrator for each portal, there was administrator roll was missing, As I am creating portal programmatically, so right now I have create one user and assign administrator role to that user, now my concern is that when I create new portal dynamically and it is working properly, but I don't want to show Control Panel bar to Administrator user, It should visible to Superuser only, so how can I achieve this?
Please specify this, Thanks in advance.

Cộng đông internet Việt nam chuyên lắp mạng fpt hải phònglắp mạng fpt hồ chí minhlắp mạng fpt hà nội nhanh nhất hiện nay. Khi các bạn có nhu cầu đăng ký lắp mạng fpt biên hòalắp mạng fpt vinhlắp mạng fpt hoàng mai hãy liên hệ ngay với chúng tôi. Chúng tôi là cộng đồng đăng ký internet fpt tốt nhất Việt nam
New Post
10/10/2015 5:27 AM
Control panel is displayed to all admins, this cannot be suppressed manually, you would need a modified control panel for your needs.

When adding DesktopModule permissions you need to pass a RoleID of an existing role, AdministratorsRoleID and RegisteredRoleID in Portals table need to point to existing roles as well. Note: -1 is not null!

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Problem About Error When add new module.Problem About Error When add new module.

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?