No Source Available for d:\TeamCity\Projects\Orchard-Default\srs\Orchard\Environment\Features\FeatureManager.cs

Topics: Troubleshooting
Aug 24, 2011 at 10:00 PM

Hello,

I'm new to Orchard.  I'm using Visual Studio 2010 and getting a No Source Available for d:\TeamCity\Projects\Orchard-Default\srs\Orchard\Environment\Features\FeatureManager.cs

This occurred when I was trying to set up Email Messaging and Contact Form.  They both indicate that Orchard.Messaging is missing.

 

StackTrace

 

[InvalidOperationException: Sequence contains no matching element]
   System.Linq.Enumerable.Single(IEnumerable`1 source, Func`2 predicate) +538
   Orchard.Environment.Features.<>c__DisplayClass2d.<EnableFeature>b__20(String fId) in d:\TeamCity\Projects\Orchard-Default\src\Orchard\Environment\Features\FeatureManager.cs:148
   System.Linq.WhereSelectListIterator`2.MoveNext() +103
   System.Linq.WhereEnumerableIterator`1.MoveNext() +97
   System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) +158
   System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector) +54
   Orchard.Environment.Features.FeatureManager.<EnableFeature>b__1e(String currentFeatureId, IDictionary`2 featuresState) in d:\TeamCity\Projects\Orchard-Default\src\Orchard\Environment\Features\FeatureManager.cs:147
   Orchard.Environment.Features.FeatureManager.GetAffectedFeatures(String featureId, IDictionary`2 features, Func`3 getAffectedDependencies) in d:\TeamCity\Projects\Orchard-Default\src\Orchard\Environment\Features\FeatureManager.cs:195
   Orchard.Environment.Features.FeatureManager.GetAffectedFeatures(String featureId, IDictionary`2 features, Func`3 getAffectedDependencies) in d:\TeamCity\Projects\Orchard-Default\src\Orchard\Environment\Features\FeatureManager.cs:196
   Orchard.Environment.Features.FeatureManager.EnableFeature(String featureId, IDictionary`2 availableFeatures, Boolean force) in d:\TeamCity\Projects\Orchard-Default\src\Orchard\Environment\Features\FeatureManager.cs:153
   Orchard.Environment.Features.<>c__DisplayClass9.<EnableFeatures>b__4(String featureId) in d:\TeamCity\Projects\Orchard-Default\src\Orchard\Environment\Features\FeatureManager.cs:73
   System.Linq.WhereSelectArrayIterator`2.MoveNext() +85
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +327
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
   Orchard.Environment.Features.FeatureManager.EnableFeatures(IEnumerable`1 featureIds, Boolean force) in d:\TeamCity\Projects\Orchard-Default\src\Orchard\Environment\Features\FeatureManager.cs:72
   Orchard.Modules.Services.ModuleService.EnableFeatures(IEnumerable`1 featureIds, Boolean force) +106
   Orchard.Modules.Controllers.AdminController.Enable(String id, Nullable`1 force) +354
   lambda_method(Closure , ControllerBase , Object[] ) +180
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +51
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +409
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +52
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +127
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +61
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +61
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +61
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +305
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +830
   System.Web.Mvc.Controller.ExecuteCore() +136
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +232
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +39
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +68
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +44
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +42
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +141
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +54
   System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +61
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +31
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +56
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +110
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
   Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in d:\TeamCity\Projects\Orchard-Default\src\Orchard\Mvc\Routes\ShellRoute.cs:148
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +690
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +194

Coordinator
Aug 24, 2011 at 10:05 PM

Did you use the full source release?

Aug 24, 2011 at 10:08 PM

The version I am using was downloaded from Recommended Downloads: http://orchard.codeplex.com/releases/view/59918

Coordinator
Aug 24, 2011 at 10:18 PM

Yes, download the source release instead if you are going to compile in VS.

Aug 25, 2011 at 2:17 PM

Thanks I'll give that a shot!