Delta Engine
»
Support
»
Engine
»
ComponentNotRegisteredException
Joined: 11/19/2013(UTC) Posts: 6 Location: Hamburg
|
Hi everyone, just wanted to create a new project from scratch but I keep getting this error when I try to debug the Sample Game (I tried the emptyApp and the logoapp). Did I maybe miss something while creating? My first project that I created with the 1.0 version of the editor runs just fine, but the new projects with 1.1 always give me this error :/ Quote:{Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'DeltaEngine.Core.Window' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency. bei Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) bei Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType, IEnumerable`1 parameters) bei Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) bei DeltaEngine.Platforms.Resolver.Resolve[BaseType]() bei DeltaEngine.Platforms.AppRunner.get_Window() bei DeltaEngine.Platforms.AppRunner.IsShowingMessageBoxClosedWithIgnore(String title, Exception ex) bei DeltaEngine.Platforms.AppRunner.DisplayMessageBoxAndCloseApp(String title, Exception exception) bei DeltaEngine.Platforms.OpenTK20Resolver..ctor() bei DeltaEngine.Platforms.App..ctor() bei ClickDefender.Program..ctor() in f:\Delta\c\Program.cs:Zeile 11. bei ClickDefender.Program.Main() in f:\Delta\c\Program.cs:Zeile 18. bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() bei System.Threading.ThreadHelper.ThreadStart_Context(Object state) bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) bei System.Threading.ThreadHelper.ThreadStart()} I use vs2012 loaded dependencies with nuget so all should be well on that side. Best Regards javascript:__doPostBack('forum$ctl03$PostReply','')Jothaka
|
|
|
|
Joined: 4/15/2014(UTC) Posts: 6 Location: Austin
|
I seem to be having the exact same issue today, I'm pretty sure I was able to run the exact same code before.
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
This problem usually happens when you have no window class registered, e.g. when DeltaEngine.WindowsOpenTK20 is not loaded into your project. This can happen when the dependency refuses to load (wrong version, incompatible, etc.) or if it is just missing (which would make no sense in your case as you have OpenTK20Resolver, which is in the same assembly). Why does your thread start from ThreadStart? Normally your app should start from Main.
In any case, just clear your \bin\debug folder, rebuild your app and you should have all up to date assemblies and if anything is missing you get a much better error with AssemblyNotFoundException, which you can fix by adding the missing assembly project.
|
|
|
|
Joined: 4/15/2014(UTC) Posts: 6 Location: Austin
|
Using the samples as a template, I pruned my references down to a much smaller number. It fixed the issue with launching. Im not sure which include did it, but it is definitely one that was auto-included with the nu-get download.
|
|
|
|
Joined: 2/5/2015(UTC) Posts: 2 Location: Tampa, FL
|
I also get this off of the sample projects. I installed OpenTK from the site and just ran a few of the sample templates. I used NuGet to install DeltaEngine.OpenTK (not sure why that wasn't included in the template). Pretty bad first impression guys. :( Edited by user Sunday, February 15, 2015 3:21:32 AM(UTC)
| Reason: Not specified
|
|
|
|
Joined: 2/5/2015(UTC) Posts: 2 Location: Tampa, FL
|
Quick note... I tried again using SharpDX (and the SharpDX editor) and everything seems okay now.
Why is that? I do have a somewhat odd video card, an NVIDIA Quadro K2000. But I would think it supports shaders and so on. Why did I have a problem with OpenTK?
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
Can you please describe your issue in more detail, pretty hard to help if there is no error description. The ComponentNotRegisteredException Jothaka reported only makes sense if there were wrong files in the \bin\debug folder, which cannot happen if you start from a tutorial or sample. Since all the source code is right there you can also figure out whats going on yourself (F5 debugging) and give us more details.
Only guess I have is that something in OpenTK (external library, thus error message is important to figure out whats going on) did not initialize correctly, while in SharpDX everything works okay on your PC because you have DirectX drivers.
We are currently not working on the community edition of Delta Engine and also do not provide any support except for this Forum. Once our internal projects are done and we are satisfied with the release, v1.0 will come out (planned Q3 2015 right now).
|
|
|
|
Delta Engine
»
Support
»
Engine
»
ComponentNotRegisteredException
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.