Im trying to run compomaster through IIS on my PC.
I have Windows 7 64bit installed.
When I run the html file I made directly on my pc. Compomaster loads
up perfectly.
When I try to browse to my ip/test.html from another machine or to
localhost/test.html on my pc, it loads the compomaster applet fine,
but inside the applet it can't find the two .cmp files.
I added both the .cmp, test.html and the two .jar files to my C:
\inetpub\wwwroot
Any idea how IIS works and how I can get it to recognise the .cmp
files?
Or perhaps some other way of hosting the webinterface for a lan
environment?
Thanks!
RenegadeWolf
This is the code in test.html
<html>
<head>
<title>CompoMaster</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align=center>
<applet archive="CompoViewer.jar" code="CompoViewer/
CompoViewer.class" height=528 width=1310>
<param name="DataFile0" value="test1.cmp">
<param name="DataFile1" value="test2.cmp">
<param name="PlayerSource1" value="0">
<!-- Specify more tournaments here if you want the applet to
show several competitions
at once. Swapping between them is done by clicking on the
buttons in the applet.
The names on the applet are derived from the tournament
name.
-->
</applet>
</div>
</body>
</html>
1. The security/permission settings in IIS. Try navigating to the .cmp files
directly and see if Internet explorer presents you with a download file
popup. It should.
2. The value of the <param name=datafileX>-tags. Try with relative URLs
(starting with '/') and with absolute URLs (starting with 'http://'). Any
difference?
If it still fails, are you able to provide a screenshot of the error
message? (Or copy/paste?)
Note that it's CompoViewer that tries to load the .CMP files. Not IIS. IIS
doesn't care what format they're on - it only sends the file to the client
browser, which in turn hands them over to CompoViewer.jar which interprets
the contents.
"Hosting the webinterface" for a lan environment is exactly what CompoViewer
is supposed to do. As an Applet... which is a kind of outdated technology,
but it should still work. If I have time, I will rewrite it to pure HTML one
day though. It should be easier to set up.
http://www.compomaster.com/viewpage.php?page_id=1
This page uses the HTML <OBJECT> tag instead of APPLET, which is deprecated
by the W3C. Don't know if it matters, but you could try changing to the
OBJECT syntax as well. View source on the page mentioned and see how it's
built. It's actually more painful to set up than APPLET, but .. well.. it's
the standard.