A .NET open source content management system and web application development framework. Also goes by the names DotNetNuke 9 and Evoq.
Questions tagged [dnn9]
137 questions
4
votes
0 answers
How to add the DNN Event Logger Depedency Provider to a custom Controller Class that Inherits the DNNAPIController Class?
I have a custom Controller Class in my WebForm DNN Module and would like to replace the Deprecated Event Log code with the new Event Logger code.
Here is an answer on how to use the new Event Logger Code: DNN 9.8 - EventLogController is obsolete -…

Tig7r
- 525
- 1
- 4
- 21
3
votes
1 answer
cv2.error: OpenCV(4.3.0) ../opencv_contrib/modules/dnn_superres/src/dnn_superres.cpp:97: error: (-2:Unspecified error) Model not specified
Im trying out this article;
https://towardsdatascience.com/deep-learning-based-super-resolution-with-opencv-4fd736678066
this is the code copied out of the article;
import cv2
from cv2 import dnn_superres
sr =…

pysolver33
- 307
- 1
- 5
- 13
3
votes
0 answers
Can I pass a Class, ID or data-attribute to a DNN Modal using dnnModal.show
I'm using the following to open a URL in a dnnModal. I'll be showing a consent checkbox on the modal and I need to disable the close button or hide it with CSS.
If I use CSS currently it will hide the close button for all dnnModals which I don't…

DevKev
- 5,714
- 6
- 24
- 29
3
votes
0 answers
How to prevent DNN Skin AddModule Message from auto-scrolling the page?
The DNN DotNetNuke.UI.Skins.Skin.AddModuleMessage method causes the page to auto scroll on Postback. I am using DNN 9.01.01
I did try MaintainScrollPositionOnPostBack, but it seems like you can't use this in a Master page:…

Tig7r
- 525
- 1
- 4
- 21
2
votes
1 answer
DNN 9.8 - EventLogController is obsolete - Does anyone have an example on how to use the Dependency Injection method to fix this error?
Does anyone perhaps have an example to replace the old Error logging in DNN module?
I have looked at the following articles:
https://dnncommunity.org/forums/aft/1527
Has anyone implemented DotNetNuke.Abstractions.Portals.IPortalAliasInfo.HttpAlias…

Tig7r
- 525
- 1
- 4
- 21
2
votes
0 answers
How to use DNN OPENCL on AMD GPU?
On Windows 10, I want to use GPU as DNN backend to save CPU power. It works for Intel GPU, but there is problem on AMD GPU.
After I use setPreferableTarget(DNN_TARGET_OPENCL), the speed become very slow (much slower than DNN_TARGET_CPU).
I checked…

Jimmy
- 21
- 3
1
vote
2 answers
C# Dependency Injection with DNN Version 9.9 in a Web Forms project
I am trying to get my hands around using Dependency Injection with DNN. I looked at the DotNetNuke.Startup class and see the following:
public void ConfigureServices(IServiceCollection services)
{
…

James
- 63
- 4
1
vote
1 answer
How to add a new user profile field to Dnn?
I want to add a new profile field in the DNN portal to be displayed in the registration form. I could not find it inside the DNN portal menu.
user17210710
1
vote
1 answer
Is there a way to tell Razor (DNN's View Engine) to use a different Views Folder for a MVC Module?
I'm trying to use multiple folders for my views in a custom MVC module for DNN.
The goal is to choose a theme in the module settings and then depending on the setting use a different view folder (i.e. use different cshtml files for the actions).
Is…

Niels Mittelstädt
- 77
- 4
1
vote
2 answers
How to access Another Module's Content and Presentation Items after 2sxc v10.20+
Here is code that worked up through 2sxc 10.9.1. Though I am able to get the CmsBlock for the TabID, ModuleID and get that to .Render(), I need more. Here is the old code. Not sure it makes any difference, but this View is using the normal Link…

Jeremy Farrance
- 740
- 6
- 11
1
vote
1 answer
Customized loss function in PyTorch which uses DNN outputs and additional variables
(I am sorry if my English is not good)
I can create my own loss function in PyTorch if the function requires only DNN output vector(predicted) and DNN output vector(ground truth).
I want to use additional variables to calculate the loss.
I make my…

hac81acnh
- 82
- 7
1
vote
1 answer
HTTP 503 Error occurred after completing upgrade from Dnn 9.1.1 to 9.3.0
After Upgrading successfully by transferring upgrade zip file and completing upgrade wizard process after host login, Error HTTP 503 came up when I clicked on "Visit Website" button. After going through Log files below error log was…

Ejaz Hasnain
- 11
- 3
1
vote
2 answers
How can I set up a super simple listing and details module that uses simple URLs?
2sxc 11.3.0 / DNN 9.3.2 (and others)
I want to set up a simple listing of cards (with a heading, a picture, some text, and a link) and when the user clicks on the link of a card, it brings them to a full "details" view that has a friendly URL. Very…

Aaron - Wolf X Machina
- 443
- 1
- 3
- 13
1
vote
1 answer
How can I retreive a DNN ModuleSetting or TabSetting in a DoWork() method for the Scheduler?
I have a DotNetNuke module with a View and Scheduler Class called CRMCheck.
I have setup my Scheduler Task to call my class every couple of minutes. (MyModule.Modules.CRM.CRMCheck)
I need to retrieve a Setting saved for Module or TabSettings. I am…

Tig7r
- 525
- 1
- 4
- 21
1
vote
1 answer
DNN 9.4.1 is not showing any Pages on the Persona Menu Bar
I have a problem whereby the Pages in DNN is not showing when logged in.
I have attempted to look at the permissions in the database, but could not find anything.
I did attempt to add an upgrade package to the installation to see if this fixes the…

Tig7r
- 525
- 1
- 4
- 21