Saturday, February 12, 2005
Posted on Saturday, February 12, 2005 6:19:22 PM (Mountain Standard Time, UTC-07:00)  Comments [0] | 
Categories: .NET | DNN

Ran into an REALLY confounding problem today - my localhost DNN sites stopped rendering module content. No errors, just no modules.

After digging around in Default.aspx, I found my way into the injectModule method of Skin.vb. After tracing around in here for a while, I found that the visibility of the module was being controlled by a cookie...

If Not Request.Cookies("_Tab_Admin_Content" & PortalSettings.PortalId.ToString) Is Nothing Then
   blnContent = Boolean.Parse(Request.Cookies("_Tab_Admin_Content" & _ 
      PortalSettings.PortalId.ToString).Value)
End If

Somehow the cookie for http://Localhost/dnn had been set so that it had _Tab_Admin_Content set to false. The net effect is that no modules would be rendered.

I'm not sure how this cookie got set, but it was a dog to track down.    

Comments are closed.