Skip to content

System InvalidOperationException when using SM.MVC5 and SM AssertConfigurationIsValid #11

@mdmoura

Description

@mdmoura

Hello,

When I added the following on DefaultRegistry:

For<IExample>().HttpContextScoped().Use<Example>();

I get the following error when using container.AssertConfigurationIsValid():

An exception of type 'System.InvalidOperationException' occurred in System.Core.dll but was not handled in user code.

I know that if I remove HttpContextScoped() it works. Why is that?

Thank You

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions