Chris
Nov 15th, 2000, 08:25 PM
I juz create a simple web site running in IIS 4.0 and MTS 2.0 under WinNT 4.0 server with the following files:
Global.asa
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
set Session("obj") = server.CreateObject("MapSocket.MapServer")
</SCRIPT>
winsock.asp
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<P>
<%
set obj = Session("obj")
obj.openport(2000)
%>
</P>
</BODY>
</HTML>
Sendfile.asp
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
set obj = session("obj")
obj.Send2Client("C:\testing.txt")
%>
</BODY>
</HTML>
Okay, let me briefly describe what my asp page does.
1. It will create a Object with the COM write by me in VB 6.0. This COM will open a winsock socket with port number provided by the OpenPort method as show in the winsock.asp above and listen all the client that wish to connect to the server.
2. If the is somebody post a new file by accessing the asp page sendfile.asp as show above, the sendfile.asp will call the Send2Client method as provided by the MapSocket's COM object.
Expected Result
Hence, each connected client will be able to received a new posted file name in thier client interface through the winscok socket that connected to the server.
Problem
Okay, here is my problem, when I try to run the asp page and client on the local server (installed IIS, MTS and Window 2000 server, BUT not a web server) everything is fine and the result is what i expected.
Once, I upload all this asp page and COM into the real web server with fixed IP and URL (installed WinNT 4.0 server with SP6, IIS 4.0, MTS 2.0) I only can manage to open the winsock port (by accessing the winsock.asp page). If there is any new posted file (by accessing the sendfile.asp) all the client will not be able to received the message in thier client interface.
Can anyone give me some hint what this happen in my situation? And how am I going to resolve it. Will this problem related to the server access right issue?
10X for those reply this thread.
regards
Chris.C
[Edited by Chris on 11-15-2000 at 09:29 PM]
Global.asa
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
set Session("obj") = server.CreateObject("MapSocket.MapServer")
</SCRIPT>
winsock.asp
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<P>
<%
set obj = Session("obj")
obj.openport(2000)
%>
</P>
</BODY>
</HTML>
Sendfile.asp
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
set obj = session("obj")
obj.Send2Client("C:\testing.txt")
%>
</BODY>
</HTML>
Okay, let me briefly describe what my asp page does.
1. It will create a Object with the COM write by me in VB 6.0. This COM will open a winsock socket with port number provided by the OpenPort method as show in the winsock.asp above and listen all the client that wish to connect to the server.
2. If the is somebody post a new file by accessing the asp page sendfile.asp as show above, the sendfile.asp will call the Send2Client method as provided by the MapSocket's COM object.
Expected Result
Hence, each connected client will be able to received a new posted file name in thier client interface through the winscok socket that connected to the server.
Problem
Okay, here is my problem, when I try to run the asp page and client on the local server (installed IIS, MTS and Window 2000 server, BUT not a web server) everything is fine and the result is what i expected.
Once, I upload all this asp page and COM into the real web server with fixed IP and URL (installed WinNT 4.0 server with SP6, IIS 4.0, MTS 2.0) I only can manage to open the winsock port (by accessing the winsock.asp page). If there is any new posted file (by accessing the sendfile.asp) all the client will not be able to received the message in thier client interface.
Can anyone give me some hint what this happen in my situation? And how am I going to resolve it. Will this problem related to the server access right issue?
10X for those reply this thread.
regards
Chris.C
[Edited by Chris on 11-15-2000 at 09:29 PM]