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...Getting StartedGetting StartedWebAPI - Unable to locate a controller WebAPI - Unable to locate a controller
Previous
 
Next
New Post
5/9/2013 6:47 AM
 
cathal connolly wrote:
looks like the namespace is probably wrong (does factor in the Welcome part) - the easiest way to check this is to enable services framework tracing (http://www.dotnetnuke.com/Resources/W...), and then check the log4net files as they will show lines registering the controller types found - you'll often notice your naming issue at this point.

 

Cathal, sorry to be think - but where do you enable this EnableServicesFrameworkTracing ?

I checked the web.config and there is no such setting?


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
5/9/2013 6:52 AM
 
Ah, found it in the web.config ;)

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
4/24/2014 6:22 AM
 
Hi,

I am running DNN7.02 and i have created a WebAPI service, its working fine if the user is not logged in. When user logged in it shows the error given below. Can anyone help me how to resolve this error. The created service is working but issue is it displays error before loading the page. It happens only when user is logged in.

Here is the error :

Unable to locate a controller for http://192.168.1.2/bffr_dnn_07_02/Des.... Searched in namespaces: DotNetNuke.Web.InternalServices.





 
New Post
5/13/2014 1:07 PM
 

I find this really, really frustrating. I am totally unable to defeat this error. I did a clean DLL project (not using web app or any of those), imported all the DNN DLLs as prescribed in the "how to" articles, created a RouteMapper : IServiceRouteMapper class and a RoleSubscriptionController....

Log4Net tells me nothing. There's no sign of a route registration taking place, just my GET error.

I am close to giving up. Are there any alternative SOA technologies I can use in DNN, such as SOAP or WCF? I don't think I can make a go of this.

 
New Post
3/8/2015 3:40 AM
 
The easiest and surewst way to fix this shit is to download dnn source code, compile dnn in debug mode, search for string "Unable to locate a controller" (it's in file D:\dev\DNN_Platform_07.03.02_Source\DNN Platform\DotNetNuke.Web\Api\DnnHttpControllerSelector.cs in line 80), put a breakpoint there and you will see exactly what is the problem. in my case i see web service was not registered at all, now i have to figure out why. and its not even my code, it's DataExchange module example i downloaded.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedWebAPI - Unable to locate a controller WebAPI - 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