This project is read-only.

visual studio 2015preview get an error

Topics: Administration
Mar 14, 2015 at 11:25 PM
hi,when i use the 2015 open the solution ,i got the error in the method " Load(ContainerBuilder builder)" of Orchard.Environment.WorkContextModule
the source:
builder.Register(ctx => ctx.Resolve<WorkContextProperty<HttpContextBase>>().Value) .As<HttpContextBase>().InstancePerDependency();
and the error message:
“Autofac.Core.DependencyResolutionException”类型的异常在 Autofac.dll 中发生,但未在用户代码中进行处理

其他信息: No scope with a Tag matching 'work' is visible from the scope in which the instance was requested. This generally indicates that a component registered as per-HTTP request is being requested by a SingleInstance() component (or a similar scenario.) Under the web integration always request dependencies from the DependencyResolver.Current or ILifetimeScopeProvider.RequestLifetime, never from the container itself.

but when i use 2012 or 2013 there is no error