Hello everyone, I'm working on a custom Authentication Provider in which it utilizes another assembly to connect and get relevant information to login. This appears to be fine and set in VS, and it installs fine, but when I attempt to login using my provider, I get a Security Exception that reads "That assembly does not allow partially trusted callers."
I'm not exactly sure how I would remedy this problem, so any insight would be well appreciated. Thanks!
Log Output:
AssemblyVersion: 5.3.1
PortalID: 0
PortalName: DNN Portal
UserID: -1
UserName:
ActiveTabID: 40
ActiveTabName: Document Management
RawURL: /dotnetnuke_community/Login.aspx?ReturnUrl=%2fDotNetNuke_Community%2fDefault.aspx%3ftabid%3d40%26error%3dThat%2bassembly%2bdoes%2bnot%2ballow%2bpartially%2btrusted%2bcallers.
AbsoluteURL: /DotNetNuke_Community/Default.aspx
AbsoluteURLReferrer:
http://localhost:4827/Everest.Dev/Doc...
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 68b70551-5687-413a-8115-284c557e4c96
InnerException: That assembly does not allow partially trusted callers.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Admin.EverestAuthentication.Login.OnInit
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: That assembly does not allow partially trusted callers. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers. at DotNetNuke.Modules.Admin.EverestAuthentication.Login.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Modules.Admin.Authentication.Login.DisplayLoginControl(AuthenticationLoginBase authLoginControl, Boolean addHeader, Boolean addFooter) in C:\Working\DotNetNuke\DotNetNuke_Community_05.03.01_Source\Website\DesktopModules\Admin\Authentication\Login.ascx.vb:line 282 at DotNetNuke.Modules.Admin.Authentication.Login.BindLogin() in C:\Working\DotNetNuke\DotNetNuke_Community_05.03.01_Source\Website\DesktopModules\Admin\Authentication\Login.ascx.vb:line 363 at DotNetNuke.Modules.Admin.Authentication.Login.ShowPanel() in C:\Working\DotNetNuke\DotNetNuke_Community_05.03.01_Source\Website\DesktopModules\Admin\Authentication\Login.ascx.vb:line 483 at DotNetNuke.Modules.Admin.Authentication.Login.Page_Load(Object sender, EventArgs e) in C:\Working\DotNetNuke\DotNetNuke_Community_05.03.01_Source\Website\DesktopModules\Admin\Authentication\Login.ascx.vb:line 683 at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) The action that failed was: LinkDemand The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---
Source:
Server Name: IBEXDEV-BR