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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModules[BugReport] DnnApiController "Unable to locate a controller"[BugReport] DnnApiController "Unable to locate a controller"
Previous
 
Next
New Post
12/26/2014 10:45 AM
 

HI, I've spent a better part of 2 days trying to figure out why I receive the error:

"Unable to locate a controller"

when using a DnnApiController to execute ajax processes. And after literally dissembling my project top to bottom and reimplementing everything one piece at a time, I've found out what causes the problem. And I'm reporting it because other people have had similar issues and no one has posted any resolutions (other than simple things like "check your routing" etc).

 


If you have at any point in time the following code in any .cs file in your project that uses the DnnApiController, it fails to find it within your namespace using the properly configured route....

public class myAppender:log4net.Appender.AppenderSkeleton {
        protected override void Append(LoggingEvent loggingEvent) {

        }
    }

So I don't know how I'm going to handle my logging, but I'm absolutely 100% done with this bug, and I have no intention of ever seeing it again. Good luck to whoever reads this, and I wish you the best.

 
New Post
1/4/2015 5:19 PM
 

you can log any bugs to support.dnnsoftware.com so we can investigate and resolve. However what's probably easier is if you use the standard logging pattern - if you look into any of the platform classes that inherits  DnnApiController e.g

open a source solution and look to DNN Platform\Modules\MemberDirectory\Services\MemberDirectoryController.cs

you'll see a static readonly property that links the class to the logger i.e

 

private static readonly ILog Logger = LoggerSource.Instance.GetLogger(typeof (MemberDirectoryController));

then when we log errors we just use

Logger.Error(exc);


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModules[BugReport] DnnApiController "Unable to locate a controller"[BugReport] DnnApiController "Unable to locate a controller"


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