Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to setup RR #265

Open
motiazu opened this issue Aug 26, 2014 · 1 comment
Open

Failing to setup RR #265

motiazu opened this issue Aug 26, 2014 · 1 comment

Comments

@motiazu
Copy link

motiazu commented Aug 26, 2014

I tried adding RR via nuget and manually, both attempts end up with the following error when accessing the website:
{"The type initializer for 'RequestReduce.IOC.RRContainer' threw an exception."}
Stack:
at RequestReduce.IOC.RRContainer.get_Current()
at RequestReduce.Module.RequestReduceModule.HandleRRContent(HttpContextBase httpContext, Boolean postAuth) in c:\RequestReduce\RequestReduce\Module\RequestReduceModule.cs:line 25
at RequestReduce.Module.RequestReduceModule.b__2(Object sender, EventArgs e) in c:\RequestReduce\RequestReduce\Module\RequestReduceModule.cs:line 19
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Inner exception:
Object reference not set to an instance of an object.
Stack:
at StructureMap.TypeRules.TypeExtensions.IsInNamespace(Type type, String nameSpace) in c:\code\structuremap\Source\StructureMap\TypeExtensions.cs:line 77
at StructureMap.Graph.AssemblyScanner.<>c__DisplayClass8.b__7(Type type) in c:\code\structuremap\Source\StructureMap\Graph\AssemblyScanner.cs:line 151
at StructureMap.Graph.CompositePredicate1.<>c__DisplayClass7.<Add>b__3(Func2 predicate) in c:\code\structuremap\Source\StructureMap\Graph\CompositePredicate.cs:line 17
at System.Linq.Enumerable.Any[TSource](IEnumerable1 source, Func2 predicate)
at StructureMap.Graph.CompositePredicate1.<Add>b__2(T x) in c:\code\structuremap\Source\StructureMap\Graph\CompositePredicate.cs:line 17 at StructureMap.Graph.CompositePredicate1.MatchesAny(T target) in c:\code\structuremap\Source\StructureMap\Graph\CompositePredicate.cs:line 36
at StructureMap.Graph.CompositePredicate1.DoesNotMatcheAny(T target) in c:\code\structuremap\Source\StructureMap\Graph\CompositePredicate.cs:line 46 at StructureMap.Graph.CompositeFilter1.Matches(T target) in c:\code\structuremap\Source\StructureMap\Graph\CompositeFilter.cs:line 13
at System.Linq.Enumerable.WhereArrayIterator1.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__142.MoveNext()
at StructureMap.StringExtensions.Each[T](IEnumerable1 enumerable, Action1 action) in c:\code\structuremap\Source\StructureMap\Extensions.cs:line 10
at StructureMap.Graph.AssemblyScanner.ScanForAll(PluginGraph pluginGraph) in c:\code\structuremap\Source\StructureMap\Graph\AssemblyScanner.cs:line 241
at StructureMap.Graph.PluginGraph.b__2(AssemblyScanner scanner) in c:\code\structuremap\Source\StructureMap\Graph\PluginGraph.cs:line 119
at System.Collections.Generic.List1.ForEach(Action1 action)
at StructureMap.Graph.PluginGraph.Seal() in c:\code\structuremap\Source\StructureMap\Graph\PluginGraph.cs:line 119
at StructureMap.PluginGraphBuilder.Build() in c:\code\structuremap\Source\StructureMap\PluginGraphBuilder.cs:line 70
at StructureMap.ConfigurationExpression.BuildGraph() in c:\code\structuremap\Source\StructureMap\ConfigurationExpression.cs:line 81
at StructureMap.Container.Configure(Action`1 configure) in c:\code\structuremap\Source\StructureMap\Container.cs:line 325
at RequestReduce.IOC.RRContainer.LoadAllReducers(IContainer initContainer) in c:\RequestReduce\RequestReduce\IOC\RRContainer.cs:line 66
at RequestReduce.IOC.RRContainer.InitContainer() in c:\RequestReduce\RequestReduce\IOC\RRContainer.cs:line 57
at RequestReduce.IOC.RRContainer..cctor() in c:\RequestReduce\RequestReduce\IOC\RRContainer.cs:line 21

Couldn't find a similar issue online.

@ithielnor
Copy link

Seeing the same error after upgrading a previously working application to MVC 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants