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
4/25/2013 11:19 AM
 
odd, I haven't looked at it in a bit but before it listed out the route registrations , and often that's where we'd see an issue e.g. someone might have a root namespace of "cathal" on their assembly and also have a namespace on the file of "cathal.util" and they would see that the fullyqualified reference namespace was "cathal.cathal.util" and not what they expected ('cathal.util") - can you please ensure that the DotNetNuke.log4net file is set to All

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/25/2013 4:03 PM
 

Here's what I'm seeing after I turn the logging to "All".  It does output all the routes, but not the namespaces.   It seems to be hitting the route just fine, but still errors out .  I also just tried about every namespace combo I could think of without success.   Any other ideas?

2013-04-25 14:00:08,617 [Typhoon][Thread:80][TRACE] DotNetNuke.Web.Api.Internal.ServicesRoutingManager - Mapping route: CoreMessaging-default-0 @ DesktopModules/CoreMessaging/API/{controller}/{action}
2013-04-25 14:00:08,620 [Typhoon][Thread:80][TRACE] DotNetNuke.Web.Api.Internal.ServicesRoutingManager - Mapping route: SocialGroups-default-0 @ DesktopModules/SocialGroups/API/{controller}/{action}
2013-04-25 14:00:08,623 [Typhoon][Thread:80][TRACE] DotNetNuke.Web.Api.Internal.ServicesRoutingManager - Mapping route: Journal-default-0 @ DesktopModules/Journal/API/{controller}/{action}
2013-04-25 14:00:08,627 [Typhoon][Thread:80][TRACE] DotNetNuke.Web.Api.Internal.ServicesRoutingManager - Mapping route: MemberDirectory-default-0 @ DesktopModules/MemberDirectory/API/{controller}/{action}
2013-04-25 14:00:08,674 [Typhoon][Thread:80][TRACE] DotNetNuke.Web.Api.Internal.ServicesRoutingManager - Mapping route: InternalServices-default-0 @ DesktopModules/InternalServices/API/{controller}/{action}
2013-04-25 14:00:08,729 [Typhoon][Thread:80][TRACE] DotNetNuke.Web.Api.Internal.ServicesRoutingManager - Mapping route: Something-default-0 @ DesktopModules/Something/API/{controller}/{action}
2013-04-25 14:00:08,834 [Typhoon][Thread:80][TRACE] DotNetNuke.Web.Api.Internal.ServicesRoutingManager - Mapping route: Storm-default-0 @ DesktopModules/Storm/API/{controller}/{action}
2013-04-25 14:00:09,065 [Typhoon][Thread:80][TRACE] DotNetNuke.Web.Api.Internal.ServicesRoutingManager - Mapping route: Woopie-default-0 @ DesktopModules/Woopie/API/{controller}/{action}
2013-04-25 14:00:09,075 [Typhoon][Thread:80][TRACE] DotNetNuke.Web.Api.Internal.ServicesRoutingManager - Registered a total of 8 routes
2013-04-25 14:00:09,115 [Typhoon][Thread:80][INFO] DotNetNuke.Common.Initialize - Application Initialized
2013-04-25 14:00:09,524 [Typhoon][Thread:102][TRACE] DotNetNuke.Services.Scheduling.ScheduleHistoryItem - Purged Module cache for FileModuleCachingProvider.  
2013-04-25 14:00:09,526 [Typhoon][Thread:102][TRACE] DotNetNuke.Services.Scheduling.ScheduleHistoryItem - Purged Module cache for MemoryModuleCachingProvider.  
2013-04-25 14:00:10,474 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.MessageHandlers
2013-04-25 14:00:10,478 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.MessageHandlers
2013-04-25 14:00:10,480 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.MessageHandlers
2013-04-25 14:00:10,524 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.MessageHandlers
2013-04-25 14:00:10,527 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.Request http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld
2013-04-25 14:00:10,541 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.Controllers Route='controller:welcome,action:helloworld'
2013-04-25 14:00:10,619 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Net.Http.Formatting Type='HttpError', formatters=[JsonMediaTypeFormatterTracer, XmlMediaTypeFormatterTracer, FormUrlEncodedMediaTypeFormatterTracer, FormUrlEncodedMediaTypeFormatterTracer, MediaTypeFormatterTracer]
2013-04-25 14:00:10,650 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Net.Http.Formatting Obtaining formatter of type 'XmlMediaTypeFormatter' for type='HttpError', mediaType='application/xml; charset=utf-8'
2013-04-25 14:00:10,653 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Net.Http.Formatting Will use same 'XmlMediaTypeFormatter' formatter
2013-04-25 14:00:10,656 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Net.Http.Formatting Selected formatter='XmlMediaTypeFormatter', content-type='application/xml; charset=utf-8'
2013-04-25 14:00:10,663 [Typhoon][Thread:80][ERROR] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.Controllers
2013-04-25 14:00:10,673 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.Request Content-type='application/xml; charset=utf-8', content-length=unknown
2013-04-25 14:00:10,678 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.MessageHandlers
2013-04-25 14:00:10,680 [Typhoon][Thread:80][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.MessageHandlers
2013-04-25 14:00:10,698 [Typhoon][Thread:99][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.MessageHandlers
2013-04-25 14:00:10,707 [Typhoon][Thread:100][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Web.Http.MessageHandlers
2013-04-25 14:00:10,726 [Typhoon][Thread:100][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Net.Http.Formatting Value='System.Web.Http.HttpError', type='HttpError', content-type='application/xml; charset=utf-8'
2013-04-25 14:00:10,741 [Typhoon][Thread:100][INFO] DotNetNuke.Web.Api.TraceWriter -  GET http://dev.novelcrossing.com/desktopmodules/storm/api/welcome/helloworld System.Net.Http.Formatting
 
New Post
4/26/2013 6:28 PM
 
Ok, I figured it out. As it turns out, my DLL was referencing an old version of CookComputing.XmlRpc.dll and since CookComputing.XmlRpcV2.dll is now used in DNN, the interface that searching through all the DLLs was silently dying because of the mismatch.  All is good...whew.
 
New Post
5/7/2013 2:26 AM
 
Hi,

i have a endpoint "www.my.myservices.com/interfaces/createstudent()". i want to call this end point from dotnetnuke and want to create web api functionality.

can you help in this scenario.

 
New Post
5/7/2013 2:55 AM
 
Hi i have tried this,

Sample.cs:
---------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using DotNetNuke.Web.Api;

namespace My.Modules.Venkata.Entities.Manage
{
public class Sample: DnnApiController
{
[AllowAnonymous]
[HttpGet]
public HttpResponseMessage HelloWorld()
{
return Request.CreateResponse(HttpStatusCode.OK, "Hello World!");
}
}
}

RouteMap.cs:
------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DotNetNuke.Web.Api;

namespace My.Modules.Venkata.Entities.Manage
{
public class RouteMapClass
{
}
public class RouteMapper : IServiceRouteMapper
{
public void RegisterRoutes(IMapRoute mapRouteManager)
{
mapRouteManager.MapHttpRoute("My.Modules.Venkata.Entities.Manage", "default", "{controller}/{action}", new[] { "My.Modules.Venkata.Entities.Manage" });
}
}
}


I get an error message that says "Unable to locate a controller for http://my.loca/desktopmodules/My.Modu.... Searched in namespaces: My.Modules.Venkata.Entities.Manage."

Can you help me how to resolve in my code..

 
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