Advertisement
Guest User

Ninject interceptors

a guest
Feb 21st, 2012
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.01 KB | None | 0 0
  1. System.Windows.Markup.XamlParseException was unhandled
  2.   Message='The invocation of the constructor on type 'WelchAlleyClient.AppBootstrapper' that matches the specified binding constraints threw an exception.' Line number '8' and line position '18'.
  3.   Source=PresentationFramework
  4.   LineNumber=8
  5.   LinePosition=18
  6.   StackTrace:
  7.        at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
  8.        at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
  9.        at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
  10.        at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
  11.        at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
  12.        at WelchAlleyClient.App.InitializeComponent() in c:\Users\Daniel\Desktop\WelchAlleyClient\WelchAlleyClient\App.xaml:line 1
  13.        at WelchAlleyClient.App.Main() in C:\Users\Daniel\Desktop\WelchAlleyClient\WelchAlleyClient\obj\x86\Debug\App.g.cs:line 0
  14.        at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
  15.        at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
  16.        at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
  17.        at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
  18.        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
  19.        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  20.        at System.Threading.ThreadHelper.ThreadStart()
  21.   InnerException: System.InvalidOperationException
  22.        Message=Error loading Ninject component IAdviceFactory
  23. No such component has been registered in the kernel's component container.
  24.  
  25. Suggestions:
  26.  1) If you have created a custom subclass for KernelBase, ensure that you have properly
  27.     implemented the AddComponents() method.
  28.  2) Ensure that you have not removed the component from the container via a call to RemoveAll().
  29.  3) Ensure you have not accidentally created more than one kernel.
  30.  
  31.       Source=Ninject
  32.       StackTrace:
  33.            at Ninject.Components.ComponentContainer.Get(Type component) in c:\Projects\Ninject\Maintenance2.2\ninject\src\Ninject\Components\ComponentContainer.cs:line 146
  34.            at Ninject.Components.ComponentContainer.Get[T]() in c:\Projects\Ninject\Maintenance2.2\ninject\src\Ninject\Components\ComponentContainer.cs:line 102
  35.            at Ninject.Extensions.Interception.Infrastructure.Language.ExtensionsForIBindingSyntax.DoIntercept(IBindingSyntax binding) in c:\Projects\Ninject\Maintenance2.2\ninject.extensions.interception\src\Ninject.Extensions.Interception\Infrastructure\Language\ExtensionsForIBindingSyntax.cs:line 92
  36.            at Ninject.Extensions.Interception.Infrastructure.Language.ExtensionsForIBindingSyntax.Intercept[T](IBindingWhenInNamedWithOrOnSyntax`1 bindingSyntax) in c:\Projects\Ninject\Maintenance2.2\ninject.extensions.interception\src\Ninject.Extensions.Interception\Infrastructure\Language\ExtensionsForIBindingSyntax.cs:line 40
  37.            at WelchAlleyClient.AppBootstrapper.Configure() in C:\Users\Daniel\Desktop\WelchAlleyClient\WelchAlleyClient\AppBootstrapper.cs:line 24
  38.            at Caliburn.Micro.Bootstrapper.StartRuntime() in C:\Projects\Blue Spire\Caliburn.Micro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 73
  39.            at Caliburn.Micro.Bootstrapper..ctor(Boolean useApplication) in C:\Projects\Blue Spire\Caliburn.Micro\src\Caliburn.Micro.Silverlight\Bootstrapper.cs:line 44
  40.            at Caliburn.Micro.Bootstrapper`1..ctor()
  41.            at WelchAlleyClient.AppBootstrapper..ctor()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement