We are testing this code from an XP system remoting to a 2003 server with a static IP.
Here, DLSServer is an interface mechanism which has the CServer class which in turn contains the CallFunc() function which in turn calls the getval() from an Interop COM service.
The below code has been tested on the localhost and found to be alright. But on a remote host this code returns an error.
When windows firewall is on with "Dont allow exceptions" the following was returned.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{b
ackground-
color:#fff
fff;font-f
amily:verd
ana,sans-s
erif}PRE{f
ont-family
:sans-seri
f}--></STY
LE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="
http://122.166.3.204//dlsonline//dlsserver.soap">
http://122.166.3.204//dlsonline//dlsserver.soap</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Connection to 122.166.3.204 Failed
</STRONG>
</UL>
<P>
The system returned:
<PRE><I> (110) Connection timed out</I></PRE>
<P>
The remote host or network may be down. Please try the request again.
<P>Your cache administrator is <A HREF="mailto:root">root</A
>.
<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Sat, 26 Jul 2008 11:21:36 GMT by blr.cc (squid/2.6.STABLE17)
</ADDRESS>
</BODY></HTML>
When Firewall is off we got the following error :
The remote server returned an error: (401) Unauthorized.
Stack trace :
"\r\nServer stack trace: \r\n at System.Runtime.Remoting.Ch
annels.Htt
p.HttpClie
ntTranspor
tSink.Proc
essRespons
eException
(WebExcept
ion webException, HttpWebResponse& response)\r\n at System.Runtime.Remoting.Ch
annels.Htt
p.HttpClie
ntTranspor
tSink.Proc
essMessage
(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)\r\n at System.Runtime.Remoting.Ch
annels.Soa
pClientFor
matterSink
.SyncProce
ssMessage(
IMessage msg)\r\n\r\nException rethrown at [0]: \r\n at System.Runtime.Remoting.Pr
oxies.Real
Proxy.Hand
leReturnMe
ssage(IMes
sage reqMsg, IMessage retMsg)\r\n at System.Runtime.Remoting.Pr
oxies.Real
Proxy.Priv
ateInvoke(
MessageDat
a& msgData, Int32 type)\r\n at DLSServer.CServer.CallFunc
(Int32 source, String mf, String mp1, String mp2, String mp3, String mp4)\r\n at _Default.Button1_Click(Obj
ect sender, EventArgs e) in d:\\rnd\\wrk\\test\\Defaul
t.aspx.cs:
line 35\r\n at System.Web.UI.WebControls.
Button.OnC
lick(Event
Args e)\r\n at System.Web.UI.WebControls.
Button.Rai
sePostBack
Event(Stri
ng eventArgument)\r\n at System.Web.UI.WebControls.
Button.Sys
tem.Web.UI
.IPostBack
EventHandl
er.RaisePo
stBackEven
t(String eventArgument)\r\n at System.Web.UI.Page.RaisePo
stBackEven
t(IPostBac
kEventHand
ler sourceControl, String eventArgument)\r\n at System.Web.UI.Page.RaisePo
stBackEven
t(NameValu
eCollectio
n postData)\r\n at System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt)"
Kindly assist us with regard to the above,
Thanks a lot in advance
Start Free Trial