Click to See Complete Forum and Search --> : Converting ASP for IIS to Sun One ASP for Linux
gabymolly
06-11-2005, 01:14 PM
I've developed a site for a friend using Active Server Pages 3.0 on an IIS Server but the host runs a Linux server so I need to convert my code to Sun One ASP (formerly SunChiliSoft or something like that). Does anyone know what the major differences are and if there's an easy way to do this. TIA.
Sarah :confused:
have you tried putting the code there to see what it does (or doesnt) do?
gabymolly
06-13-2005, 02:31 PM
I have. These are the messages I get: In the pane where I want a content rotator I get...
Error Type:
MSWC.ContentRotator.1 (0x80070002)
The system cannot find the file specified.
/didyouknow.asp, line 128
... and in the pane where I want to display search results I get...
Error Type:
ADODB.Connection.1 (0x80020009)
Empty connection string.
/films.asp, line 19
But when I run the application on my own computer using IIS all my coding works absolutely fine.
I really would appreciate some help with this if anyone can, I've downloaded the Sun Chili Soft manual but it's no use whatsoever.
Sarah.
the contentrotator is a front page extension isnt it? i dont know if chili soft can run those.
post up the code around your line 19 error. lets see whats going on.
gabymolly
06-19-2005, 02:46 PM
This is the code I'm using to return search results:
<%
option explicit
dim strconnect
%>
<!-- #include file="datastore.asp" -->
<!-- metadata type="typelib"
file="c:\program files\common files\system\ado\msado15.dll" -->
<html>
<head>
<title>Select... Films</title>
</head>
<body>
<center><img src="movies.jpg">
<%
dim objcommand, objrs
set objcommand = server.createobject("adodb.command")
objcommand.activeconnection = strconnect
objcommand.commandtext = "select heading, description from tblalldata " & _
"where topic like 'movies' "
objcommand.commandtype = adcmdtext
set objrs = objcommand.execute
set objcommand = nothing
while not objrs.eof
response.write "<div align=center>" & _
"<b>" & objrs("heading") & "</b><br>" & _
objrs("description") & "</div><p>"
objrs.movenext
wend
objrs.close
set objrs = nothing
%>
</body>
</html>
I've got the Sun Chili Soft Manual and took the code for the content rotator from there but it still doesn't work. I'm going to contact tech support again about that one but if you can help with the search page that would be great.
TIA