Error running sample game

Oct 3, 2012 at 11:07 AM
Edited Oct 4, 2012 at 6:23 AM

Hi,

I am new to C# and XNA Development in general and I was trying out Engine Nine for the first time when I encountered the following errors

 

Building content threw XamlObjectWriterException: Cannot create unknown type '{http://schemas.microsoft.com/nine/2011/xaml}Scene'.
   at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
   at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
   at System.Xaml.XamlServices.Load(XamlReader xamlReader)
   at System.Xaml.XamlServices.Load(String fileName)
   at Nine.Content.Pipeline.Importers.XamlImporter.Import(String filename, ContentImporterContext context)
   at Microsoft.Xna.Framework.Content.Pipeline.ContentImporter`1.Microsoft.Xna.Framework.Content.Pipeline.IContentImporter.Import(String filename, ContentImporterContext context)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAssetDirectly(BuildItem item, String importerName)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.ImportAsset(BuildItem item)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem item)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem item)
   at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.RunTheBuild()
   at Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildContent.RemoteProxy.RunTheBuild(BuildCoordinatorSettings settings, TimestampCache timestampCache, ITaskItem[] sourceAssets, String[]& outputContent, String[]& rebuiltContent, String[]& intermediates, Dictionary`2& dependencyTimestamps, KeyValuePair`2[]& warnings)	E:\copy\CreateASimple3DGame\WindowsGame1\WindowsGame1\WindowsGame1Content\MyScene.xaml	WindowsGame1

I have downloaded the source code directly from the documentation and made no changes.

Also, there are some methods in the documentation that the compiler cannot find.

 

Nine.Graphics.Model(GraphicsDevice)

scene.Update(gameTime.ElapsedGameTime);

scene.Draw(GraphicsDevice, gameTime.ElapsedGameTime);

 

Any help would be appreciated.

Thanks

 

Update : I have assigned all references correctly for both the projects as mentioned in the documentation.

Coordinator
Oct 3, 2012 at 12:41 PM

Make sure all your references are setup correctly like the pictures shown in the "Create a Simple 3D Game" page.

Oct 4, 2012 at 6:24 AM

@yufieh I have assigned all references correctly (have updated my original discussion too)