XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Xna error

Last post 05-11-2008 2:25 PM by Nick Gravelyn. 1 replies.
  • 05-11-2008 2:13 PM

    Xna error

    Does anyone have any idea on how to fix this error or even what it means



    Error    2    Building content threw InvalidOperationException: D3DERR_INVALIDCALL
       at Microsoft.Xna.Framework.Content.Pipeline.CommonHelperFunctions.InitD3D()
       at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.InitD3D()
       at Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.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)
        Inner exception: COMException: Exception from HRESULT: 0x8876086C    C:\Documents and Settings\User\My Documents\Visual Studio 2008\Projects\Zune 23\Zune 23\Content\bg.png    Zune 23

  • 05-11-2008 2:25 PM In reply to

    Re: Xna error

    Looks like there is some issue initializing DirectX to build the texture. What kind of machine are you on? What graphics card is in there? I believe that you have to support DirectX 9.0c just like the rest of the framework even if you are building for Zune because that's how it builds the textures, however most graphics chips (even on-board ones) should support that nowadays.

    Otherwise what are the properties you have set on that piece of content? Click on the item in the Solution Explorer and take a look at the Properties window. There should be an entry for Processor. Click the little + sign next to that to expand it and let us know what the settings are.

    Nick Gravelyn -- Microsoft XNA MVP
    Blog | XNA Wiki | FX-izer | EasyZip | Current Adventures | Next-Gen
Page 1 of 1 (2 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG