Hi All
I have created custom control (StatePermissionsGrid) based on (StartKit\Library\Security\Permissions\Controls\DesktopModulePermissionsGrid.vb) and placed this source to the folder App_Code.
\App_Code\Custom\Permission\Controls\StatePermissionsGrid.vb
\App_Code\Custom\Permission\CompareStatePermissions.vb
\App_Code\Custom\Permission\StatePermissionCollection.vb
\App_Code\Custom\Permission\StatePermissionController.vb
\App_Code\Custom\Permission\StatePermissionInfo.vb
Code has been compiled without error.
Please advise how to add custom control to the page.
<%@ Register TagPrefix="grid" Namespace="Custom.Security.Permissions.Controls" Assembly="Custom.Security.Permissions.Controls" %>
or
<%@ Register TagPrefix="grid" Namespace="Custom.Security.Permissions.Controls" Assembly="App_Code" %><%@ Register TagPrefix="grid" Namespace="Custom.Security.Permissions.Controls" Assembly="App_Code" %>
<grid:statepermissionsgrid id="dgPermissions" runat="server" />
generate exception:
[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.UI.Containers.ActionBase.get_ActionRoot() +28
DotNetNuke.UI.Containers.ActionBase.Page_Load(Object sender, EventArgs e) +41
[ModuleLoadException: An error has occurred.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +381
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc, Boolean DisplayErrorMessage) +185
DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc) +34
DotNetNuke.UI.Containers.ActionBase.Page_Load(Object sender, EventArgs e) +108
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
[PageLoadException: An error has occurred.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +277
DotNetNuke.Framework.PageBase.OnError(EventArgs e) +394
System.Web.UI.Page.HandleError(Exception e) +84
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6776
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
System.Web.UI.Page.ProcessRequest() +80
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) +4
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Any help will be greatly appreciated. Thank you.