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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationCustom Authentication Provider SecurityExceptionCustom Authentication Provider SecurityException
Previous
 
Next
New Post
5/19/2010 3:12 PM
 
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
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationCustom Authentication Provider SecurityExceptionCustom Authentication Provider SecurityException


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