_server = new cassini.server(portnumber, _virtroot, _apppath);
_server.start();
}
//我们可以知道在此,我们先生new一个cassini.server然后调用start过程。出错了就报告错误。源代码中并没有catch(exception e)的语句,是我为了察看错误提示信息加上去的。通过这样做,我知道编译后的程序如何执行。
catch (exception e){
messagebox.show(e.tostring());
showerror(
"cassini managed web server failed to start listening on port " + portnumber + ".\r\n" +
"possible conflict with another web server on the same port.");
porttextbox.selectall();
porttextbox.focus();
return;
}
startbutton.enabled = false;