以调试模式启动项目时,我在输出窗口中发现了这个问题。
引发的异常:Orchard.Projections.dll中的“ System.NullReferenceException” Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator:错误-Orchard.Projections.Drivers.ProjectionPartDriver从IContentPartDriver抛出NullReferenceException System.NullReferenceException:对象引用未设置为对象的实例。 在Orchard.Projections.Drivers.ProjectionPartDriver。<> c__DisplayClass18_0.b__1(对象形状) 在Orchard.ContentManagement.Drivers.ContentPartDriver
1.<>c__DisplayClass25_0.<ContentShape>b__0(BuildShapeContext ctx) in F:\Ashish\test\Orchard-1.10.2_New\Orchard-1.10.2\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 187 at Orchard.ContentManagement.Drivers.ContentPartDriver
1中。<> c__DisplayClass26_0.b__0(BuildShapeContext ctx)在F:\ Ashish \ test \ Orchard-1.10.2_New \ Orchard-1.10.2 \ src \ Orchard \ ContentManagement \ Drivers \ ContentPartDriver.cs:第192行 在F:\ Ashish \ test \ Orchard-1.10.2_New \ Orchard-1.10.2 \ src \ Orchard \ ContentManagement \ Drivers \ ContentShapeResult.cs:line中的Orchard.ContentManagement.Drivers.ContentShapeResult.ApplyImplementation(BuildShapeContext上下文,字符串displayType)处48 在Orchard.ContentManagement.Drivers.ContentShapeResult.Apply(BuildDisplayContext上下文)中的F:\ Ashish \ test \ Orchard-1.10.2_New \ Orchard-1.10.2 \ src \ Orchard \ ContentManagement \ Drivers \ ContentShapeResult.cs:line 24 在Orchard.ContentManagement.Drivers.CombinedResult.Apply(BuildDisplayContext上下文)中的F:\ Ashish \ test \ Orchard-1.10.2_New \ Orchard-1.10.2 \ src \ Orchard \ ContentManagement \ Drivers \ CombinedResult.cs:line 28 在Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator处。 ContentPartDriverCoordinator.cs:第49行 在Orchard.InvokeExtensions.Invoke [TEvents](IEnumerable1 events, Action
1分派,ILogger记录器)中的F:\ Ashish \ test \ Orchard-1.10.2_New \ Orchard-1.10.2 \ src \ Orchard \ InvokeExtensions.cs:第17行