Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to May 2006 Entries
Meaning "IsPublic" for DotNetNuke Roles.

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\Register.ascx.vb).
I 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.)


Posted On Tuesday, May 30, 2006 10:33 AM

Lazy roles Synchronization in DotNetNuke.
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 ......

Posted On Tuesday, May 30, 2006 9:24 AM

WebResource Script in VBeXpressWebForms
My application still using VbExpress generated code even if the authors do not do any development/support. When moving to DNN with URL rewriting I had to modify VBeXpressWebForms.VBeXpress... . I've commented out in GenerateJScript 'mnf 26/5/2006 strOut = strOut & "<script Language=""JavaScript"" src=""JScript/Calendar.js""... & vbCrLf Added <Assembly: WebResource("Calendar.js", "application/x-javascript")... , added the “Calendar.js“ file as ......

Posted On Monday, May 29, 2006 10:11 AM

Check that embedded resource exist before calling ClientScript.RegisterClientScriptResource or GetWebResourceUrl
The Asp.NET 2.0 allows to provide JS files in embedded resources using WebResource.axd. The procedure is well described here and here. Note that adding [assembly: WebResourceAttribute] attibute is important. However the methods ClientScript.RegisterClient... and ClientScript.GetWebResourceUrl do not throw exceptions, if embedded resource is missing. They just generate invalid urls that can't be visually checked because parameters are encrypted. For easier identification of the error it ......

Posted On Friday, May 26, 2006 10:21 AM

Reset DotNetNuke windows authentication back to normal.
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 ......

Posted On Tuesday, May 16, 2006 9:42 AM

problems attempting to install a 2002 access deployment package on a machine with Windows 2003
Someone asked me with relation to my post Access 2003 Package Wizard - a big step BACK. “I was wondering if you have run into problems attempting to install a 2002 access deployment package on a machine with 2003. Does not seem to work.“ I've emailed him the following answer: You should check MSDN article : "You may receive error messages when you install an Access 2002 runtime deployment package on a computer that is running Windows XP SP2 or Windows ......

Posted On Tuesday, May 16, 2006 9:15 AM

Create CSS Links in DotNetNuke.
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. ......

Posted On Saturday, May 13, 2006 8:57 PM

Using Configuration.Section to access subsection
I have a section in Web.Config: <applicationSettings> <FSBsnsCsLib.Properties.... ... </FSBsnsCsLib.Properties... </applicationSettings> I've tried to access inner section using shortcut “Section/Subsection&#... string sSectionName="applicationSe... sectSettings = (ClientSettingsSection)conf... but it returned null. The correct way is the following: const ......

Posted On Friday, May 12, 2006 8:08 AM

Use VS 2005 Web Deployment Project with DotNetNuke
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 ......

Posted On Thursday, May 4, 2006 10:27 AM

Copyright © Michael Freidgeim | Powered by: