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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Version 6.0.1Version 6.0.1's AuthenticationController Class Does Not Contain a Definition for 'ManualLogon'
Previous
 
Next
New Post
9/2/2011 3:01 PM
 
Hi.

I'm having to make some custom code changes to the Login.ascx.cs file in 6.0.1 that were made to the same file in the VB version of it in 5.1.4 by another developer who left our company. In that version the following lines of code work:

VB syntax:
Using objAuthentication As New AuthenticationController()
Dim objUser As DNNUserInfo = objAuthentication.ManualLogon(UserName, txtPassword.Text, loginStatus, IPAddress)

In version 6.0.1  -  I can't place the AuthenticationController object in a C# using statement because the AuthenticationController type must be implicitly convertible to IDisposable and it's not. But these are the same two lines essentially:

C# syntax:
AuthenticationController objAuthentication = new AuthenticationController();
DNNUserInfo objUser = objAuthentication.ManualLogon(UserName, txtPassword.Text, loginStatus, IPAddress);

The problem is, I get a compile error on the "ManualLogon" method when I try to build the solution. Here is the error:

'DotNetNuke.Services.Authentication.AuthenticationController' does not contain a definition for 'ManualLogon' and no extension method 'ManualLogon' accepting a first argument of type 'DotNetNuke.Services.Authentication.AuthenticationController' could be found (are you missing a using directive or an assembly reference?)

I already have several using directives, including one for 'DotNetNuke.Services.Authentication'. But maybe I'm missing a certain DLL that is required. Can you tell me how to make this method work in C# for v.6.0.1?

Thank you.
 
New Post
9/8/2011 5:10 PM
 
the developer must have been using a different class from the same named one in the core as neither the 5.6.3 or 6.0.1 authenticationcontroller class's has a manuallogon method -id recommend checking the using/imports statements at the top to identify the correct namespace.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Version 6.0.1Version 6.0.1's AuthenticationController Class Does Not Contain a Definition for 'ManualLogon'


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