DotNetNuke Tips

BlogEvent ID 1310

DNN Event ID 1310 after moving website to new server Exception message: Unsecured Passwords Format Detected

IIS throwing Event ID 1310 Exception message: Unsecured Passwords Format Detected The Error Message Exception information: Exception type: ConfigurationErrorsException Exception message: Unsecured Passwords Format Detected. The Membership Provider that contains the unsecure passwords format is: AspNetSqlMembershipProvider. The obsoleted password format is: Encrypted. For more information, see https://go.microsoft.com/fwlink/?linkid=834784. Request information: Request URL: Request path: User host address: User: Is authenticated: False Authentication Type: Thread account name: IIS APPPOOL\DefaultAppPool The Problem was actually simple and a “user error” We tried to connect the website up to the wrong database. i.e. When we copied the database and moved it, we inadvertently copied the wrong database. This caused the above error due to the fact that the machinekey data in the web.config file was wrong for the database. This caused the error 1310 to be thrown and the Application Pool associated with the new incorrectly setup site to stop. The fix.  Connect to the… Read More »DNN Event ID 1310 after moving website to new server Exception message: Unsecured Passwords Format Detected

Adding Application Pool Identity in IIS to a Folder

KB – Granting folder permissions to IIS application pools     Skip to end of metadata   Go to start of metadata   Whenever a new application pool is created, IIS creates a security identifier (SID) that represents the name of the application pool itself. For example, if you create an application pool with the name “Smartcrypt,” a security identifier with the name “Smartcrypt” is created in Windows. Resources can be secured by using this identity. However, the identity is not a real user account and will not show up as a user in the Windows User Management Console. This can be configured by selecting a folder in Windows Explorer and adding the “Smartcrypt” identity to the folder’s Access Control List (ACL). Open Windows Explorer Select the directory the Smartcrypt Manager is installed under (eg: c:\web\mds) Right click the directory and select Properties Select the Security tab Click the Edit button and then Add button Click the Locations button… Read More »Adding Application Pool Identity in IIS to a Folder

DNN (dotnetnuke) Active Forum Module Control Panel a critical error has occurred

Error when opening the DNN Active Forum Module Control Panel When you attempt to open the forum module Control Panel, you receive a.net load error that says a critical error has occurred. Upon looking at the log files for the website within DNN, you’ll notice that the related error message looks something like this. bsoluteURL:/Default.aspxDefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNukeExceptionGUID:1012073d-d31d-4a73-a051-31478c9de05dAssemblyVersion:7.4.0PortalId:0UserId:3429TabId:107RawUrl:/Resources/Forum/ctl/EDIT/mid/506Referrer:http://website.com.au/Resources/ForumUserAgent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3ExceptionHash:eUa1nHF8hNveOCQzqX0zOg==Message:Object reference not set to an instance of an object.StackTrace:InnerMessage:Object reference not set to an instance of an object.InnerStackTrace: at DotNetNuke.Modules.ActiveForums.Controls.Callback.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)Source:FileName:FileLineNumber:0FileColumnNumber:0Method:Server Name: SERVERNAME   The Fix It is good practice to ensure that you have the latest version of the DotNetNuke forum module on your website. Especially if you are using the later… Read More »DNN (dotnetnuke) Active Forum Module Control Panel a critical error has occurred

DotNetNuke DNN Spam Registrations Problem Fixed

DotNetNuke DNN Sites getting spam registrations – How to stop them In recent weeks, many of our DNN websites have systematically been targeted for Spam New User Registrations. There has been some discussion around the how and why, and as much as we can tell, the problem is this: 1. Some script kiddy has bothered to write a bot that finds DNN websites. It is not even a good bot, because it is not capable of validating registrations to automated active email addresses. (If you are the creator of the bot… “YOU ARE DOING IT WRONG” as it is not going to bring the Google results you are looking for.) 2. The bot will attempt access to:  www.yoursite.com /?ctl=Register 3. This brings into play the default DNN registration process module. 4. This page is currently available if your site has either Public or Verified registrations enabled. 5. Tricks on derating the… Read More »DotNetNuke DNN Spam Registrations Problem Fixed

DNN Popup Greeting–Kill it Good!

In the recent DNN 7 releases, they have unfortunately made by default a popup greeting after sign in, that in theory would drive clients to signup for their spam. Problem is (like lots of recent DNN features) that the “tick to never show again” does not work, and in some really recent releases, the popup goes crazy and does not allow you to progress into the site. In other words, they killed their own product with spam crap. Easy fix. Open the file in the web root, called: Default.aspx.cs Look for this line: ManageGettingStarted(); Just throw a // before it to comment it out. Save and restart the IIS site. Should fix it fast and for good.

DotNetNuke – Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.

