Randomly starts giving error 330

Feb 17, 2011 at 4:36 PM

First of all, thanks for the great project. I recently upgraded from 1.6 to 2.0 and most of the times things look really good. But few times now the blog has started to give error 330 when accessing blog posts. The main page still works, but if I try to open the Contact-page or any blog-post, things end up with the error. The problem is solved by iisreset.

Chrome reports the problem as: Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.

I didn't encounter these when running version 1.6 so I'm guessing it has something to do with a newer version. Anyone encountered the same?

Feb 18, 2011 at 12:32 AM

It happened again and this time I remembered to test the site with a local browser. Here's some more details:

Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
App_Code.Controls.RecaptchaControl.get_MaxLogEntries() +22
App_Code.Controls.RecaptchaControl.get_RecaptchaLoggingEnabled() +24
App_Code.Controls.RecaptchaControl.OnUnload(EventArgs e) +19
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +241
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +175
System.Web.UI.Page.UnloadRecursive(Boolean dispose) +23
System.Web.UI.Page.ProcessRequestCleanup() +43
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.post_aspx.ProcessRequest(HttpContext context) +4
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 

The thing is, I haven't enabled the Recaptcha extensions.

AkismetFilter 1.0 Akismet anti-spam comment filter BlogEngine.NET
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_0" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl02$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_0" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl02$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
BBCode 1.0 Converts BBCode to XHTML in the comments BlogEngine.NET
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_1" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl03$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_1" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl03$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
CodeFormatterExtension 0.1 Converts text to formatted syntax highlighted code (beta). www.manoli.net
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_2" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl04$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_2" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl04$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
Logger 1.0 Subscribes to Log events and records the events in a file. BlogEngine.NET
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_3" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl05$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_3" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl05$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
MediaElementPlayer 1.5 HTML5 Video/Audio Player John Dyer
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_4" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl06$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_4" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl06$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
Recaptcha 1.1 Settings for the Recaptcha control Bloodforge.com
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_5" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl07$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_5" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl07$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
ResolveLinks 1.5 Auto resolves URLs in the comments and turn them into valid hyperlinks. BlogEngine.NET
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_6" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl08$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_6" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl08$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
SendCommentMail 1.3 Sends an e-mail to the blog owner whenever a comment is added BlogEngine.NET
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_7" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl09$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_7" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl09$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
SendPings 1.3 Pings all the ping services specified on the PingServices admin page and send track- and pingbacks BlogEngine.NET
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_8" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl10$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_8" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl10$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
Smilies 1.3 Converts ASCII smilies into real smilies in the comments BlogEngine.NET
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_9" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl11$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_9" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl11$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
SyntaxHighlighter 2.5 Adds Alex Gorbatchev's source code formatter BlogEngine.NET
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_10" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl12$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_10" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl12$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
TypePadFilter 1.0 TypePad anti-spam comment filter (based on AkismetFilter) By Chris Nicola
0 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_11" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl13$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_11" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl13$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
SimpleCaptcha 1.0 Settings for the SimpleCaptcha control Aaron Stannard
2 <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityUp_12" alt="Up" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl14$btnPriorityUp" src="http://mikaelkoskinen.net/admin/images/action-up.png" type="image" /> <input id="cphAdmin_ctl00_gridExtensionsList_btnPriorityDwn_12" name="ctl00$cphAdmin$ctl00$gridExtensionsList$ctl14$btnPriorityDwn" src="http://mikaelkoskinen.net/admin/images/action-down.png" type="image" />
BreakPost 1.4 Breaks a post where [more] is found in the body and adds a link to full post BlogEngine.NET
1010
Feb 18, 2011 at 9:43 PM

i feel your pain, i get the same problem :-(

made a post few days ago but havnt been able to fix it.

 

the only thing i did to get it to work was to remove the simple/recapcha extensions and then it all works but that leaves me open to mass spammers

Mar 4, 2011 at 8:20 PM

Recaptcha Extention has a problem. I enabled it, added it to the blog and I get a ArgumentNullException, at this point:

        /// <summary>
        /// Checks the not null.
        /// </summary>
        /// <param name="obj">The object to check.</param>
        /// <param name="name">The object name.</param>
        private static void CheckNotNull(object obj, string name)
        {
            if (obj == null)
            {
                throw new ArgumentNullException(name);
            }
        }

in RecaptchaValidator.cs.

I am using BlogEngine.Net 2.0

Coordinator
Mar 4, 2011 at 11:44 PM

Did you configure the Recaptcha extension ... entering in your Recaptcha account information?

On the Extensions tab, next to the Recaptcha extension is a Tools button which opens up a context menu with a link to "Edit" the settings.

May 15, 2011 at 8:41 AM

Having the same problem over here and got some more information. ;-)

Workaround:
When this error happens I can "solve" it by forcing the web-application to restart eg. by renaming the web.config to something else and back again. After the "restart" the blog works just perfect (with rechapta configured and enabled).

Additional information:
If the above error happen I can go to the admin-backend and see every extension listed twice or more. I already saw this happen in V 1.6. This still happens in V2.0.0.36. Maybe this is related to each other.

Now some wild guessing:
What if the extensions are not only rendered multiple times but also are loaded/instantiated multiple times and one of them (eg. rechapta) does not like this at all because of some object references etc.? ...just guessing ;-) 

May 27, 2011 at 9:02 PM

I just did a new install of BE 2.0.0.36 on IIS 6 and I am experiencing the same issue. It only happens when I actually click on the Blog Post (permalink). I don't have Recaptcha installed or configured at all and Recaptcha isn't even listed in my Extensions in the Admin menu.

Up until now I was digging BE but this is something I hope can be corrected soon or else I will have to look for another application.