Forum C# Error compiling Server Side solution.

Error compiling Server Side solution.

Postby PureConstant » January 25th, 2011, 6:23 am

Hi, i'm trying to compile the Player.IO Test.Server.VS2010 and it's not working. The targeted framework is 3.5.
I get the following error
IO Operation will not workk. Most likely the file will become too long or the handle was not opened to support synchronous IO operations.

after this call :
Code: Select all
PlayerIO.DevelopmentServer.Server.StartWithDebugging();


I get the player.io login screen and after that, I have this error.

I'm running Visual Studio 2010 Express Edition trough a vitrual box on a MacBook Pro.

Thanks for your help!
PureConstant
 
Posts: 7
Joined: January 25th, 2011, 6:03 am

Re: Error compiling Server Side solution.

Postby Benjaminsen » January 25th, 2011, 8:51 am

I think the error message is missing?
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Error compiling Server Side solution.

Postby Oliver » January 25th, 2011, 3:08 pm

Hey,

Where do you get the error? Can you upload a screenshot of it (is there a stacktrace or simliar that we can use to locate and ifx the issue?)

Best,
Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Error compiling Server Side solution.

Postby PureConstant » January 25th, 2011, 3:18 pm

Hi guys, sorry if I was not precise on my first post :

This is the message after a Try/Catch (Exception ex) on the
Code: Select all
PlayerIO.DevelopmentServer.Server.StartWithDebugging();
call. I did not take a look at the inner exception message if there is one.

IO Operation will not work. Most likely the file will become too long or the handle was not opened to support synchronous IO operations.

I cannot take a screenchot since I'm at work at the moment. I will take a closer look on the error at my lunch time and i'll try to come back to you with more detail.

Thanks

Sorry for my english :p
PureConstant
 
Posts: 7
Joined: January 25th, 2011, 6:03 am

Re: Error compiling Server Side solution.

Postby Oliver » January 25th, 2011, 3:57 pm

You're at work... Quick guess: You don't have administrative privileges on the machine you're working on?
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Error compiling Server Side solution.

Postby PureConstant » January 25th, 2011, 4:30 pm

Nope, I use my personnal MacBook Pro. I'ts not a work project :)
PureConstant
 
Posts: 7
Joined: January 25th, 2011, 6:03 am

Re: Error compiling Server Side solution.

Postby Oliver » January 25th, 2011, 7:05 pm

Eh okay, then i'm at a loss. If you're able to checkout InnerException or a stacktrace or something, that would be really helpful!

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Error compiling Server Side solution.

Postby PureConstant » January 25th, 2011, 11:58 pm

There you go :
Screen shot :
http://img401.imageshack.us/f/screenshot20110125at553.png

Stack trace :
at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
at System.IO.FileStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Stream.Dispose()
at bi.a()
at bi.a(String A_0, String A_1, String A_2)
at f0.d()
at PlayerIO.DevelopmentServer.Server.StartWithDebugging()
at DevelopmentTestServer.Startup.Main() in E:\Player.IO\Flash\NewGame\Serverside Code\Player.IO Test Server Project\Startup.cs:line 18


Like I said I'm using Windows 7 on a Virtual Box on my Mac Book Pro.
Visual Studio 2010 Express with framework 3.5
PureConstant
 
Posts: 7
Joined: January 25th, 2011, 6:03 am

Re: Error compiling Server Side solution.

Postby Oliver » January 27th, 2011, 2:07 pm

Hey,

Okay, so the stacktrace tells us that it happens when the development server tries to save it's setting file (window sizes, login information etc). I've never seen that error message before, so i'm a bit at a loss as to why it happens. Is it a permissions issue or something else?

I've made a debug build with two changes:
- Changed the way the files opened for writing, which might fix the issue (hopefully)
- Make it catch the exception so the development server does not die when it happens. You'll be able to use the development server but it won't save your settings, so you'll have to login each time you run the server.

The debug build is here: http://oliverkofoed.com/playerio-test.zip

Will you give it a go?

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Error compiling Server Side solution.

Postby PureConstant » January 27th, 2011, 3:20 pm

Hi Oliver, thanks for the reply. I'll give it a try and I'll come back to you.

I will also try to launch the Solution as admin, maybe, like you said, it's a permission issue.

Thanks
PureConstant
 
Posts: 7
Joined: January 25th, 2011, 6:03 am

Re: Error compiling Server Side solution.

Postby PureConstant » January 28th, 2011, 12:59 am

Hi Oliver, it works with the test server you gave me ! I tried it with uncommenting the "bob" user testing and the game room was created.

But, I have another error when I try to run the Flash App from my Mac. I get this error :

Sucessfully connected to player.io
Got Error: Unable to connect to development server on 10.0.2.15:8184. Is the development server running?
Got Error: Unable to connect to player.io multiplayer server [Error #2048: Security sandbox violation: file:////Volumes/Macintosh%20HD/Users/username/Documents/GameDevelopement/playerio%2Dtest/Flash/Example%20%2D%20Multiplayer%20%2D%20FridgeMagnets/Output/FridgeMagnets.swf cannot load data from 10.0.2.15:8184.]


Is it because the flash game and the server are on a Shared Folder to make them accessible between my Mac and my Virtual Box ?

Thanks again.
PureConstant
 
Posts: 7
Joined: January 25th, 2011, 6:03 am

Re: Error compiling Server Side solution.

Postby Benjaminsen » January 28th, 2011, 10:53 am

The server / client works over your network.

You need tell what ip/port the development server is running on. If that does not work, try telnetting to the server to verify that the server is actually listening there.

/Chris
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Error compiling Server Side solution.

Postby PureConstant » January 28th, 2011, 3:06 pm

Hi there! I ipconfig /all my server to get the ip and the port wich is 10.0.2.15:8184 . I made the change to the flash file to map to that specific port and ip.

On the Windows Virtual Box, I opened the 8184 port for both outbound and inbound.

Anyway, it's my problem now, I'll try to make it work this week end. I'll try the telnet method.

But can you tell my what the Error #2048: Security sandbox violation error means ?

Thanks a lot again for your help and support :)
PureConstant
 
Posts: 7
Joined: January 25th, 2011, 6:03 am

Re: Error compiling Server Side solution.

Postby Benjaminsen » January 28th, 2011, 6:56 pm

PureConstant wrote:Hi there! I ipconfig /all my server to get the ip and the port wich is 10.0.2.15:8184 . I made the change to the flash file to map to that specific port and ip.

On the Windows Virtual Box, I opened the 8184 port for both outbound and inbound.

Anyway, it's my problem now, I'll try to make it work this week end. I'll try the telnet method.

But can you tell my what the Error #2048: Security sandbox violation error means ?

Thanks a lot again for your help and support :)



Mmm your fix might be as somple as adding the html/swf here http://www.macromedia.com/support/docum ... ger04.html
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark


Return to C#



cron