Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesModule Install Errors in 07.04.01Module Install Errors in 07.04.01
Previous
 
Next
New Post
7/28/2015 7:50 AM
 
Shanahz,

do you have the chance to trace the SQL Server (using SQL Server Profiler or a similar tool) to find the failing SQL statement? If yes, please do so and post the miserable thing here.

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
7/29/2015 1:52 AM
 



1- Now is a record in DesktopModulePermission for Admin/RecycleBin module That RoleId is Null value

2- I modify PROCEDURE [dbo].[AddDesktopModulePermission] These that insert @RoleId in other table for check what RoleId insert ?
As following Line 10



ALTER PROCEDURE [dbo].[AddDesktopModulePermission]
@PortalDesktopModuleID Int, -- not null!
@PermissionId Int, -- not null!
@RoleId Int, -- might be negative for virtual roles
@AllowAccess Bit, -- false: deny, true: grant
@UserId Int, -- -1 is replaced by Null
@CreatedByUserId Int -- -1 is replaced by Null
AS
BEGIN
Line10: INSERT INTO TblTest (RoleId)VALUES (@RoleId)

INSERT INTO dbo.[DesktopModulePermission] (
[PortalDesktopModuleID],
[PermissionID],
[RoleID],
[AllowAccess],
[UserID],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@PortalDesktopModuleID,
@PermissionID,
@RoleId,
@AllowAccess,
CASE WHEN @UserId = -1 THEN Null ELSE @UserId END,
CASE WHEN @CreatedByUserID = -1 THEN Null ELSE @CreatedByUserID END,
GetDate(),
CASE WHEN @CreatedByUserID = -1 THEN Null ELSE @CreatedByUserID END,
GetDate()
)
SELECT SCOPE_IDENTITY()
END

But after install one Module 52 row inserted in TblTest Table. Furthermore one of RoleId not in Rolls table.

Thanks in advance
 
New Post
7/30/2015 5:08 AM
 
shahnaz amiri wrote:
[...]
But after install one Module 52 row inserted in TblTest Table. Furthermore one of RoleId not in Rolls table.

Thanks in advance

OK, there you have it. If the RoleID does not exist in the Roles table, this is the violation of the foreign key, and cannot work.

Happy DNNing!
Michael

 


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
7/30/2015 5:48 AM
 
this is for sure an issue of the 3rd Party module you should Report to the module developer/vendor.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesModule Install Errors in 07.04.01Module Install Errors in 07.04.01


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out