bishop335 / subtext

Automatically exported from code.google.com/p/subtext
0 stars 0 forks source link

All links result in error: Index was outside the bounds of the array #259

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Click on a post link; Or
2. Click on an archive link; Or
3. Follow a permalink to the blog

For instance:
http://jeffhandley.com/archive/2010/06/22/DomainDataSource-ComboBox.aspx

What is the expected output? What do you see instead?
The post, archive list, or other page should display.  Instead, I am getting a 
server error that states, "Index was outside the bounds of the array."

What version of the product are you using? On what operating system?
2.5.1 on Windows Server 2008

Please provide any additional information below.
This has spontaneously broken and I have no idea why.

Here is the call stack that is reported in the error:

[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +7464166
   Ninject.Planning.Planner.GetPlan(Type type) +93
   Ninject.Activation.Providers.StandardProvider.Create(IContext context) +111
   Ninject.Activation.Context.Resolve() +182
   Ninject.KernelBase.<Resolve>b__4(IContext context) +8
   System.Linq.<>c__DisplayClass12`3.<CombineSelectors>b__11(TSource x) +32
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +184
   System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +215
   Ninject.Planning.Targets.Target`1.ResolveWithin(IContext parent) +317
   Ninject.Activation.Strategies.PropertyInjectionStrategy.GetValue(IContext context, ITarget target) +142
   Ninject.Activation.Strategies.PropertyInjectionStrategy.Activate(IContext context, InstanceReference reference) +379
   Ninject.Activation.<>c__DisplayClass1.<Activate>b__0(IActivationStrategy s) +19
   Ninject.Infrastructure.Language.ExtensionsForIEnumerableOfT.Map(IEnumerable`1 series, Action`1 action) +146
   Ninject.Activation.Pipeline.Activate(IContext context, InstanceReference reference) +91
   Ninject.KernelBase.Inject(Object instance, IParameter[] parameters) +232
   Subtext.Framework.Routing.SubtextPageBuilder.CreateInstanceFromVirtualPath(String virtualPath, Type type) +44
   Subtext.Framework.Routing.PageRouteHandler.GetHandler(RequestContext requestContext) +43
   Subtext.Framework.Routing.RouteHandlerBase.System.Web.Routing.IRouteHandler.GetHttpHandler(RequestContext requestContext) +25
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +106
   System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +80
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Original issue reported on code.google.com by jeffhand...@gmail.com on 24 Aug 2010 at 9:32

GoogleCodeExporter commented 8 years ago
Was it working before?
Does it go away if you recycle the app?

Original comment by simone.chiaretta on 24 Aug 2010 at 10:30

GoogleCodeExporter commented 8 years ago
Yeah, it's been working since I upgraded.  I don't know when or why it starting 
failing, as I haven't posted anything or touched the blog in several weeks.

Recycling the app doesn't help.  I cannot reboot the machine until late tonight 
to see if that helps.

Original comment by jeffhand...@gmail.com on 24 Aug 2010 at 11:24

GoogleCodeExporter commented 8 years ago
Hmmm, exception appears to be thrown by Ninject. Not good. :(

Original comment by haac...@gmail.com on 25 Aug 2010 at 2:29

GoogleCodeExporter commented 8 years ago
Okay - I didn't do anything, but now links on my blog are working again.

Original comment by jeffhand...@gmail.com on 25 Aug 2010 at 4:00

GoogleCodeExporter commented 8 years ago
Let us know if it happens again.

Original comment by simone.chiaretta on 25 Aug 2010 at 7:49

GoogleCodeExporter commented 8 years ago
Having same issue, once every week or so.. No idea whats causing it but it 
takes the site down for random amounts of time then suddently starts working 
again.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Index was outside the bounds of the array. 
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.IndexOutOfRangeException: Index was outside the 
bounds of the array.

Source Error: 

An unhandled exception was generated during the execution of the current web 
request. Information regarding the origin and location of the exception can be 
identified using the exception stack trace below.  

Stack Trace: 

[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +7462182
   Ninject.Planning.Planner.GetPlan(Type type) +93
   Ninject.KernelBase.Inject(Object instance, IParameter[] parameters) +187
   Subtext.Framework.Routing.SubtextPageBuilder.CreateInstanceFromVirtualPath(String virtualPath, Type type) +44
   Subtext.Framework.Routing.PageRouteHandler.GetHandler(RequestContext requestContext) +43
   Subtext.Framework.Routing.RouteHandlerBase.System.Web.Routing.IRouteHandler.GetHttpHandler(RequestContext requestContext) +25
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +109
   System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +76
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Original comment by fuh...@gmail.com on 13 Sep 2010 at 7:58