Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 10-17-2003, 09:32 AM   #1 (permalink)
 
Join Date: Oct 2003
Posts: 25
Send a message via ICQ to OphidianThePK Send a message via AIM to OphidianThePK
Default Help! Getting Error "System.TypeInitializationException

Here is a full error... It occurs when I just load the software normally.
I followed all the newbie steps listed in one of the start up sticky posts.
I set my IP and all that junk... Ive tried my ip 63.xxx.xxx.xx and
127.0.0.1.. keep getting this error..

any help is greatly appreciated.
thx
Oph


Server Crash Report
===================

Operating System: Microsoft Windows NT 5.0.2195.0
.NET Framework: 1.1.4322.573
Time: 10/17/2003 5:19:52 AM
Mobiles: 2190
Items: 69657
Clients:
- Count: 0

Exception:
System.TypeInitializationException: The type initializer for "System.Net.IPAddress" threw an exception. ---> System.TypeInitializationException: The type initializer for "System.Net.Sockets.Socket" threw an exception. ---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.Sockets.Socket..cctor()
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.IPAddress..cctor()
--- End of inner exception stack trace ---
at Server.Network.Listener..ctor()
at Server.Core.Main(String[] args)
OphidianThePK is offline   Reply With Quote
Old 10-17-2003, 12:25 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Post your ServerList.cs as its not correct.
Phantom is offline   Reply With Quote
Old 10-18-2003, 02:58 AM   #3 (permalink)
 
Join Date: Oct 2003
Posts: 25
Send a message via ICQ to OphidianThePK Send a message via AIM to OphidianThePK
Default Here ya go..

Here ya go.. thanks


using System;
using System.Net;
using System.Net.Sockets;
using Server;
using Server.Network;

namespace Server.Misc
{
public class ServerList
{
/* Address:
*
* The default setting, a value of 'null', will attempt to detect your IP address automatically:
* private const string Address = null;
*
* This detection, however, does not work for servers behind routers. If you're running behind a router, put in your IP:
* private const string Address = "12.34.56.78";
*
* If you need to resolve a DNS host name, you can do that too:
* private const string Address = "shard.host.com";
*/

public const string Address = "127.0.0.1";

public const string ServerName = "PvP Unlimited ";

public static void Initialize()
{
Listener.Port = 2593;

EventSink.ServerList += new ServerListEventHandler( EventSink_ServerList );
}

public static void EventSink_ServerList( ServerListEventArgs e )
{
try
{
IPAddress ipAddr;

if ( Resolve( Address != null && !IsLocalMachine( e.State ) ? Address : Dns.GetHostName(), out ipAddr ) )
e.AddServer( ServerName, new IPEndPoint( ipAddr, Listener.Port ) );
else
e.Rejected = true;
}
catch
{
e.Rejected = true;
}
}

public static bool Resolve( string addr, out IPAddress outValue )
{
try
{
outValue = IPAddress.Parse( addr );
return true;
}
catch
{
try
{
IPHostEntry iphe = Dns.Resolve( addr );

if ( iphe.AddressList.Length > 0 )
{
outValue = iphe.AddressList[iphe.AddressList.Length - 1];
return true;
}
}
catch
{
}
}

outValue = IPAddress.None;
return false;
}

private static bool IsLocalMachine( NetState state )
{
Socket sock = state.Socket;

IPAddress theirAddress = ((IPEndPoint)sock.RemoteEndPoint).Address;

if ( IPAddress.IsLoopback( theirAddress ) )
return true;

bool contains = false;
IPHostEntry iphe = Dns.Resolve( Dns.GetHostName() );

for ( int i = 0; !contains && i < iphe.AddressList.Length; ++i )
contains = theirAddress.Equals( iphe.AddressList[i] );

return contains;
}
}
}
OphidianThePK is offline   Reply With Quote
Old 10-18-2003, 03:39 AM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

public const string Address = "127.0.0.1";


Nobody can connect to your shard, let me guess you have a router?

If you do follow the FAQ I posted should solve the problem.
Phantom is offline   Reply With Quote
Old 10-18-2003, 06:51 AM   #5 (permalink)
 
Join Date: Oct 2003
Posts: 25
Send a message via ICQ to OphidianThePK Send a message via AIM to OphidianThePK
Default nope nope..

Nope Nope.. I tried it with my IP.. I said that in the original post I think
I was just trying the 127 for fun.. and no I don't have a router.. I have
a static IP address.
Ive tried it with a buncha junk and haven't gotten it to work.
I originally looked at your FAQ and copied and pasted the stuff
directly from it... uhm..
Ill try again I guess :?
OphidianThePK is offline   Reply With Quote
Old 10-18-2003, 10:54 AM   #6 (permalink)
 
Join Date: Oct 2003
Posts: 25
Send a message via ICQ to OphidianThePK Send a message via AIM to OphidianThePK
Default TRyingg...

Ive tried everything now I think =/
everything from null to localhost to my static IP...
Please help me.. I'd like to help contribute to your
community..
OphidianThePK is offline   Reply With Quote
Old 10-18-2003, 01:49 PM   #7 (permalink)
 
Join Date: Jul 2003
Posts: 103
Send a message via AIM to Sayre
Default

First off the IP you use in serverlist.cs should be whatever IP this site gives you:
www.whatismyip.com

If you have used that IP and you can't even log on yourself then your having the exact same problem that I am. In which case no one is able to help me, so if you figure it out let me know =]
Sayre is offline   Reply With Quote
Old 10-18-2003, 03:08 PM   #8 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

IF you don't have a router the string should be null

Otherwise people won't be able to connect.
Phantom is offline   Reply With Quote
Old 10-18-2003, 08:40 PM   #9 (permalink)
 
Join Date: Oct 2003
Posts: 25
Send a message via ICQ to OphidianThePK Send a message via AIM to OphidianThePK
Default Same damn problem

I get the same damn problem with null tho.. Ive tried them all
Is it possible that the problem Im having is the ones that the
code error suggests?

System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full

Whats the deal with the buffer space or queue stuff?
Ill try re-unzipping the software and reloading it.. maybe I
f'd something up on accident in the cs file..

Im plain outa ideas..
Can someone please help me resolve this?
OphidianThePK is offline   Reply With Quote
Old 10-21-2003, 06:07 AM   #10 (permalink)
 
Join Date: Oct 2003
Posts: 25
Send a message via ICQ to OphidianThePK Send a message via AIM to OphidianThePK
Default This may have to do with win 2k professional?

I think this issue might have to do with win 2000 professional edition
Ive seen this server run on different computers.. I am going to try
and run it on a 2ndary PC that has w2k professional..
Microsoft's Knowledgebase suggested that the error was due to some
socket stuff blah blah but I tried thier solution and it didn't work so
I am assuming that the problem they specified is different..

Is anyone else running run UO on Win2k Prof Edition?
OphidianThePK is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5