DotNetNuke
3 years ago I've posted a workaround regarding DNN BUG App_GlobalResources and 'Publish Web Site' in VS2005 The issue is still not resolved and I recently received an email I would like to thank you a lot for your post on a DNN forum which explain how to use DNN in precompiled mode. ( AppGlobalRessources...... ) T H A N K S !!!!!!!!!! I am glad that the workaround is still useful, but DNN team should create a new version(even with breaking changes)...
In one of static class in our application, I found local static members that were used to pass data between calls of static methods. It’s wrong and can cause errors that are intermittent and very hard to reproduce. The problem will happen if the same code executed for 2 users simultaneously. In this case value for one user could be used for the second user and result will be unpredictable. The code was similar the following: public static class HelperClass { private static string _dataToPass = "";...
/// <summary> /// If lenght of the string is greater than max allowed, remove the end /// </summary> /// <param name="str"></param> /// <param name="maxLength"></pa... /// <returns></returns... public static string TrimLength(string str, int maxLength) { if (str.Length > maxLength) { str = str.Remove(maxLength); } return str; }...
I am using Web Setup project to install Web Site Project(customized version of DotNetNuke). It installs a lot of DLL with meaningless names(like App_Web_42q_drww.dll) into BIN directory.If user upgrades later to the new version of the project MSI installer seems smart enough to delete old DLLs and install another set of DLLs with different unfriendly names.The problem happens if site to upgrade wasn't installed using Web Setup MSI, but was XCopied.The sample scenario is the following:An administrator...
I am using modified version of DNN HttpModules\UrlRewrite\UrlR... in particular I am calling their Friend RewriterUtils.RewriteUrl function. In 4.0.3 version it expected URL parameter without QueryString and added queryString from context.Request.QueryString inside the function.But in 4.4. my code stopped working.The reason was that they removed the code to add querystring information from the function and made it responsibility of a caller.It certainly makes sense, but it will be easier...
I moved from DNN 4.0.3 to DNN 4.4 and noticed that there are significant web.config changes (actually as a part of 4.3 Membership Services Provider Abstraction ). However I didn't find any clear documentation about Web.Config changes.From my understanding the folowing changes happened:1. Microsoft ASP.NET membership defaultProvider changed from "DNNSQLMembershipProvider" to standard MS AspNetSqlMembershipProvider -System.Web.Security.SqlMem... and profile providers sections...
DotNetNuke function Upgrade.ExecuteScripts(ByVal strProviderPath As String)actually doesn't use strProviderPath, but always uses ApplicationMapPath & "\Install\Scripts\" folder. It reads all files in the folder and deletes them after execution. It is also triggered only by InstallDNN.The behavior is different to install\modules folder, where modules are installed also during UpgradeDNN. The issue reported here(in comments). I've also asked a question in DNN Forums "Is "install\scripts" folder...
DotNetNuke has function FindControlRecursive. Initially I assumed that it search down hierarchy, but it doesn't work as I expected.After reading code it seems that it searched siblings or parens siblings up to the top of hierarchy.So the name is misleading. Fortunately there is a separate function FindControlRecursiveDown, that does what I needed...
I am using Web Application Project(WAP) for development of DotNetNuke modules. The general approach is discussed in DNN forum thread here. My VS solution consists of main WAP Project and one or more User Control Libraries similar to described in Tutorial 6: Creating and Using User Control Libraries. The main WAP Project basically includes one DNNDebug.aspx file (as well as web.config and global.asax), that allows me to load and test my user controls. The User Control Libraries(DNN modules) are physically...
We had couple sites when during install of DotNetNuke(4.0.3) there was a known "Nothing to Install At This Time" message.I've tried to investigate , how it could happen.At the first installation the function Install.InstallApplication (Install\Install.aspx.vb) checks web.config file.If InstallationDate is missing, it tries to call Config.UpdateMachineKey, which should add InstallationDate element and save web.config.If the save not succced, the “DotNetNuke Configuration Error“ error(403-3.htm)...
I've downloaded new 4.3.1 version and wanted to find which files were changed. Using VSS directory differences, I found that ALL files have been changed. Looking for details, I understood, that in most files only Copyright year was changed from 2005 to 2006. I think that it was a bad idea, because it make harder for users of DNN core source code to identify the changes. More...
DotNetNuke Roles have "IsPublic" attribute. I wandered what the business meaning of the value. After reading the 4.0.2 code my understanding that if IsPublic=true, user is able to subscribe to the role, if it is free (see DotNetNuke\admin\Security\R... didn't find any more business logic coded.It seems that even if public=false, role is visible to user and even available for payed subscription.(I haven't tested it yet.)
There is a thread: Role SynchronizationMode that asked what the meaning of the parameter in core AddRole method.I investigated ability to syncronize roles from custom database to DNN and can post answer for this question(according to 4.0.2 core). Parameter SynchronizationMode is used to implement “lazy” synchronization for roles. If new role has been added to AspNet_Roles DNN calls synchronization to update satellite dnn_Roles table. Parameter SynchronizationMode is used in RoleController.AddRole...
In my previous posts (here and here) I described the problems that I had to implemented mixed Authentication for DotNetNuke.Important step for administrator is “Before switching to Windows Authentication ensure that your LAN acoount has host/administrative permissions for the portal.”. If it wasn't done, you can't access administrative features. It is possible to use SQL command to re- activated Windows Authentication. I am using call to SP ModuleSettings_SiteSettings... that I've created...
I wanted to have another page (not default.aspx) in DotNetNuke based application. I found that there is no common code to generate CSS links. Actually, core code to create CSS links is duplicated in a few places. I've created a common class, that can be used in my custom page, as well as from Default.aspx and Components\Skins\Skin.vb . The class is posted in comment to the isssue. ...
Some time ago I blogged that my attempt to use VS 2005 Web Deployment Project failed with not very helpful Aspnet_merge.exe Exited With Code 1 message. As it is described in the thread, the actual error reported wasAn error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'DotNetNuke.UI.Skins.Contro... found in assembly 'App_Web_k5hhsnh0'. I found that there are 2 files “admin\Skins\solpartm... and “admin\Skins\menu.asc... referring...
I found that DotNetNuke code often doesn't report exceptions to user, but hides them.This style of error handling is natural for VB developers, who had the favorite comand “on error resume next”.(I hope that DNN developers are from different school). In some cases, exception are written it to EventLog table, but it is not always easy to access. E.g. if errors are occured during install and portal is not created yet, View log Web UI obviously is not available. I've posted the suggestion to DNN support.Below...
I've used data change checking features described by Eric Woodruff in my ASP.NET application. When I converted the ASP.NET application to DotNetNuke, I still needed to have the same functionality. Unfortunately .Net doesn't allow multiple inheritanse, so I had to re-factor EWSoftware.Web.BasePage. I created an interface IDataChangeChecking, that described the public methods, relevant to data change checking://described in http://www.codeproject.com/... BypassPromptIdsbool...
I've used an e-Mailable ASP.Net web page described by Eric Woodruff in an ASP.NET application. When I converted the ASP.NET application to DotNetNuke, I still wanted to have the same functionality-ability to e-mail rendered content of the DotNetNuke module. I created the class EmailableModule based on DotNetNuke.Entities.Modules... and copied and paste the content of EMailPage class. There are a few places where I changed references to page to references to DNN module.I was able to...
Provided by core Register form (\admin\Security\Register.a... shows many fields, including address details and adminsitrator can make them optional, but not hide them. I was requested to show only minimal (Firstname/surname/username... and hide other fields from register screen, but leave them visible when user profile is opened. The changes I've done are posted here
Full DotNetNuke Archive