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 ForumsAuthenticationAuthenticationCould not load type error.Could not load type error.
Previous
 
Next
New Post
5/14/2010 2:25 PM
 
Hello everyone, I've created an Authentication Provider in C# for DNN and have been attempting to test it out, but whenever I try to get to the settings screen to enable it, I get the following error come up:

A critical error has occurred.
Could not load type 'EverestAuth.AuthenticationProvider.Settings'.

I've tried numerous ideas and plenty of fixes, and have followed numerous examples online to attempt to avoid the error, to no avail. If anyone has any idea as to why this happens, the insight would be much appreciated. Thanks in advance!

The log file of the error in Event Viewer is as follows:
AssemblyVersion: 5.3.1
PortalID: 0
PortalName: DNN Portal
UserID: 1
UserName: host
ActiveTabID: 46
ActiveTabName: Extensions
RawURL: /dotnetnuke_community/Admin/Extensions/tabid/46/ctl/Edit/mid/363/PackageID/111/Default.aspx
AbsoluteURL: /DotNetNuke_Community/Default.aspx
AbsoluteURLReferrer: http://localhost/dotnetnuke_community/Admin/Extensions.aspx
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: 9298356d-aa34-4ebb-bf98-54ecea8ba0fd
InnerException: Could not load type 'EverestAuth.AuthenticationProvider.Settings'.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.TemplateParser.GetType
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Could not load type 'EverestAuth.AuthenticationProvider.Settings'. ---> System.Web.HttpParseException: Could not load type 'EverestAuth.AuthenticationProvider.Settings'. ---> System.Web.HttpParseException: Could not load type 'EverestAuth.AuthenticationProvider.Settings'. ---> System.Web.HttpException: Could not load type 'EverestAuth.AuthenticationProvider.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.ParseReader(StreamReader reader, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) 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) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.Modules.Admin.Authentication.AuthenticationEditor.get_SettingsControl() in C:\Working\DotNetNuke\DotNetNuke_Community_05.03.01_Source\Website\DesktopModules\Admin\Extensions\Editors\AuthenticationEditor.ascx.vb:line 68 at DotNetNuke.Modules.Admin.Authentication.AuthenticationEditor.Initialize() in C:\Working\DotNetNuke\DotNetNuke_Community_05.03.01_Source\Website\DesktopModules\Admin\Extensions\Editors\AuthenticationEditor.ascx.vb:line 118 at DotNetNuke.Modules.Admin.Extensions.EditExtension.BindData() in C:\Working\DotNetNuke\DotNetNuke_Community_05.03.01_Source\Website\DesktopModules\Admin\Extensions\EditExtension.ascx.vb:line 156 at DotNetNuke.Modules.Admin.Extensions.EditExtension.Page_Load(Object sender, EventArgs e) in C:\Working\DotNetNuke\DotNetNuke_Community_05.03.01_Source\Website\DesktopModules\Admin\Extensions\EditExtension.ascx.vb:line 221 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) --- End of inner exception stack trace ---
Source:
 
New Post
5/16/2010 12:17 AM
 
Are you sure the provider's DLL is in the bin/providers folder?

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
5/17/2010 12:16 PM
 
Hey Chris, thanks for the response.

I checked the folder, and it wasn't there after the install, so I manually placed the DLL in, with no further success. But of curiousity, instead of asking numerous questions, would there be comprehensive documentation as to what is needed for authentication provider installations? If such, I'd be more than thankful to utilize it.

Thanks again!
 
New Post
5/19/2010 1:25 PM
 
I'm happy to announce that I figured out why the issue occured. I had my manifest file pointing to the wrong DLL, and neglected to have both the namespace.Settings and namespace in the inherits attribute for the Settings.ascx file.

Thanks again!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationCould not load type error.Could not load type error.


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