Dave Burke : Freelance .NET Web Developer specializing in Online Communities

How ReverseDOS crashed my CS 2.0 upgrade party

I knew my upgrade to CS 2.0 on my web host provider WebHost4Life wasn't going to be problem free, since, let's face it, the mass of files comprising CS 2.0 is downright huge.  (Reminds me of a guy I know who's like 120 pounds and his wife is around 300 pounds.  I feel like that guy when I'm upgrading CS, but hey, I love every pound of her.)  As part of the fun I was moving from .NET 1.1 to .NET 2.0, too, so the stage was set for fun a-plenty. 

Everything went beautifully until that wrench outta nowhere nailed the side of my head from ReverseDOS's direction just when I thought I was done with the upgrade.  It still smarts a bit, too, which is why you'll find a tried-and-true CAPTCHA control on my CS 2.0 comment form.

ReverseDOS is a Comment and Referral Spam control package that several CS guys who I admire a lot swear by.  So with CS 2.0 I thought I would do what the Coolsters were doing and would consider life without CAPTCHA.

After about an hour of deleting my old site directories and uploading my new site I fired up my new site.  Sweeeeeeeeet!  (Man, who's that handsome, posterized guy on the home page of that blog!)

Not done yet though.  Time to login, turn off a few CS applications and other necessities to finish the job.
 
WHAT TH'...  I CAN'T LOGIN TO MY BLOG!




Tell me, how in the HECK do I track that one down???  And in IE, all I got was a blank page when I tried to login.  I didn't have any View Source to work with, and there were no errors recorded in my cs_exceptions table.  I was screwed.

There are three issues you automatically consider with a CS upgrade problem when everything is perfect on the development server:  1) Permissions, authentication or configuration issues on the remote host server (Whatdaya MEAN I can't run IIS and see how my Application Pool is configured???),  2) I somehow missed uploading some files, or 3) with all of the UrlRewriting in the CS Core maybe my single blog configuration was screwed up.  But it looked like an XML issue.  Unfortunately, there's XML everywhere in CS, even in SQL tables, so Lord knows where this missing "XML element" was supposed to be located. 

I knew the site was complete and configured correctly.  I knew the site was clean from any CS 1.1 files before I moved to CS 2.0.  Checking everything for possible clues.  Then on top of that, WebHost4Life decides to have SQL Server problems (I knew because I had another WH4L site down for about an hour, too), so my investigation was stalled.

I then decided to take a reductionist route and started getting rid of stuff.  Kinda like back in the early 90's when a computer wouldn't boot up, you yank the video card or a RAM SIMM.  So I got rid of the custom CSModule I wrote.  That wasn't it.  Now it was ReverseDOS's turn to go.

I removed the ReverseDOS DLL from the \bin directory, the httpmodule listing from the web.config and removed the reverseDOS.config from the root.  Dang if that wasn't the problem.  I was able to login some four hours after the moment I thought I was done with my upgrade. 

That was when I added my CS 2.0 CAPTCHA mod. 

For you ReverseDOS fans, I'm sure I followed the installation instructions correctly.  I used the default .config file.  I have no virtual directories on my site, so I didn't put it in any subdirectories.  The thing is, it was working perfectly on my development server, so I don't know.  All I know is that my upgrade could have gone a lot smoother than it did and somebody has to take the fall. 

[tags: Community Server, ReverseDOS]

Comments (11) | Post RSS RSS comment feed

Posted on 3/16/2006 12:03:00 PM by Dave Burke
Categories: Community Server
Tags: no tags for this post

Related posts

Comments (11) -

3/16/2006 4:31:14 PM Permalink

Now that's pretty damn interesting...I ran into the exact same issue (and just like yourself it worked fine on my dev machine but only was broken on my prod server) initially w/ RDOS.  I cannot for the life of me remember exactly what I did to fix it, but I did get it fixed.  It was probably a combination of blowing away my CS install (and temp internet files) cycling IIS a few dozen times, etc...of course I realize you don't have that luxury since you're in shared hosing.

Here's where it gets really strange.  I get that error (different pages of course) attempting to:
- Update my homepage news via the modal dialog.
- Mass delete comments in CP (though deleting individual comments works fine).
- A few other places I can't remember off the top of my head.

I emailed the Telligenti and they have no idea.  It's definitely environmental though and not related to RDOS; it appears to be a CS bug that only shows up in specific scenarios (and I bet asp.net 2.0 has something to do with it as well).  The problem is I don't even no where to begin debugging.  I can't debug locally as everything works fine on this machine.  So, it looks like I have some adventures in production debugging to look forward to over the weekend.  Yay.

jayson knight |

3/16/2006 6:30:24 PM Permalink

Man, don't you just hate stuff like that?  I'm glad you're up and running though.  It looks good.

ps.  CAPTCHA is some sweet action!

Erik Lane |

3/16/2006 6:41:37 PM Permalink

I know what the problem is, Dave. You need to change the name of your admin user. Using "viagra-casino-pharmacy-guy" as the user name just won't work with ReverseDOS! Wink

mabster |

3/16/2006 7:53:10 PM Permalink

Jayson, you sure know the intricacies of this stuff!  Thanks for passing along your experience.  Erik, thanks for letting me know "it's okay" if I still use CAPTCHA.  

Mabster, you get the usual "yuck yuck!"  Funny!  Actually, that suggestion isn't too outrageous!  For more nerdspeak, it didn't matter WHAT I entered in the login form.  adsf/safd produced the same error.  It was the darndest thing.  It's like I clicked submit, then CS went out looking for normal people in Australia, and then just returned a blank screen.  Reeeeeally weird.

daveburke |

3/16/2006 9:14:27 PM Permalink

Jayson said what I wanted to say, absolutely better than me Smile
Yes; I think that it's not a ReverseDOS issue and is related to CS itself. I haven't faced with such as these problems (what Jayson listed) on my hoster and could install ReverseDOS easily (this is the first time I haven't faced with errors when working with CS!!)
Conclusion: Use CAPTCHA and enjoy blogging ;)

Keyvan Nayyeri |

3/17/2006 5:54:07 AM Permalink

Keyvan, yeah, Jayson gets to the root of things, doesn't he?  I'm sorry I won't be going with ReverseDOS knowing how you guys like it.  I have no idea how reverseDOS works, but I do know that there is SO much URLRewriting and mapping going on in CS that I'm not surprised some applications like ReverseDOS get confused.

I also wanted to thank you for reminding me about getting my CoComments back up.   Will do!

daveburke |

3/17/2006 5:57:00 AM Permalink

Well thats no good.  Here we are telling you to use Reverse DOS and it doesn't work for you.  

I think I had something similar with my first install but I can't remember what it was.   I think I wiped out he directories and uploaded fresh and it all worked again.  

I'll have to second Keyvan's comment and if Captcha works, use it and be happy.

Dave Kekish |

3/17/2006 6:00:12 AM Permalink

Dave, yes, I think I'll take Keyvan's counsel on this.  Use Captcha and be happy!  Thanks for stopping by!

daveburke |

3/17/2006 9:17:15 AM Permalink

Dave, sorry you had problems with RDOS.

Sadly, links to this post coming to my own site were the first that I knew of this problem. I imagine that as a developer you can appreciate how sucky it is for me to run into a post like this out of the blue... especially considering that RDOS is working fine for hundreds of people...

That said, I'll pull down a copy of CS in a while, and throw it up on a VM/VPC and see if I can't reproduce this problem, or figure out how RDOS figures in to the mix. (My _hunch_ is that if you were to re-install it at this point it would work without a hitch...

I'll try to do some initial testing/digging late next week...

Michael K. Campbell |

3/17/2006 9:47:38 AM Permalink

It must be a vermont thing. I had a few problems when I first installed ReverseDOS (on dasBlog) but Michael quickly helped me see what I had done incorrectly in my setup and it's been working great since. I went to ReverseDOS because I was suddenlty getting about 5-10,000 referral spams a day.

Julie Lerman |

3/17/2006 9:57:37 AM Permalink

Julie, I'm not surprised, of course, if you hit this trail before I did.  Thanks for your comments.

Michael, So sorry for the imposed suckiness of discovering this post by a trackback.  I searched AngryPets when I discovered the problem and didn't find anything and I honestly didn't think to contact you personally about it.  I didn't mean to badmouth ReverseDOS.  That's just what happened.

I promise I'll try it again if you put some time into it, as it appears other people are encountering some weirdness with RDOS and Community Server.  CS is a funny animal as you'll discover from the source and as Jayson implied above, it only happens in certain environments.

Best to you and your testing and digging next week.  Hope you find some interesting discoveries that may explain some of this.

daveburke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke