Results 1 to 2 of 2

Thread: XNA Error

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    11

    XNA Error

    Hi,

    Having problems using XNA framework and cannot seem to solve the issue. Installed XNA framework.

    Running VB 2008.

    Don't know much about XNA so very much a beginner. Keep getting the error:

    System.InvalidOperationException was unhandled


    Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'Microsoft.Xna.Framework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' or one of its dependencies. The system cannot find the file specified."

    Source="XNADevice"


    Message="Could not load file or assembly 'Microsoft.Xna.Framework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' or one of its dependencies. The system cannot find the file specified."

    FileName="Microsoft.Xna.Framework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d"


    I have tried adding to the config file the following but no luck.
    Code:
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    
                <dependentAssembly>
    
                    <assemblyIdentity name="Microsoft.Build.Framework" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
    
                    <bindingRedirect oldVersion="0.0.0.0-99.9.9.9" newVersion="3.5.0.0"/>
    
                </dependentAssembly>
    Any help would be massively appreciated.

  2. #2
    PowerPoster boops boops's Avatar
    Join Date
    Nov 2008
    Location
    Holland/France
    Posts
    3,201

    Re: XNA Error

    I don't know a great deal about XNA but I think I can help you on this because I recently installed XNA 4.0. I think the procedure should be much the same for 3.0. You need to add project references to the XNA modules because they are not part of the DotNet Framework.

    When you install XNA they are placed in the Global Assembly Cache. On my system (WinXP) that's C:\Windows\Assembly\GAC_32 (or GAC_MSIL). It's probably best to check out where the XNA modules are stored before you proceed. If necessary, search your Windows folder for the string XNA -- there's not much else that has that in its name.

    You add the references like this:
    1. In Solution Explorer, right-click on the project name.
    2. Select Properties.
    3. On the Properties screen, select the References Tab.
    4. Click the Add button.
    5. Click the Browse tab.

    Once you browse to the right folder, you'll see about half a dozen DLL files listed with names like Microsoft.XNA.Framework.dll, Microsoft.XNA.Graphics.dll and so on. You don't really need them all for a single project but I would import them all anyway. Once you do, you can find them quickly for other projects under the Recent tab.

    Then you can use XNA!

    BB

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width