Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to January 2006 Entries
How to add DotNetNuke localization for a country.
I've created an SQL to add australian regions and australian currency to DNN Lists table. The task is discussed on DNN Forum. -- ===========================... Create procedure basic template-- ===========================... creating the store procedureIF EXISTS (SELECT name FROM sysobjects WHERE name = N'{databaseOwner}{objectQua... AND type = 'P') DROP PROCEDURE {databaseOwner}{objectQuali... CREATE PROCEDURE ......

Posted On Friday, January 20, 2006 6:49 AM

DotNetNuke should cache GetHostSettings calls to database.

I've opened SQL profiler and noticed that opening single page in DotNetNuke causes tens of calls to database. In particular opening the Admin Pages List causes more than 50 calls to  GetHostSettings SP.

They should re-design to cache the results.

Posted On Thursday, January 19, 2006 6:45 AM

Suggestions/bugs ranking on MS product feedback site
I've recently posted a few suggestings/bugs to MS Product Feedback site. They have Top Bugs/Suggestions (How we rank?) section, but I found that their way to use average vote is not appropriate. In the current approach bug with 3 users rated 5 has bigger rank, that the bug with 60 users voted with average 4.96( almost all rated as 5 and a few rated less).Also if I want to vote for the suggesting/bug, but consider it less than 5, I could reduce average rate and subsequently overall rank, even if I ......

Posted On Wednesday, January 18, 2006 9:52 AM

DotNetNuke exceptions when calling GetSupportedLocales
When I running DotNetNuke 4.0.2, I sometimes (not always !?) receive System.NullReferenceException exceptions in the area related to GetSupportedLocales. 1. I've changed in DNNLibrary\Components\Local... GetResource(ByVal ResourceFileRoot As String, ByVal objPortalSettings As PortalSettings, ByVal strLanguage As String) function the code to use local variable Dim locale As Locale = GetSupportedLocales(userLan... 'mnf 17/1/2006 second call returns Nothing'If (Not GetSupportedLocales(userLan... ......

Posted On Wednesday, January 18, 2006 7:57 AM

Exception handling in DotNetNuke Container for debugging
I found another useful change in DNN core to debug exceptions. Function GetPortalModuleBase in Library\Components\Skins\Co... silently catchs exception with comment ' module was not loaded correctly I beleive that exception should not be catched at all, because nothing return after exception causes very unclear message “MinMax persistance type of cookie requires a ModuleId“ but at least for debugging purposes catch should be replaced with the followning code. (UPDATE 9/6/2006: ......

Posted On Tuesday, January 17, 2006 1:46 PM

Quick Start of Debugger in VS 2005 Tip required manually handle Dependencies.
Because VS 2005 seems much slower compare with VS 2003, I was very excited when read a tip , that suggested to uncheck libraries from Configuration Manager. And it really improves the speed of start up.( I don't understand why dependency check became so slow in VS 2005) I have DotNetNuke web site project and a few library projects, both DotNetNuke and my own. The problem happened when I changed the code in one of the libraries. It was quite obvious that I had to re-build the library which I've changed.But ......

Posted On Tuesday, January 17, 2006 9:23 AM

DotNetNuke NavigateURL() returns FriendlyUrls, which is not always suitable.
My DotNetNuke site has HostSetting("UseFriendlyUrls") = "Y", which is generally good. The most popular function used in DNN to generate url is NavigateURL. However when I want to get Page Url and then add additional query parameters, NavigateURL() is not the best choice. NavigateURL returns FriendlyUrl, and after adding extra parameters (e.g. http://localhost/FSDNN/vKno... ) the structure of URL becomes different to what HttpModules.UrlRewrite ......

Posted On Tuesday, January 17, 2006 7:42 AM

Show exception details during development in DotNetNuke
In DotNetNuke development when exceptions occured, the only short exception message is shown in the web page.To see full details, you need to open log page, which is required a few mouse click and round-trips. I found that for development (in Debug mode) it is more convinient to see full exceptions on the page. The changes can be done in core DotNetNuke\Library\Componen... file, function Page_Error, I've replaced strURL += IIf(strURL.IndexOf("?") = -1, "?", "&").ToString & ......

Posted On Monday, January 16, 2006 11:33 AM

GetTypeFromCLSID changes in .Net Framework 2.0
My application, written for .Net 1.1, used GuidAttribute of Type to uniquely identify classes and then load different classes, based on specified GUID passing to GetTypeFromCLSID. The classes were not COM classes. The functionality is broken in .NET 2.0 as documented here. Now GetTypeFromCLSID returns valid type only if the class is COM object (Type.IsComObject() returns true) and is registered as COM class. Managed class with matched GuidAttribute will not be returned by GetTypeFromCLSID(guid) . ......

Posted On Wednesday, January 11, 2006 8:54 AM

Visual Studio 2005 Web Site Project- "Edit and Continue" is too restrictive.
I have a solution with Start ASP.NET project and several VB and C# library projects. When I stopped in Visual Studio 2005 debugger in the library class code, the file is shown with small “lock”. It doesn't allow me to do any changes, but show the message "Edit and Continue" "Changes are not allowed when the debugger has been attached to an already running process or the code being debugged is optimized". None of of these conditions is actually applicable for my case. Library is included in the solution, ......

Posted On Monday, January 9, 2006 10:59 AM

DotNetNuke 4.0 API Reference Help File will be very useful.
It will be very useful for development of custom modules if DotNetNuke API Reference would exist. The core has XML comments and VS 2005 supports XML documentation in VB. I didn't find any tools that currently fully support .Net 2.0. NDoc is not fully implemented version for .Net 2.0, but has some workaround, which doesn't work for me. The modified version 1.3.1 of NDoc started to build help but then got an NDoc.Core.DocumenterExcepti... may only be called on a Type for which Type.IsGenericParameter ......

Posted On Thursday, January 5, 2006 9:57 AM

Copyright © Michael Freidgeim | Powered by: