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

GamerServicesNotAvailableException

Last post 22/10/2009 13:21 by Jim Perry. 19 replies.
  • 05/01/2008 19:25

    GamerServicesNotAvailableException

    While initializing my GamerServicesComponent I got the following exception:

    Microsoft.Xna.Framework.GamerServices.GamerServicesNotAvailableException was unhandled
      Message="Error initializing Games for Windows - LIVE. Another program is already using this functionality."
      Source="Microsoft.Xna.Framework"
      StackTrace:
           at Microsoft.Xna.Framework.GamerServices.KernelMethods.ProxyProcess.WaitForRemoteProcessToInitialize()
           at Microsoft.Xna.Framework.GamerServices.KernelMethods.ProxyProcess..ctor(UserPacketBuffer packetBuffer)
           at Microsoft.Xna.Framework.GamerServices.KernelMethods.Initialize(UserPacketBuffer packetBuffer)
           at Microsoft.Xna.Framework.GamerServices.GamerServicesDispatcher.Initialize(IServiceProvider serviceProvider)
           at Microsoft.Xna.Framework.GamerServices.GamerServicesComponent.Initialize()
           at Microsoft.Xna.Framework.Game.Initialize()...

    Does anyone know how to fix this?  Thanks.

    An update for Doodleman is currently in Playtesting. Check it out!
  • 06/01/2008 11:54 In reply to

    Re: GamerServicesNotAvailableException

    Are you trying to run a client app and a server app on the same machine? Sean posted a comment on the Client/Server Sample stating that you need two machines:

    http://creators.xna.com/Headlines/developmentaspx/archive/2007/01/01/Network-Architectures_3A00_--Client_2F00_Server.aspx

  • 06/01/2008 14:16 In reply to

    Re: GamerServicesNotAvailableException

    Actually, it just started working for no reason whatsoever.  All I did was the Components.Add(new GamerServices(this)) Components.Add(new GamerServicesComponent(this)) to get that exception...
    An update for Doodleman is currently in Playtesting. Check it out!
  • 07/01/2008 14:21 In reply to

    Re: GamerServicesNotAvailableException

    Try this instead:

     

    Components.Add(new GamerServicesComponent(this));
    
    Jim Perry - Microsoft XNA MVP
    If people spent a minute searching the forums and reading the FAQs before posting I'd be out of a job.
      Got some XNA Game Studio/XNA Framework development info to share with the community? Put it on the XNA Wiki.
        Please mark posts as Answers or Good Feedback when appropriate.
  • 08/01/2008 16:39 In reply to

    Re: GamerServicesNotAvailableException

    That's what I meant.  It was a typo.  Shoot me.  I told you already:  IT WORKS NOW.
    An update for Doodleman is currently in Playtesting. Check it out!
  • 08/01/2008 16:45 In reply to

    Re: GamerServicesNotAvailableException

    Pigyman:
    That's what I meant.  It was a typo.  Shoot me.  I told you already:  IT WORKS NOW.

    Calm down. He was just trying to help. Also it's important to try and correct typos so that others with the same problem will not see your typo, expect it to work, and then freak out when it doesn't.

  • 27/09/2008 1:30 In reply to

    Re: GamerServicesNotAvailableException

    I have the same error when I try to run the app. I followed the instructions at http://creators.xna.com/en-us/starterkit/roleplayinggame. I do have Components.Add(new GamerServicesComponent(this)); in the constructor. But it still throws the same error. I  have installed it on just one PC. Are there any instructions on setting it up on two PC's and is it necessary?

     

    Thanks

  • 01/10/2008 11:59 In reply to

    Re: GamerServicesNotAvailableException

    I'm getting the same error if I run my application again immediately after closing it. I'm guessing this is because the process is still running in memory briefly and so the GamerService hasn't "ended" right away. I was just wondering if there was a way I could avoid this by removing the GamerService Component manually when I exit the application?

    I've Google'd and searched the forums here and haven't found an answer, but I'm sure that's because it's very simple and I'm just getting ahead of myself and trying to try things out that I don't really need yet.
  • 10/01/2009 19:45 In reply to

    Re: GamerServicesNotAvailableException

    Kazzahdrane:
    I'm guessing this is because the process is still running in memory briefly and so the GamerService hasn't "ended" right away.

    I can confirm that the process can get stuck although the program has ended. I got this error after my application execution was terminated due to another error, that left the process "XNALiveProxy" running in the background in an endles loop. Killing the "XNALiveProxy" process maually helped in my case.
  • 14/03/2009 12:01 In reply to

    Re: GamerServicesNotAvailableException

    I'm getting the same error, except under different circumstances. I only use the GamerServices component for small amounts of keyboard entry.

    When testing my app on a different machine, the error occurs when I try to create and add the GamerServicesComponent to the Components collection. I have installed the latest version of the Games for Windows Live redist and rebooted. My app runs with all the GamerServices-related stuff commented out. I also don't appear to have an XNALiveProxy running in the background. What things could I check here?
    _______________________________________
    www.skull.co.nz
  • 14/03/2009 13:33 In reply to

    Re: GamerServicesNotAvailableException

    The GamerServicesComponent requires the full XNA GS installation as the GfWL stuff is not included in the XNA FX end user redistributal.
    We are boki. The rest is known.

    The not so known part of the rest: It is Björn or Bjoern, but never Bjorn.

    Twitter ~ Bnoerj ~ SharpSteer ~ SgtConker.com
  • 14/03/2009 21:34 In reply to

    Re: GamerServicesNotAvailableException

    Aah you're right. I spent most of last night reminding myself of that too, then completely forgot.
    _______________________________________
    www.skull.co.nz
  • 09/05/2009 22:27 In reply to

    Re: GamerServicesNotAvailableException

    Björn Graf:
    The GamerServicesComponent requires the full XNA GS installation as the GfWL stuff is not included in the XNA FX end user redistributal.

    I do not understand the XNA concept in this point.

    I can develop an application using GamerServices. I can test them on any windows computer while developing but I must have the XNA Game Studio installed on any one machine.
    Well, what, when I really start to release my developed game? No one will be able to use it when the GamerServices are not included in either the XNA redist, nor in the Games for Windows LIVE redist.

    At this point I am thinking about stopping development using XNA and turning back to good-old-native-c++-and-DX-development. It will be a hard step because XNA makes a lot of things very easy (I am just a hobby developer).

    Maybe someone can tell me what this is all about.

    Greetings,
    Torsten
  • 09/05/2009 22:39 In reply to

    Re: GamerServicesNotAvailableException

    staratnight:
    At this point I am thinking about stopping development using XNA and turning back to good-old-native-c++-and-DX-development. It will be a hard step because XNA makes a lot of things very easy (I am just a hobby developer).

    Why not just continue to use XNA without using GamerServices? You can still use all the great features of XNA


    G4WL is not included in the redist, because GFWL is a controlled environment, and MS probably wants to keep it that way for a while. But just because you can't use G4WL, doesn't mean you can't use XNA.
  • 09/05/2009 22:59 In reply to

    Re: GamerServicesNotAvailableException

    staratnight:
    Well, what, when I really start to release my developed game? No one will be able to use it when the GamerServices are not included in either the XNA redist, nor in the Games for Windows LIVE redist.


    Why would you want to use GfWL/GamerServices anyway? It is not really a good Windows experience as it is heavily GamePad focused and its networking support is, well, dingens. People seem to prefer Lidgren for their managed code networking on Windows. Everything else in the XNA FX works fine.

    staratnight:
    At this point I am thinking about stopping development using XNA and turning back to good-old-native-c++-and-DX-development. It will be a hard step because XNA makes a lot of things very easy (I am just a hobby developer).


    There's also SlimDX, the missing link between native D3D and the XNA FX.
    We are boki. The rest is known.

    The not so known part of the rest: It is Björn or Bjoern, but never Bjorn.

    Twitter ~ Bnoerj ~ SharpSteer ~ SgtConker.com
  • 09/05/2009 23:31 In reply to

    Re: GamerServicesNotAvailableException

    Catalin Zima:
    Why not just continue to use XNA without using GamerServices? You can still use all the great features of XNA

    I only wanted the use the GamerServices for the networking capabilities. Just some peer-to-peer or CS based communication between the gamers.

    Björn Graf:
    People seem to prefer Lidgren for their managed code networking on Windows.

    I think I will take a look at Lidgren. Until now I did not see any alternative in networking with XNA than GamerServices. But hey, its still C# and the .Net framework underlying...

    I think I woke up now ;-) Thank you!
  • 22/10/2009 12:48 In reply to

    Re: GamerServicesNotAvailableException

    nih:
    Aah you're right. I spent most of last night reminding myself of that too, then completely forgot.


    after reading all other comments followed your reply, i noticed the gamerservices cannt be used when only redistributed package is installed for xna, is there other way? for installing the full XNA, i have to install the VS2008, but for normal users, they cannot install it,right? so how can we do about it?
  • 22/10/2009 12:50 In reply to

    Re: GamerServicesNotAvailableException

    staratnight:
    Catalin Zima:
    Why not just continue to use XNA without using GamerServices? You can still use all the great features of XNA

    I only wanted the use the GamerServices for the networking capabilities. Just some peer-to-peer or CS based communication between the gamers.

    Björn Graf:
    People seem to prefer Lidgren for their managed code networking on Windows.

    I think I will take a look at Lidgren. Until now I did not see any alternative in networking with XNA than GamerServices. But hey, its still C# and the .Net framework underlying...

    I think I woke up now ;-) Thank you!


    hi, any solution on this prob? i encounter same problems as you. Take the starterkit of Racinggame, it uses gamerservices, but when i comment everything, although it can run, but the textures are all gone; so i m thking keeping the gamerservices, but again it comes back to the problem that the redistribute package does not have it,..so have u found any alternative solution for this, meaning still to use gamerservice, yet find something to make it work for redistribution?
  • 22/10/2009 13:00 In reply to

    Re: GamerServicesNotAvailableException

    Catalin Zima:
    staratnight:
    At this point I am thinking about stopping development using XNA and turning back to good-old-native-c++-and-DX-development. It will be a hard step because XNA makes a lot of things very easy (I am just a hobby developer).

    Why not just continue to use XNA without using GamerServices? You can still use all the great features of XNA


    G4WL is not included in the redist, because GFWL is a controlled environment, and MS probably wants to keep it that way for a while. But just because you can't use G4WL, doesn't mean you can't use XNA.


    hi, i m a pretty green hand on XNA, i downloaded the XNA offical racinggame from http://creators.xna.com/en-US/starterkit/racinggame and then run it, it works well, but when i copy the the whole debug folder to another machine(with all the necessary redistribute installations done), it wont work and tells this GamerServicesNotAvailableException, and from here i know this redistribution package does not cover the gamerservice...

    but the thing is when i coomment out the gamerservices, although it can works, but it never the car textures in the pregame screen lost, and the game runs damn slow... and i am not so sure how this gamerserive works and why it cause the game to be so slow.. so i dont know how to settle this...

    so now what do you think i can settle this problem? any way that i can get the gamerservices installed for redistribution?
    or for the racinggame, how could i remove the gamerservice without affecting the game...
  • 22/10/2009 13:21 In reply to

    Re: GamerServicesNotAvailableException

    raybotics:
    any way that i can get the gamerservices installed for redistribution?

    No.

    raybotics:
    but the thing is when i coomment out the gamerservices, although it can works, but it never the car textures in the pregame screen lost, and the game runs damn slow... and i am not so sure how this gamerserive works and why it cause the game to be so slow.. so i dont know how to settle this...

    You need to run a code profiler on the project to see where the slow-down is occurring.
    Jim Perry - Microsoft XNA MVP
    If people spent a minute searching the forums and reading the FAQs before posting I'd be out of a job.
      Got some XNA Game Studio/XNA Framework development info to share with the community? Put it on the XNA Wiki.
        Please mark posts as Answers or Good Feedback when appropriate.
Page 1 of 1 (20 items) Previous Next