Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Cr3dos  
#1 Posted : Thursday, June 27, 2013 9:23:17 PM(UTC)
Cr3dos

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

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline fg_garda  
#2 Posted : Thursday, June 27, 2013 9:50:48 PM(UTC)
fg_garda

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

Offline Benjamin  
#3 Posted : Thursday, June 27, 2013 11:25:04 PM(UTC)
Benjamin

Medals: Admin

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).
Offline Benjamin  
#4 Posted : Thursday, June 27, 2013 11:26:07 PM(UTC)
Benjamin

Medals: Admin

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 Go to Quoted Post
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.
Offline fg_garda  
#5 Posted : Thursday, June 27, 2013 11:41:28 PM(UTC)
fg_garda

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! Blushing
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.051 seconds.