早些天,使用MonoDevelop创建Web程序,运行还很正常,今天突然就不正常了,出现了如下的错误:
- Adding applications '/:.'...
-
Registering application:
-
Host: any
-
Port: any
-
Virtual path: /
-
Physical path: /home/peng/src/project/test/testWeb/helloWeb/
-
xsp2
-
Listening on address: 127.0.0.1
-
Root directory: /home/peng/src/project/test/testWeb/helloWeb
-
Error: System.Net.Sockets.SocketException: Address already in use
-
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000]
-
at Mono.WebServer.XSPWebSource.CreateSocket () [0x00000]
-
at Mono.WebServer.ApplicationServer.Start (Boolean bgThread) [0x00000]
-
at Mono.WebServer.ApplicationServer.Start (Boolean bgThread, System.Exception initialException) [0x00000]
-
at (wrapper remoting-invoke-with-check) Mono.WebServer.ApplicationServer:Start (bool,System.Exception)
-
at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000]
-
The application was terminated by a signal: SIGHUP
从错误的异常,我们发现是socket异常,导致XSP服务器不能运行。因为我使用的tomcat,占用的8080端口,很可能是端口占用。
怀疑是这个问题后,我想一定要找到,再那里修改端口号,即可解决问题。
经过查找,右键自己创建的Web项目,Options,找到 XSP服务器,修改Port number为另外一个值如:8081,点击确定。
重新运行,即可。
阅读(4254) | 评论(2) | 转发(0) |