Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogCanCan't read blog entry if user comments are turned on
Previous
 
Next
New Post
1/25/2009 3:30 PM
 

Like many in other threads here, I'm having the issue where if user comments are turned on (at the parent/child blog level or for the individual blog post) the blog entry cannot be read by clicking on the blog title or the "read more" link. The errors in the event viewer were the same as are being reported in other posts:

ModuleId: 673
ModuleDefId: 105
FriendlyName: Recent Blog Entries
ModuleControlSource: DesktopModules/Blog/MainView.ascx
AssemblyVersion: 04.09.01
PortalID: 1
PortalName: ScotBecker.com
UserID: 10
UserName: Scot
ActiveTabID: 121
ActiveTabName: Blog
RawURL: /Blog/tabid/121/EntryId/107/test.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.scotbecker.com/Blog/tabid/121/BlogID/28/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 1a96ecf0-16f3-4fad-b038-c01494be739a
InnerException: Value cannot be null. Parameter name: format
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.String.format
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Value cannot be null. Parameter name: format ---> System.ArgumentNullException: Value cannot be null. Parameter name: format at System.String.format(IformatProvider provider, String format, Object[] args) at DotNetNuke.Modules.Blog.ViewEntry.BindCommentsList() at DotNetNuke.Modules.Blog.ViewEntry.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: DEDI379

AssemblyVersion: 04.09.01
PortalID: 1
PortalName: ScotBecker.com
UserID: 10
UserName: Scot
ActiveTabID: 121
ActiveTabName: Blog
RawURL: /Blog/tabid/121/EntryId/107/test.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.scotbecker.com/Blog/tabid/121/BlogID/28/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 972021d1-33bc-4d05-b150-bdc43eca25d1
InnerException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.ControlCollection.Add
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, PortalModuleBase ctrlModule, Exception exc, Boolean DisplayErrorMessage) --- End of inner exception stack trace ---
Source:
Server Name: DEDI379

... and the page refreshes to: http://www.scotbecker.com/Default.aspx?tabid=121&def=ErrorMessage

which just shows the blog listing and not the individual post.

One interesting item to note is that when I select the drop down to get to the module options from this page, there are two new items in the menu, both with blank text. One accesses the blog settings and the other creates a new blog entry.

Also, the module options for the blog view component have only about half of the labels present. For example, none of the labels in the vertical section show up. I can provide screen shots if that would be of any use.

Other suggestions in the various threads (e.g. making sure all connection strings pointed to the right DB, incorrect image paths, et al.) were not applicable to me.

I can reproduce this at will. Currently, all blogs have comments turned off. If I make a new post and select "Allow users to comment on this entry (overrides Blog Setting) " prior to posting I will not be able to read the post and the above errors will get thrown.

In my case, I upgraded from DNN 03.02.02 to 04.09.01 and then upgraded to blog version 03.05.01. I don't know if this problem manifested itself after the DNN upgrade or after the component upgrade. I'm currently hosting 3 portals on this installation. Each portal has a single parent blog. One has no child blogs but the other two do. All blogs are on pages viewable by everyone (e.g. none are on private/restricted pages). All three portals exhibit the same behavior described above.

 
New Post
1/26/2009 3:03 AM
 

Hi Scot,

this error arises when some <%= %> code blocks are present on the page. This prevents the code from manipulating the controls collection. This is a well known ASP. NET issue, that may be resolved moving the code blocks from the head section to the form section. To learn if this is your case, try temporarily removing the offending code from the page and see if the exception is thrown again.

Best regards,
Dario Rossa

 
New Post
1/26/2009 9:46 AM
 

Hi Dario,

Thanks for responding.

I've added no code to any page nor customized any aspect of DNN (aside from skinning, and two of the sites are currently using skins that come with DNN).

I just put the blog module on a DNN page and turned the user comments on....

Also the blogs were working fine prior to the DNN/blog module upgrades and those upgrades are the only changes I've made.

Thanks Much,

Scot.

 
New Post
1/27/2009 3:44 AM
 

Hi Scot,

if you upgraded from a previous DNN version, the old skin may contain the unwanted tags. Could you please check if the error persists using the default DNN 04.09.01 skin?

Best regards,
Dario Rossa

 
New Post
1/28/2009 10:12 AM
 

I Assume that is the "DNN" skin? If so, the same behavior occurs.

Thanks,

Scot.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogCanCan't read blog entry if user comments are turned on


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out