Delta Engine
»
Support
»
Content
»
DependencyResolutionException Content
Joined: 8/22/2011(UTC) Posts: 61 Location: Switzerland
Was thanked: 4 time(s) in 4 post(s)
|
Hi everyone When I passing a ContentLoader in the constructor of my Game-Class I get an Autofac.Core.DependencyResolutionException Quote:An exception was thrown while invoking the constructor 'Void .ctor(DeltaEngine.Content.ContentDataResolver)' on type 'DiskContentLoader'. osure , Object[] ) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() I could solve this by creating the ContentMetaData.xml with one element in it. But is this really necessary if I don't have any content? kind regards Dominik
|
|
|
|
Joined: 3/18/2013(UTC) Posts: 29
Thanks: 5 times
|
Hello, I've the same issue and I have to insert in ContentMetaData.xml an item for each resource I use. The Asteroid sample project doesn't use that file and works fine. Why? Thanks! Edited by user Thursday, June 27, 2013 9:52:04 PM(UTC)
| Reason: Not specified
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
The system has already changed quite a bit for the next release. In the meantime use a hacky solution by providing content from another project (just copy+paste it and later you can remove it again).
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
Originally Posted by: fg_garda  Hello,
I've the same issue and I have to insert in ContentMetaData.xml an item for each resource I use. The Asteroid sample project doesn't use that file and works fine. Why?
Thanks! If there is no ContentMetaData.xml it will be generated. But if there is no Content folder, nothing can be generated and this is probably why the exception was thrown. If you want more detail please post the complete exception with a stack trace. Thanks.
|
|
|
|
Joined: 3/18/2013(UTC) Posts: 29
Thanks: 5 times
|
Sorry Benjamin, you're right. If I delete the file all works fine. I'm quite sure that with early releases I got a "content not found" error if the name of the resource wasn't in that file... so I've always updated it!
|
|
|
|
Delta Engine
»
Support
»
Content
»
DependencyResolutionException Content
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.