Please replace the attached photos with link tags as soon as you can so I can help you.
Good evening , I'm developing a server but get this error :: previous ( photos attached ) :: Remembering that I did not edit anything from the server yet ...
I'm using the server : New Phoenix Source (1.9.2)
Thank you and I await a return =D
imageshack.com/a/img909/6391/dboKPM.png
imageshack.com/a/img674/6892/PJXI97.png
imageshack.com/a/img538/2443/vaVYUi.png
Last edited by York1058; 10-30-2014 at 05:23 PM. Reason: add images
Please replace the attached photos with link tags as soon as you can so I can help you.
YEP cock
The following errors occurred with your submission
An error has occurred York1058! You are not allowed to post links.
--
Edit:
Images in Topic =D ImageShack '-'
Last edited by York1058; 10-30-2014 at 05:23 PM.
Did you import struct.sql and have mysql running? I can't read what the image says because of the language
News Force Head Editor from 09/14/2018 - 03/02/2020
Publicist from 11/23/2017 - 06/07/2019
Global Moderator since 09/24/2017
Minion+ from 04/16/2017 - 09/24/2017
Market Place Minion from 04/16/2017 - 09/24/2017
Minecraft Minion from 02/23/2017 - 09/24/2017
Realm of the Mad God Minion from 11/06/2016 - 09/24/2017
Middleman from 09/14/2016 - 09/24/2017
News Force Editor from 08/23/2016 - 09/14/2018
News Force (Section of the Week) from 03/21/2016 - 07/17/2017
News Force (User News) from 10/18/2015 - 09/14/2018
Donator since 03/16/2015
Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
Member since 12/23/2012
Rep Power: 82
I Imported SQL Table (struct.sql)
SQL is Running
Server Error in Program.cs in line 23 ( listener.Start()
using System;
using System.Collections.Generic;
using System****;
using System.Net;
using System.Threading;
namespace server
{
internal class Program
{
private const int port = 80;
private static HttpListener listener;
private static Thread listen;
private static readonly Thread[] workers = new Thread[5];
private static readonly Queue<HttpListenerContext> contextQueue = new Queue<HttpListenerContext>();
private static readonly object queueLock = new object();
private static readonly ManualResetEvent queueReady = new ManualResetEvent(false);
private static void Main(string[] args)
{
listener = new HttpListener();
listener.Prefixes.Add("Removed for posting (HTTP) :" + port + "/");
listener.Start();
listen = new Thread(ListenerCallback);
listen.Start();
for (int i = 0; i < workers.Length; i++)
{
workers[i] = new Thread(Worker);
workers[i].Start();
}
Console.CancelKeyPress += (sender, e) =>
{
Console.WriteLine("Terminating...");
listener.Stop();
while (contextQueue.Count > 0)
Thread.Sleep(100);
Environment.Exit(0);
};
Console.WriteLine("Listening at port " + port + "...");
Thread.CurrentThread.Join();
}
private static void ListenerCallback()
{
try
{
do
{
HttpListenerContext context = listener.GetContext();
lock (queueLock)
{
contextQueue.Enqueue(context);
queueReady.Set();
}
} while (true);
}
catch
{
}
}
private static void Worker()
{
while (queueReady.WaitOne())
{
HttpListenerContext context;
lock (queueLock)
{
if (contextQueue.Count > 0)
context = contextQueue.Dequeue();
else
{
queueReady.Reset();
continue;
}
}
try
{
ProcessRequest(context);
}
catch
{
}
}
}
private static void ProcessRequest(HttpListenerContext context)
{
try
{
IRequestHandler handler;
if (!RequestHandlers.Handlers.TryGetValue(context.Req uest.Url.LocalPath, out handler))
{
context.Response.StatusCode = 400;
context.Response.StatusDescription = "Bad request";
using (var wtr = new StreamWriter(context.Response.OutputStream))
wtr.Write("<h1>Bad request</h1>");
}
else
handler.HandleRequest(context);
}
catch (Exception e)
{
using (var wtr = new StreamWriter(context.Response.OutputStream))
wtr.Write("<Error>Internal Server Error</Error>");
Console.Error.WriteLine(e);
}
context.Response.Close();
}
}
}
I gave a brief on the images and ran to help a bit::
imageshack.com/a/img633/4003/5TL7W3.png
imageshack.com/a/img905/3397/hUlkXD.png
Just to be clear , I have made no modifications to the server yet . I just followed a tutorial .. ( MMOEmpire Private Server Setup Tutorial )
Is Skype on? You should disable the port 80 from being used by Skype if so in Skype's settings
News Force Head Editor from 09/14/2018 - 03/02/2020
Publicist from 11/23/2017 - 06/07/2019
Global Moderator since 09/24/2017
Minion+ from 04/16/2017 - 09/24/2017
Market Place Minion from 04/16/2017 - 09/24/2017
Minecraft Minion from 02/23/2017 - 09/24/2017
Realm of the Mad God Minion from 11/06/2016 - 09/24/2017
Middleman from 09/14/2016 - 09/24/2017
News Force Editor from 08/23/2016 - 09/14/2018
News Force (Section of the Week) from 03/21/2016 - 07/17/2017
News Force (User News) from 10/18/2015 - 09/14/2018
Donator since 03/16/2015
Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
Member since 12/23/2012
Rep Power: 82
Skype is uninstaled... =\
try private const int port = 8888; anyway
[Vouched] Filehost l VPN l Music l Streaming l Gaming l Education l Security l Torrent l Others [All Accounts Shop]
Educational Account Store [Chegg l Coursehero l Grammarly l Pluarsight l Udemy l Ect]
VPN Store [ExpressVPN l IPVanish l HideMyAss l VyerVPN l NordVPN l StrongVPN l Others]
90% of Torrent - Trackers Accounts l Invites l Service l Warranty
Even trying to port 8888 still with the same error ..
Is it because I am using Win8.1 in Portuguese ?
If someone can help me , I can even turn the TeamView . How to speak in Portuguese , just leave the open GoogleTranslate so we can talk ...
Today I formatted my computer and put Windows 8.1 in English because a friend of mine recommended .
I am currently installing programs to the server .
installed :
MySQL ( Full Installation )
Visual Studio 2013
I downloaded the Phoenix and the link below (If other better please indicate me the link )
mpgh.net/forum/showthread.php?t=768625
Probably found the cause of the problem ...
imageshack.com/a/img633/24/re2GAD.png
P.S: Port 80 is Available
You need administrative privileges to open a http listener on port 80. When you open the server or run visual studios, right click and select run as administrator or hold down shift+ctrl and double click the icon.
Be careful, stray too far from the pack and you'll get lost.
youtube.com/attribution_link?a=TJ7C5-3Qfqg&u=/watch%3Fv%3DUtxXnfTfAPY%26feature%3Dem-upload_owner
Edit post is not avaliable in Mobile forum...
www.youtube.com/watch?v=UtxXnfTfAPY