DNN Forums

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

Forum: Building DNN Modules, Providers etc.

 26 Subscribed to this forum
Page 4 of 18 << < 23456 > >>

Topics

Replies
Rating
Status
Views
Subscribers
Last Post

Dependency Injection from Provider      

Started By  Adam Ross
I have implmented a custom profile provider class from the abstract ProfileProvider class. What is the proper way to access the DI container. I have tried this HttpContext.Current.GetScope().ServiceProvider.GetService(typeof(IXyz)) But I am not sure if this is the correct way. I am currently on version 9.13.0
2 624 1

ModuleAction on custom modules      

Started By  Seek78
Hello, I'm adapting some modules from 7.4 to 9.11.2 and I'm facing with ModuleActions. In simple terms, icons are not rendered while editing pages (the top right icons does not appear): [CODE]         public ModuleActionCollection ModuleActions         {             get             {                 ModuleActionCollection Actions = new ModuleActionCollection();                 .............                     Actions.Add(                         GetNextActionID(),                 ...
12 2377 0
by Seek78

Scheduler Next start      

Started By  Kristian Radolovic
Hi everyone. Can someone please explain how DNN Scheduler 'calculates' the 'Next start' value I'm accessing the scheduler from code behind to manage my Tasks only (giving access to some users) and when I create a new task set it to start ie. 2023/11/3 00:05AM repeat every month I see that 'Next Start' is set to 2023/11/2 14:01:15. Also, when the task is run, the Next Start gets some weird value.
2 660 2

Application Error      

Started By  Tarunjit
Hi All, I am new to DNN just installed DNN version 9.11.0 yesterday on my local. Till 1 hour before it was working fine. But now when I open url dnndev.me it is giving me following error. Application Error   On having a look at log file I have noticed following error message 023-10-17 18:22:36.49005:30 [IXC1-LT4DB7HK3][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page. System.NullReferenceException: Object reference not set to an instan...
3 715 2

ModuleSearchBase problem      

Started By  fatgl
Hi, I have a custom module I need to be searchable from DNN search. So I have added a Controller class to my module that extends ModuleSearchBase with GetModifiedSearchDocuments method. I added the namespace in the module settings. However since I added the namespace the module crashes and throws this exception the log: Value cannot be null. Parameter name: type InnerStackTrace: in System.Activator.CreateInstance(Type type, Boolean nonPublic) in System.Activator.CreateInstance(Type type) i...
5 2505 4
by fatgl

Compilation problem when upgrading to DNN 9.12      

Started By  Stéphane Tétard
Hi I'm trying to update a Class Library Project to make it compatible with DNN 9.12.0 but I'm facing to the following error: SGEN : error CS0012: The type 'System.Collections.Generic.ICollection`1' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. First, I changed the project references to use the DNN 9.12.0 assemblies and I configured the project compilation to target Mi...
3 952 2

Changing the title of a module control programmatically      

Started By  Michael Tobisch
It is easy to change the title of a module programmatically, something like private void Page_Init(object sender, System.EventArgs e){    ModuleConfiguration.ModuleTitle = 'Whatever'; } But how can I do this for a control (eg. 'Edit'). I know it is possible in the resource file by adding a key 'ControlTitle_edit', but is this possible from the code behind somehow Happy DNNing! Michael
4 1159 3

Making Json and Xml get along at a single endpoint      

Started By  Tim Nixon
Hi all -- I have an API controller that receives data from several outside services (more property, several outside devices, I guess) via a POST request to a REST endpoint. When I started this project a looong time ago all of the devices were sending XML, so later when a few started needing Json it made more sense to hack in support for that and move on to the next thing. My controller routes POST requests to a parameterless method that looks at the Content-type header and calls an appropriat...
1152 0

Using dependency injection in a controller class      

Started By  Michael Tobisch
Hi all, how can I use dependency injection in a controller class (of a Webforms module) in DNN 9.8.0 What I am trying to do is using IEventLogger (instead of EventLogController) in a Scheduler client. Something like IEventLogger _eventLogger = DependencyProvider.GetRequiredService(); in the constructor. Any help is appreciated. Happy DNNing! Michael
8 4336 3

MVC Module Won't Add to Page on DNN 9.9+      

Started By  Will Strohl
I have an open-source MVC module that won't add to the page on Platform 9.9 and higher.  I don't see any errors anywhere at all.  It just refreshes the page when you expect to see the 'tile' to drag around the theme.    I think I heard someone say that an empty business controller class can cause that.  I tried removing it and installing/upgrading, but I have the same issue after removing it.   A link to the issue is below.  I'm happy to do the work.  I just need a bit of help trying to fi...
714 1
Page 4 of 18 << < 23456 > >>


RSS Feed Available

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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