After upgrading a DNN website, we received this error message. The underlying cause of the problem is sloppy release version upgrades of the DNN core product. The issue is that the release.config file in the update versions of DNN references older versions of the Telerik.Web.UI .dll file in the /bin folder of the install versions of DNN. This means that the settings in your newly updated web.config file are referencing an old version of the Telerik file. The fix is easy Right click on the Telerik.Web.UI.dll file in your sites /bin folder. If the file is not there, then download the install version of your DNN site package from http://dotnetnuke.codeplex.com Then extract the file to the /bin folder. Look at the version number of the file. Edit your web.config file to match this data: Save and you are done.

DotNetNuke HTML Editor Background Black

When you get a black background in the HTML Editor. The solution is easy. Look for the file found here: \Providers\HtmlEditorProviders\Telerik\Config\ConfigDefault.xml Edit it to add this line: <property name="CssFiles">~/Providers/HtmlEditorProviders/Telerik/Config/EditorCustom.css</property> Looking like this: Then edit this file: \Providers\HtmlEditorProviders\Telerik\Config\EditorCustom.css To look like this: body {   background-color: white;   background-image: url(image_path);   color: black; }   That’s about it.

DotNetNuke Can’t Login Index #: 0

The Problem Index #: 0 Recently while working with a DotNetNuke website, we found that attempting to login to the site generated this error: SQL Exception Error Details File  Error   Index #: 0 Source: .Net SqlClient Data Provider Class: 17 Number: 1105 Procedure: AddEventLog Message: System.Data.SqlClient.SqlException: Could not allocate space for object ‘dbo.EventLog’.’PK_EventLogMaster’ in database ‘www.sitedatabase.com’ because the ‘PRIMARY’ filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType,… Read More »DotNetNuke Can’t Login Index #: 0

DotNetNuke (dnn) jQuery problems admin menu

DotNetNuke jQuery Problems Recently there was an update to jQuery that caused some problems with DotNetNuke. The problems include: Strange or missing popup effects in custom jQuery modules Admin menu hiding the menu items on Standard DNN Dark Knight Skin Modules using jQuery failing to function as desired The Problem The problem is associated with some bugs in the jQuery released and hosted googleapis. The bugs are not related to DotNetNuke directly but the jQuery used in many instances of jQuery. The Solution The solution is an easy one. You just need to login to your DotNetNuke website with a Host Account, and modify the jQuery settings under the HOST / ADVANCED SETTINGS to a more recent and bug free version of jQuery UI.   Pasting this URL: https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js into the “Hosted jQuery UI URL" and ensuring the “Use Hosted jQuery Version” is ticked.

Upgrading Steps for DotNetNuke from DNN 4.x.x to DNN 6.x.x

Specifically we wanted to take a version of DotNetNuke from 4.9.1 to 6.1.3 today and actually found that it worked perfectly. We did take some steps that helped a lot. This may be of value to some of you. Before we Began 1. Backed up the entire file system for the website. 2. Backed up the database on SQL server for the site in question. 3. Ensured we had a HOST login account that worked. 4. Ensured the server we were running on (Windows 2008 R2) was patched and running .Net Framework version 3.5 SP1. 5. If your site is busy, work out a way to stop the traffic. One way is to add a portal alias, like test.domain.com in your DNN website. Setup a DNS entry to that test.domain.com points to the IP address of your DNN web server. In IIS, setup a Binding, so that test.domain.com will answer… Read More »Upgrading Steps for DotNetNuke from DNN 4.x.x to DNN 6.x.x

DotNetNuke 6 running in .Net 4.0 Server Error in '/' Application Version=3.5.0.0 Version=4.0.0.0

We had a requirement today to run a DotNetNuke Website in .Net 4.0 as some code we are using as part of the Microsoft CRM 2011 SDK require .Net 4.0. Problem is that with many of the DotNetNuke websites, they have some references that will cause this error when you flip your website worker process to 4.0. in IIS. This will give you an error that looks like this:   Generates an error: Server Error in ‘/’ Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1703: An assembly with the same identity ‘System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ has already been imported. Try removing one of the duplicate references. Source Error: [No relevant source lines] Source File: Line: 0 Show Detailed Compiler Output:   Interestingly too… Read More »DotNetNuke 6 running in .Net 4.0 Server Error in '/' Application Version=3.5.0.0 Version=4.0.0.0

DotNetNuke Forum Module 05.00.02 The missing link!

DotNetNuke 05.06.03 Pain If you look at the project downloads for dotnetnuke, you will notice that the forums module has the latest version as: 05.00.01 And if you click the link from within this page: http://www.dotnetnuke.com/Resources/Downloads/Projects-Downloads.aspx 05.00.01 is exactly what you get. All sounds neat and tidy… right? Not really, because if you install the latest version of DotNetNuke 05.06.03 (an important security release) you will kill your forums. Dead as dead. And if you check around for an update of the forum module, you will not find one either in your Module Definitions, or in the DotNetNuke website. But keep looking to codeplex and you find this: 05.00.02 and what is strange, it is released before the DNN 05.06.03 update, like significantly before it… like 1 month. This Forum Update is NEEDED if you want the forum module to work on DNN 05.06.03 http://dnnforum.codeplex.com/releases/view/67840 Release Notes The same module… Read More »DotNetNuke Forum Module 05.00.02 The missing link!