I have created a working custom module. One of the things I wanted to do was to add email obfuscation. I found a dll (http://www.emailspoofer.net/default.aspx) that does just want I want and was able to get it to work in a simple web project. However, when
I try to add it to my DNN module I get the dreaded error "MinMax persistance type of cookie requires a ModuleId" which means that the module would not load.
The first error in the log is a security error pasted below.
Does anyone have a suggestion as to how I would start to fix this? Or some alternative method of email address obfuscation?
Thanks,
Matthew
--- error ----- ModuleId: -1 ModuleDefId: -1 FriendlyName: ModuleControlSource: AssemblyVersion: 03.02.02 Method: N/A - Reflection Permission required FileName: C:\Docs\Visual Studio Projects\DNN_3_2_1\DesktopModules\MIMH-DynamicSearch\DynamicSearch.ascx FileLineNumber: 8 FileColumnNumber: 13 PortalID: 0 PortalName: My Website UserID: 1 UserName: host ActiveTabID: 58 ActiveTabName: test AbsoluteURL: /DotNetNuke/Default.aspx AbsoluteURLReferrer: ExceptionGUID: 2ab7fd3c-f8c4-404d-a3a3-7d4c2b2594dc DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider InnerException: Security error. Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Security error. ---> System.Security.SecurityException: Security error. at ASP.DynamicSearch_ascx.__BuildControlEncoder2() at ASP.DynamicSearch_ascx.__BuildControlTree(Control __ctrl) in C:\Docs\Visual
Studio Projects\DNN_3_2_1\DesktopModules\MIMH-DynamicSearch\DynamicSearch.ascx:line 1 at ASP.DynamicSearch_ascx.FrameworkInitialize() at System.Web.UI.UserControl.InitializeAsUserControlInternal() at System.Web.UI.UserControl.InitializeAsUserControl(Page page)
at System.Web.UI.TemplateControl.LoadControl(Type t) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in C:\Docs\Visual Studio Projects\DNN_3_2_1\admin\Skins\Skin.vb:line
466 --- End of inner exception stack trace ---
mhile
Member
140 Points
28 Posts
Error when adding an email obfuscation assembly to a module
Mar 02, 2006 06:16 PM|LINK
The first error in the log is a security error pasted below.
Does anyone have a suggestion as to how I would start to fix this? Or some alternative method of email address obfuscation?
Thanks,
Matthew
--- error -----
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 03.02.02
Method: N/A - Reflection Permission required
FileName: C:\Docs\Visual Studio Projects\DNN_3_2_1\DesktopModules\MIMH-DynamicSearch\DynamicSearch.ascx
FileLineNumber: 8
FileColumnNumber: 13
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 58
ActiveTabName: test
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer:
ExceptionGUID: 2ab7fd3c-f8c4-404d-a3a3-7d4c2b2594dc
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Security error.
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Security error. ---> System.Security.SecurityException: Security error. at ASP.DynamicSearch_ascx.__BuildControlEncoder2() at ASP.DynamicSearch_ascx.__BuildControlTree(Control __ctrl) in C:\Docs\Visual Studio Projects\DNN_3_2_1\DesktopModules\MIMH-DynamicSearch\DynamicSearch.ascx:line 1 at ASP.DynamicSearch_ascx.FrameworkInitialize() at System.Web.UI.UserControl.InitializeAsUserControlInternal() at System.Web.UI.UserControl.InitializeAsUserControl(Page page) at System.Web.UI.TemplateControl.LoadControl(Type t) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) in C:\Docs\Visual Studio Projects\DNN_3_2_1\admin\Skins\Skin.vb:line 466 --- End of inner exception stack trace ---