Java Applet and IIS

Reply

Join Date: Jul 2004
Posts: 11
Reputation: roda is an unknown quantity at this point 
Solved Threads: 0
roda roda is offline Offline
Newbie Poster

Java Applet and IIS

 
0
  #1
Jul 29th, 2004
Hi,

I have created an applet code. The code is normally working fine without IIS.
I have IIS 5.0 installed on my Windows 2000 Server. My web site home directory is "C:\Inetpub\wwwroot". I already coppied the files to the correct folder. In the address box of Internet Explorer, I typed "http://localhost/myfile.html". myfile.html is to run my applet. But when I go to the page I got the error message saying that "Connection refused: connect".

But, if I copy the code to my Windows XP pro machine with IIS 5.1 installed, it works fine.

Can anyone give me some idea or any dvise?
Your advise will be much appreciated.

Thanks,

Roda
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 11
Reputation: roda is an unknown quantity at this point 
Solved Threads: 0
roda roda is offline Offline
Newbie Poster

Re: Java Applet and IIS

 
0
  #2
Aug 11th, 2004
I found and fixed the problem. The problem was with my applet code that I was using URL constructor without assigning port 8080. It is working fine now. I just edit my code as below.

Original code:
  1. URL logfileURL1 = new URL(documentBase.getProtocol(), documentBase.getHost(), path + "/Total.log");

Corrected code:
  1. URL logfileURL1 = new URL(documentBase.getProtocol(), documentBase.getHost(), 8080, path + "/Total.log");

Thanks

=============
Roda
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC