Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#202 Error executing macro: bodytext

open
nobody
None
5
2007-04-09
2007-04-09
Anonymous
No

I believe several other people have or are experiencing this problem. Currently restarting IIS temporarily fixes the problem but it manifests itself again later on.

I've setup my blog and had it running for 3 months and it just started doing this for the last week. Is there anyone who can provide a solution?

Here is the scenario:

#1: Write up blog entry.
#2: Post blog entry. ( and for some reason )
#3: It causes an error in the event logs.
#4: The login page is inaccessible. Same with blog posts. also default.aspx doesn't show any of the blog entries.

I tried restarting IIS but that didn't solve it for me. Here is the workaround that I found that worked.

Step 1: Download DasBlog again.
Step 2: Take the template that you have selected for your blog.
Step 3: Copy it up and override the one on the server.
Step 4: Clear your browser cache and everything is back to normal.

Here is the error in it's entirety.

Error:
Error executing macro: bodytext. Make sure it you're calling it in your BlogTemplate with paratheses like 'myMacro()'. Macros with parameter lists and overloads must be called in this way. Exception: System.Reflection.TargetException: Object does not match target type. at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at newtelligence.DasBlog.Web.Core.TemplateProcessor.CachedMacro.Invoke(Object obj) at newtelligence.DasBlog.Web.Core.TemplateProcessor.InvokeMacro(Object obj, String expression) at newtelligence.DasBlog.Web.Core.TemplateProcessor.ProcessTemplate(SharedBasePage page, Entry entry, String templateString, Control contentPlaceHolder, Macros macros)
while processing .

Thanks!
Joseph

Discussion