e. ogas

After installing XNA Game Studio Express 1.0, I get the following error in my Beta 2 project:

Error 1 The type 'Microsoft.Xna.Framework.Graphics.SpriteBlendMode' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Xna.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f48fa5f25d27e8ff'.

But it is referenced, and I'm pretty sure it's the right version too. I even tried to copy the code and content files into a new project, but it still gave the error. If anyone can help me I would appreciate it. Thanks.




Re: XNA Game Studio Express Assemblies Not Referenced

Mercon

Have you tried removing the references to the beta assemblies and then reference the new assemblies

I had the same problem for a couple of projects and the above solution worked.





Re: XNA Game Studio Express Assemblies Not Referenced

ProfEclipse

Did you remove the references to the original XNA assemblies and then add the new ones

 edit - waayyyy tooooo slooowwwww





Re: XNA Game Studio Express Assemblies Not Referenced

Mark Anderson - DVU

It sounds like you may have just tried to open a Beta 2 project in the final version of GSE. Your program may be looking for the older XNA beta framework. Try this, it might help.

Open the References in the Solution Explorer, then delete the references to Microsoft.Xna.Framework & Microsoft.Xna.Framework.Game. Then right click in the Solution Explore and 'Add Reference...'. Once there, make sure you are in the .NET Tab, and select Microsoft.Xna.Framework & Microsoft.Xna.Framework.Game --- making sure the version is 1.0.0.0. After that, make sure you have the correct using statements in the code.





Re: XNA Game Studio Express Assemblies Not Referenced

Sciolist.se

You don't even need to remove the current references, just adding the references again will update them.



Re: XNA Game Studio Express Assemblies Not Referenced

e. ogas

Mark Anderson - DVU wrote:

It sounds like you may have just tried to open a Beta 2 project in the final version of GSE. Your program may be looking for the older XNA beta framework. Try this, it might help.

Open the References in the Solution Explorer, then delete the references to Microsoft.Xna.Framework & Microsoft.Xna.Framework.Game. Then right click in the Solution Explore and 'Add Reference...'. Once there, make sure you are in the .NET Tab, and select Microsoft.Xna.Framework & Microsoft.Xna.Framework.Game --- making sure the version is 1.0.0.0. After that, make sure you have the correct using statements in the code.

Yes, I did this, and my references are version 1.0.0.0, but I still get the error. What's interesting is that in my v1.0 project (code and content copied from Beta2 project), the error occurs when I try to compile, but the Beta 2 project compiles fine. When I try to run the Beta 2 project, the same error pops up as an exception.






Re: XNA Game Studio Express Assemblies Not Referenced

Stephen Styrchak - MSFT

It sounds like your installation is corrupt. Specifically, it sounds like you have different XNA Framework assemblies in your GAC than in the SDK path. The GAC (global assembly cache) is where the XNA Framework assemblies are resolved from at run-time. They are not the same as the assemblies used at build time. Basically, your build is referencing Beta 2 assemblies, while the GAC contains v1 RTM assemblies.

You can try the following:

  1. Uninstall XNA GSE.
  2. Make sure that everything is gone from %programfiles%\Microsoft XNA\.
  3. Re-install XNA GSE.

--Stephen





Re: XNA Game Studio Express Assemblies Not Referenced

e. ogas

Ok guys, it all makes perfect sense now.  In my project, I used the Mercury Particle Engine.  It turns out (sarcasm) that it was compiled under Beta 2 (doh).  When looking at the numerous errors, I realized that every one was related to the particle engine in some way.  Therefore, I must either wait for JimJams to recompile under 1.0, or recompile it myself.  Sorry about that, I don't know why I didn't see it earlier.

Edit: I compiled it myself and it worked perfectly (except for the bug in the high score system, but it was like that before)