Forum


HomeHomePremiumPremiumDevelopmentDevelopmentCustom DNN Authentication ProviderCustom DNN Authentication Provider
Previous
 
Next
New Post
2/12/2015 12:50 PM
 
Then i followed the instructions in the video and packaged it and installed to my DNN Instance. The module was successfully imported.
When i navigate to Admin > Extensions > Authentication Systems i can see the custom auth module in the list of Authentication Systems. But when i try to enable it by clicking the edit icon, i get an error. Could not load type ...Settings. Not able to solve this issue, did anyone encounter this issue and know a solution ?

Inline image 1

DotNetNuke.Services.Exceptions.PageLoadException: Could not load type 'DotNetNuclear.DNN.Authentication.Reddit.Settings'. ---> System.Web.HttpParseException: Could not load type 'DotNetNuclear.DNN.Authentication.Reddit.Settings'. ---> System.Web.HttpParseException: Could not load type 'DotNetNuclear.DNN.Authentication.Reddit.Settings'. ---> System.Web.HttpException: Could not load type 'DotNetNuclear.DNN.Authentication.Reddit.Settings'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.Modules.Admin.Extensions.AuthenticationEditor.get_SettingsControl() at DotNetNuke.Modules.Admin.Extensions.AuthenticationEditor.Initialize() at DotNetNuke.Modules.Admin.Extensions.EditExtension.BindData() at DotNetNuke.Modules.Admin.Extensions.EditExtension.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.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
 
New Post
2/13/2015 5:00 AM
 

This issue is clearly in the Settings.ascx.  Check to make sure that the "type", DotNetNuclear.DNN.Authentication.Reddit.Settings, matches what is in your Settings.ascx.cs. It may be that you changed the namesspace in the code behind, but didn't update the .ascx

<%@ Control Language="C#" AutoEventWireup="true" Codebehind="Settings.ascx.cs" Inherits="DotNetNuclear.DNN.Authentication.Reddit.Settings, DotNetNuclear.Authentication.Reddit" %>

If you still can't figure it out, send me your Settings.ascs and Settings.ascx.cs

Thanks,
Scott

 
New Post
3/1/2016 7:56 AM
 

Hi Scott

I am getting the same error, having done the same steps.

I have not touched anything in the code, it compiles fine...

Any further ideas? 

Thank you,  Patrick

 
New Post
3/1/2016 8:21 AM
 

Hi Scott

I seem to have fixed this issue by copying DotNetNuclear.Authentication.Reddit.dll from 

../bin/Providers (where it was build to)  to

the ../bin folder?

Not sure why that has fixed it!, since it clearly worked for you built to the Providers folder?

 

Cheers  Patrick

 
New Post
3/3/2016 8:18 AM
 

I have looked into this and dlls placed in sub-folders are not loaded by default which explains the error I have been receiving.

You need to add a <probing> element to your web.config if you want to access sub-folders (see http://www.brandonmartinez.com/2011/0... )

 

 

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentCustom DNN Authentication ProviderCustom DNN Authentication Provider



Try FREE
30 days money back guaranteed