dotnetnuke-7

Duplicated DNN7 installation and now getting “Domain Name xyz Does Not Exist In The Database”

三世轮回 提交于 2020-03-05 09:32:54
问题 I have a DNN7 installation running on my local machine. This is for development purposes, and I wanted to use IIS instead of Cassini for this. The app is bound to HTTP port 81. All is working well, even though the UsePortNumber appsetting is not turned on. All is well. Now I wanted to clone my setup to do some experiments. Here are the steps I took: Duplicated the website folder. Created a new IIS app pointing to that folder, bound to port 82. Duplicated the DotNetNuke7 database. However,

Retrieve FileID from DotNetNuke using FileName

不羁岁月 提交于 2019-12-31 06:27:06
问题 I'm trying to get the FileID of a file based on the FileName. This is what I have, but it returns false. Any ideas? Dim oFileInfo As New DotNetNuke.Services.FileSystem.FileInfo oFileInfo.FileName = "4secapplication.PNG" Dim FileID As Integer Dim oFolderInfo As New DotNetNuke.Services.FileSystem.FolderInfo oFolderInfo.FolderPath = "uploads/files/" If FileManager.Instance.FileExists(oFolderInfo, "4secapplication.PNG") = True Then FileID = oFileInfo.FileId Else lblExceptions.Text = "not exists"

Copy DNN HTML Pro module in content to another module

蓝咒 提交于 2019-12-25 08:49:38
问题 Below code is working fine for HTML module but not working for HTML PRO module. HtmlTextController htmlTextController = new HtmlTextController(); WorkflowStateController workflowStateController = new WorkflowStateController(); int workflowId = htmlTextController.GetWorkflow(ModuleId, TabId, PortalId).Value; List<HtmlTextInfo> htmlContents = htmlTextController.GetAllHtmlText(ModuleModId); htmlContents = htmlContents.OrderBy(c => c.Version).ToList(); foreach (var content in htmlContents) {

How do you properly set a custom profile property in DNN?

霸气de小男生 提交于 2019-12-24 00:58:25
问题 I'm trying to save a custom property to an existing user profile in DNN 7, but the profile property is not getting set. I must be understanding something incorrectly. So, how do you properly set a custom profile property in DNN? UserInfo.Profile.SetProfileProperty("key","value") // I expect this to return "value", but it's always "" var value = UserInfo.Profile.GetProfileProperty("key"); // Even if I save it... ProfileController.UpdateUserProfile(UserInfo); // It always returns "" var

petapoco query a Sql Server View

﹥>﹥吖頭↗ 提交于 2019-12-20 05:36:12
问题 I have started using the DAL2 with dotnetnuke 7. I have some complicated queries that I have created views for in the SQL server database that my instance uses. What is the best practice for accessing a simple select from these views. If I use the following then does this bypass the dbOwner and ObjectQualifier: Public Function GetProducts_Short_Active() As IEnumerable(Of Object) Using ctx As IDataContext = DataContext.Instance Return ctx.ExecuteQuery(Of Object)(CommandType.Text, "SELECT *

dnn 7+ search is not indexing custom module items

允我心安 提交于 2019-12-13 21:30:15
问题 I have a dnn 7.2.2 development site running under dnndev.me on my local machine. I have created a simple product catalogue module and am trying to integrate the new search for dnn 7. Here is the implementation of ModuleSearchBase in my feature/business controller Imports DotNetNuke.Entities.Modules Imports DotNetNuke.Services.Exceptions Imports DotNetNuke.Services.Search Imports DotNetNuke.Common.Globals Namespace Components Public Class FeatureController Inherits ModuleSearchBase Implements

How to use Entity Framework in DotNetNuke7?

烂漫一生 提交于 2019-12-13 08:59:04
问题 I want to use Entity Framework for make Module in DotNetNuke7.I search on the internet but don't exist Helpful document in this case. Please advice. 回答1: There is a nice little tutorial at DNNCreative.com. You have to subscribe to the site, though. I don't recall, off the top of my head, whether there are similar tutorials at DNNHero.com, also a subscription site. 回答2: I sew DNNHero.com site .In this site exist a video tutorial for in this case but it is premium . In my country we don't

DNN 7 in-place upgrade install folder contents

前提是你 提交于 2019-12-13 05:19:38
问题 I am having some trouble upgrading my dnn 7 website. I am upgrading from 7.0.5 to 7.0.6 and I have previously tried upgrading to 7.1.0 but I ran into errors, now I have left over files from the previous upgrades left in the instal/authSystem install/provider install/module folders. Can I empty these folders before copying over the upgrade package over the current version? Should they be empty? or how can I figure out what the default contents should be for the install folder when upgrading.

How should LoggerSource be used in DNN 7+?

安稳与你 提交于 2019-12-12 11:12:55
问题 I have been looking into implementing logging on my DNN 7+ site. I would like to have a configurable logging level such as that provided with log4net. I attempted to follow the instructions to integrate log4net found on the DNN site here, http://www.dnnsoftware.com/community-blog/cid/141723/Using-log4net-with-DotNetNuke. After adding the reference and the line of code to use the logging: DnnLog.Info("My Logging Worked!"); The code reported a warning that reads: 'DotNetNuke.Instrumentation

DNN Search only works when language cookie is en-US

女生的网名这么多〃 提交于 2019-12-11 21:26:29
问题 I've a DNN 7.2 site with 3 languages and search functionality . The search works only and only if the language cookie is set to en-US . If the culture in the search service URL is fr-FR and the language cookie contains "fr-fr", which is very normal, the search will not work, if i changed the cookie manually to be "en-US" and left the url culture as is "fr-fr" the search works as expected and return french results . Why this happens ? Is there a fix ? 回答1: DNN7.2 Search is Locale-Aware,