We updated a few weeks ago to the latest Fubu (1.3.0.1710) and SM (3.0.5.130) and were seeing a lot of sporadic errors in our production logs along these lines:
System.InvalidCastException: Unable to cast object of type 'FubuMVC.Core.Http.AspNet.AspNetRequestData' to type 'FubuMVC.Core.Http.ICurrentChain'.
at StructureMap.BuildSession.GetInstance[T]() in c:\BuildAgent\work\996e173a8ceccdca\src\StructureMap\BuildSession.cs:line 55
System.InvalidCastException: Unable to cast object of type 'FubuMVC.Core.Http.AspNet.AspNetStreamingData' to type 'FubuMVC.Core.Http.ICurrentChain'.
at StructureMap.BuildSession.GetInstance[T]() in c:\BuildAgent\work\996e173a8ceccdca\src\StructureMap\BuildSession.cs:line 55
System.InvalidCastException: Unable to cast object of type 'FubuMVC.Core.Http.AspNet.AspNetHttpWriter' to type 'FubuMVC.Core.Http.ICurrentChain'.
System.InvalidCastException: Unable to cast object of type 'StructureMap.Container' to type 'FubuMVC.Core.Http.ICurrentChain'.
Can't seem to repro in dev or test server. It's happening on both our api and website. Just wanted to throw this out there in case someone else has seen this.