   Model loading error
  Hi!I'm trying to load a model using Content.Load<Model>(<path>);Once I do so, I am getting a ContentLoadException: GraphicsDevice component not found. I'm not sure how that is, but I know it isn't complaining about not finding the actual model. Am I missing a reference of some sort??Thanks,-TS...   
  Assuming this is XNA code:When are you using Content.Load?You can't use it before the GraphicsDevice is created, so don't try loading stuff in your Constructor.iirc Xna has a LoadContent Method, try loading all content in there.   ;  Hi, thanks for the reply.Yes, it is XNA with C#.I am using Content.Load in a function of my own, which is called after initialization of the class.Any ideas?   ;  In the class of your own add a LoadContent Method.Your main XNA game class should have a LoadContent Method, just call the LoadContent method of your custom class from there:public class Game1 : Microsoft.Xna.Framework.Game{  ...  YourCustomClass customClass;  ...  protected override void LoadContent()  {customClass.LoadContent(Content);  }  ...}public class YourCustomClass {   ...   public void LoadContent(ContentManager Content)   { Content.Load<Model>("mymodel");   }   ...};  Ah, thank you for your reply.I'm sure that would work. Although I did not mention I'm not using the default Game class to run my game. I'm using a WinForm (yes I know, a lot of debate and issues with this one).  I got it to initialize and it works great, although I just cannot load models due to the described error, and I'm really interested in using the ContentManager to load models because they are doing a real good job with it, and manually I'm failing to load shaders properly, and believe me, it's a lot of coding plus texture management. So I really like this one-line code, and I would really like to get it to work.But I am not sure why I get that error... :( :( :(   ;  Ah, alright, I see what you're doing.Your problem seems to be that your Content Manager isn't working, how did you create it?Maybe this will help?http://blogs.msdn.com/rogerboesch/archive/2007/01/20/tipp-xna-in-eigene-applikationen-einbinden-winforms.aspxI'm afraid it's in german, but it seems to explain how to setup XNA inside windows forms, with a working IServiceProvider, which you should be able to use to create an XNA Content Manager.   