-
-
- (399)
-
premium membership
-
Posts
227
|
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!
|
|
-
|
|
Re: GamerServicesNotAvailableException
|
|
|
-
-
- (399)
-
premium membership
-
Posts
227
|
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!
|
|
-
-
- (10744)
-
premium membership
MVP
-
Posts
6.664
|
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.
|
|
-
-
- (399)
-
premium membership
-
Posts
227
|
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!
|
|
-
-
- (12538)
-
premium membership
MVP
-
Posts
8.749
|
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.
|
|
-
|
|
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
|
|
-
|
|
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.
|
|
-
-
- (0)
-
premium membership
-
Posts
11
|
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.
|
|
-
|
|
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
|
|
-
|
|
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
|
|
-
|
|
Re: GamerServicesNotAvailableException
|
Aah you're right. I spent most of last night reminding myself of that too, then completely forgot.
_______________________________________ www.skull.co.nz
|
|
-
|
|
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
|
|
-
-
- (4626)
-
premium membership
MVP
-
Posts
2.549
|
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.
|
|
-
|
|
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
|
|
-
|
|
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!
|
|
-
|
|
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?
|
|
-
|
|
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?
|
|
-
|
|
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...
|
|
-
-
- (10744)
-
premium membership
MVP
-
Posts
6.664
|
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.
|
|
|