
就是netbox build 成exe 之前不是创建一个main.box ,然后说是这个错误。大神帮我看一下。。
然后我电脑上面好几个服务器,可是没有占用83端口的,
问题是红色标记的。就是无法创建NetBox.HttpServer,代码是从
http://www.netbox.cn/Document/?http://www.netbox.cn/Document/Document/AtFirst.Deploy.aspDemo.htm
这个上拷的。
下面是代码。
Dim httpd
Shell.Service.RunService "NBWeb", "NetBox Web Server", "NetBox Http Server Sample"
Sub OnServiceStart()
Set h = CreateObject("NetBox.HttpServer")
If h.Create("",83) = 0 Then
Set host = h.AddHost("", "")
host.EnableScript = true
host.AddDefault "1.asp"
h.Start
else
Shell.Quit 0
end if
End Sub
Sub OnServiceStop()
h.Close
End Sub
Sub OnServicePause()
h.Stop
End Sub
Sub OnServiceResume()
httpd.Start
End Sub
今天下午就收了,网上找了一晚上了。跪求大神解决。。。