Tuesday, February 07, 2012
Blog Entries
Author: Created: 11/14/2007 11:06 AM
In "Knowledge Base" I hope to give back to the community of online programming help that I have relied on so heavily all these years. I will try to document any technical "discoveries" that I make during my work.
By Larry Daniele on 9/7/2008 5:50 PM
On DNNStuff.com site, there's a great article (with source code) IMC Example (DotNetNuke Intermodule Communication) that demonstrates how to implement IModuleCommunicator and IModuleListener interfaces in DNN using two simple modules, one that sends text and one that receives it. It is great to have simple, working code to explain a concept like this. (Note: You'll have to register (for free) on the DNNStuff.com site before you can view the article.)

 

I would like to offer one suggestion for an improvement…

 

IMC works great unless you check "Supports Partial Rendering" (i.e. AJAX) for the sender and receiver controls. This is desirable to have one module update the other without the entire page refreshing.

 

A few simple changes to Receiver.ascx.vb (steps 1-3) and ImcExample.dnn (step 4) will enable AJAX rendering to work:

 

Add a reference...
By Larry Daniele on 5/12/2008 4:19 PM

If you try to view your webmail for a domain managed by Plesk and get either the default Plesk web page or a "page not found" error, here's a fix that worked for me (on Plesk 8.1 on Windows Server 2003):

1. Set Plesk > Server > Components Management > Webmail to "None". Click on OK. Then set it back to "Horde IMP H3 (4.1.3)" and click OK to reset the webmail server.

2. Remote Desktop to IIS. Navigate to the "webmail(default)" web site. Properties > Web Site > Advanced. Make sure the domain you want is in this host header list. E.g.

    208.109.27.122
    80
    webmail.LarryDaniele.com

Sometimes disabling and re-enabling web mail for the individual domain will fix this, but not all the time (in my experience).

By Larry Daniele on 3/14/2008 4:27 PM
If you are reinstalling Microsoft SQL Server 2005 Express on a server running ASP.NET and Plesk, when you try to view an ASP.NET web page, you might see a message like the following:

Cannot open database "TellUWhen" requested by the login. The login failed.Login failed for user 'MIGHTYMOUSE\IWAM_plesk(default)'.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Data.SqlClient.SqlException: Cannot open database "TellUWhen" requested by the login. The login failed.Login failed for user 'MIGHTYMOUSE\IWAM_plesk(default)'. The basic solution to the problem is to make sure that the specified user name (e.g. ASPNET or IWAM_plesk(default)) is a member of the SQLServer2005MSSQLUser$server$SQLExpress group.Here are the specific steps to do this for the user "" on "":

Right-click "My Computer" and choose "Manage". Navigate to "Local Users...
By Larry Daniele on 2/7/2008 6:02 PM
It seems there have been heated debates about whether DotNetNuke can be installed on a GoDaddy.com shared web hosting account. I am here to say that it can be done since I did just that on the website of my artist friend Debbie Hennes. Specifically, I installed DotNetNuke 4.8.0 on GoDaddy with the Hosting Control Center v2.4.2.

I basically followed the instructions on the Northern Star Solutions site. However, like over 70% of the people surveyed on that site, it didn't work by just following the instructions. Here are some points of confusion and suggestions:

When the instructions talk about going to Content > Directory Management, this is now Content > IIS Settings. Adding a Directory in this section makes the folder "read and write only". Checking...
By Larry Daniele on 1/31/2008 6:53 PM
I recently had a problem where overnight most (but not all) of the domains hosted on my GoDaddy.com virtual dedicated server could not be reached via ping, web browser, email, etc. The machine was running fine, so I suspected a problem with the Plesk DNS service. However, unlike past times, this was running fine. However, when I checked the file "C:\SWSoft\Plesk\dns\etc\named.conf" (a source of previous problems), I found that all the problem domains were missing from this zone file. So this was a clue. But even restoring these entries in the named.conf file didn't help. Then I noticed that this file references files in the folder "C:\SWSoft\Plesk\dns\var\". The files it references were missing from the folder. Another clue! After trying lots of reboots, etc., the final solution was agonizingly simple. Go to the Plesk control panel for each domain and click the Disable button for the domain. Then click Enable. Voilà - the domains came back! (Checking "C:\SWSoft\Plesk\dns\var\" showed that the files...
By Larry Daniele on 11/19/2007 11:20 AM

I finally got my HP PhotoSmart 7350 to work with my Mac iBook G4 running OS X 10.4 (Tiger) (after nearly two years of banging my head against the wall trying to get the standard HP driver to work in any fashion). Here's how:

  1. Go to The Linux Foundation OpenPrinting/MacOSX/hpijs drivers page.
  2. Download and install from that page (in this order): ESP Ghostscript, Foomatic-RIP and finally the hpijs package.
  3. Go to the Mac Printer Setup Utility (in Applications/Utilities) and add your printer (e.g. "HP PhotoSmart 7350 Foomatic/hpijs" under "HP").

I was even able to get this working with a Linksys WPS58G wireless-G print server by setting up an "IP Printer"  with Protocol set to  "HP Jet Direct - Socket" ,  Address to the IP address of the print server (e.g. 192.168.20.200).

I hope this may help someone else who is struggling with this.

By Larry Daniele on 11/14/2007 5:04 PM
As of DotNetNuke (DNN) 4.7, the RSS News Feed module doesn't display embedded HTML in the Description field because the default transform (RSS91.xsl) in the "DesktopModules\News" folder. The solution is basically to change:

to:

You could edit this file directly so it would apply to all news feeds you put on your system. However, if you want to control which feeds are allowed to inject arbitrary HTML into your site, then the "clean" way to do this (without changing the DNN installation itself) is to:

Make a copy of the default RSS91.xsl on your local system. Make the change shown above (and any other formatting changes you might want). Upload this file into your DotNetNuke files. (I put mine in a "Transforms" folder.) Reference this file in the Settings for your News module in the News Feed Style Sheet section. ...
By Larry Daniele on 11/14/2007 11:23 AM
Describes how to display a clock on a web page using a minimum of JavaScript code.
Search Blog
Privacy Statement  |  Terms Of Use
Copyright 2007-2011 by Larry Daniele