DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Forum: DNN Platform API

 17 Subscribed to this forum
Page 1 of 3123 > >>

Topics

Replies
Rating
Status
Views
Subscribers
Last Post

DNN.ClientDependency Not Available      

Started By  Hans Zassenhaus
I receive the following error messages after opening DNN Platform V9,6,2 in MS Visual Studio 2019 and 2022: Severity    Code    Description    Project    File    Line    Suppression State Error        NuGet Package restore failed for project DNN Platform\DotNetNuke.Web: Unable to find version '1.9.2.7' of package 'Dnn.ClientDependency'.   C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Package 'Dnn.ClientDependency.1.9.2.7' is not found on source 'C:\Program Files (x86)\Microsoft SDKs...
7 1971 3

Are async WebAPI methods supported?      

Started By  Henri
I know from the documentation that async MVC methods are not supported but I don't know whether that includes async WebAPI methods. I found a question on Stack Overflow (c - What can cause an async webapi endpoint to act synchronously - Stack Overflow) which seems to show that they work. I also did a little experiment of my own and they seem to work fine. So are async WebAPI methods supported Is there a place in the official docs which says whether they are or aren't
2 292 2

FORUMTOPIC:SUBJECTLINK|How to Apply Cache in API      

Started By  chetan kawale
Hii team, I am using DNN API to fetch frequently data by using Ajax. So I did't find answer How to cache API in DNN. Please suggest    public class StockTickerController : DnnApiController     {           [HttpGet]         public HttpResponseMessage DSIJIncludeTickerGraph()         { return Request.CreateResponse(HttpStatusCode.OK, new { CurrentBseNseValue = AllCurrentBseNseValueVr });           }     }
4 1475 2

FORUMTOPIC:SUBJECTLINK|Web API External      

Started By  Omar Sánchez
The module when consuming a local web api (http://localhost/ConsultaVarias/Api/Distrito) it gives me the following error: System.Threading.Tasks.Task`1[System.Web.Mvc.ActionResult]
6 591 1

FORUMTOPIC:SUBJECTLINK|DNN v9.12.00 Web API]      

Started By  Martin
Hi, I have built for testing purposes a simple Web API, which works perfect locally but when I'm trying to reach the endpoint (by Postman or by Module) in the productive online version, I always get the error '401 - Unauthorized: Access is denied due to invalid credentials.'. The credentials are exactly the same in local and online version. ------------------------ public class ExchangeOrderController : DnnApiController {     [HttpGet]     DnnAuthorize(StaticRoles = 'ExchangeOrderDK')...
18 2226 3

Connect to DNNAPI      

Started By  Deleted User
We used to pull visualizers from the dnnapi into an external application using a bearer token token that never expired. After upgrading to 9.10 and moving our host, we now need an auth token, and I'm not finding any documentation anywhere on how to obtain it. To help with additional info, we are on the Evoq version of DNN.
1 707 1

Programmatically log in a user      

Started By  pdreid
Hello, I'm working on a page where I want to programmatically log a user in from the code behind, outside the context of creating an official authentication provider (if that's possible).  My code creates and updates users correctly, and the admin logs show the login event for the correct user with a 'login success' message; but the website still shows the login link rather than the username in the utility nav, and if I try to access a protected page it's not recognizing the user as logged in...
2 1930 2

DNN v9.10.02 Web API      

Started By  shyamal majumder
Team,  I have a small query, Suppose I have created 1 web api say getcustomer() DesktopModules/Leads/API/LeadsDisposition/getcustomer Now I have 2 domain 1 is main domain say www.maindomain.com and other is subdomain say www.subdomain.maindomain.com Now can we set api address like www.subdomain.maindomain.com/DesktopModules/Leads/API/LeadsDisposition/getcustomer instead of  www.maindomain.com/DesktopModules/Leads/API/LeadsDisposition/getcustomer Inshort can we set base ur...
10 3561 2

cross (Cors) issue      

Started By  ricky1368
Light-Duty-Wreckers:1 Access to XMLHttpRequest at 'https://www.test.net/api/api/Fleet/GetFleetListtype=json' from origin 'https://www.dnndomain.net' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. I use ajax jquery to consume external api (webapi written with mvc/c), and have above issues. I already added the header on webconfig, and still working ...need helps ...
4 3372 2

GetUpdateLink or gettable      

Started By  Colder
after the update to 9.9.0 the log is full with entries of the type general exception. Does anyone have any idea what I can do Summary: AbsoluteURL / API / personabar / serversummary / GetUpdateLink DefaultDataProvide AbsoluteURL: / API / personabar / serversummary / GetUpdateLink DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke ExceptionGUID: a4ad6ad5-e531-4a86-8a3f-339225c2abfa AssemblyVersion: PortalId: -1 UserId: -1 TabId: -1 RawUrl: Referrer: UserAgent: Exce...
2 5782 2
Page 1 of 3123 > >>


RSS Feed Available

These Forums are dedicated to the discussion of DNN Platform.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved