Rewriter in IIS6 virtual directory throws exception

Sep 2, 2009 at 7:00 PM

Thanks for the rewriter/proxy - this is excactly I needed to manage my web applications.  Great work!

Although I managed to install the rewriter successfully in a new web site under IIS6, attempting to install under just a virtual directory results in an exception being thrown:

[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
   System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7492983
   ManagedFusion.Rewriter.Engines.ApacheEngine.GetRuleSet(String relativePath) in C:\Users\Nick\Documents\Projects\Managed Fusion\ManagedFusion.Rewriter\Source\Engines\ApacheEngine.cs:93
   ManagedFusion.Rewriter.Engines.ApacheEngine.RunRules(HttpContext context) in C:\Users\Nick\Documents\Projects\Managed Fusion\ManagedFusion.Rewriter\Source\Engines\ApacheEngine.cs:281
   ManagedFusion.Rewriter.Manager.RunRules(HttpContext context) in C:\Users\Nick\Documents\Projects\Managed Fusion\ManagedFusion.Rewriter\Source\Manager.cs:115
   ManagedFusion.Rewriter.RewriterModule.context_BeginRequest(Object sender, EventArgs e) in C:\Users\Nick\Documents\Projects\Managed Fusion\ManagedFusion.Rewriter\Source\RewriterModule.cs:117
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Not sure why this shouldn't work - any ideas?  I am currently just using the example configuration files without change.

Thanks.

Sep 2, 2009 at 7:44 PM

Solved!!

The example ZIP file I used included the DLL version 3.0.0.0.  If I move up to 3.0.6.0 then it works perfectly!