473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

XP Home won't open a remote page that XP Pro will

Hi all,

I've got a really wierd problem here.

When I access a remote web page that adds information to a database on a PC
running
XP Pro it works as it should.

When I access the same page from a PC running XP Home I get an ' Internal
server error - page cannot be displayed' message.

I've tried it on 5 PC's running XP Pro & 5 running XP Home - same result.

ASP code is:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<%
dim conn2,sql2
set conn2 = server.createobject ("ADODB.connection")
conn2.Provider="Microsoft.Jet.OLEDB.4.0"
conn2.Open(Server.Mappath("dat48372.mdb"))

sql2="INSERT INTO Tracker (qReferer, qLocAdd, qRemAdd, qUAgent)"
sql2=sql2 & " VALUES "
sql2=sql2 & "('" & request.servervariables("HTTP_REFERER") & "',"
sql2=sql2 & "'" & request.servervariables("LOCAL_ADDR") & "',"
sql2=sql2 & "'" & request.servervariables("REMOTE_ADDR") & "',"
sql2=sql2 & "'" & request.servervariables("HTTP_USER_AGENT") & "')"

conn2.Execute sql2
conn2.close
set conn2 = Nothing
%>

Can anyone help pls. page is http://wavestation.biz/scotty

Thanks in advance

xool

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.501 / Virus Database: 299 - Release Date: 14/07/2003
Jul 19 '05 #1
2 1788
Or announce that you got this figured out in your other identical thread.

Ray at work

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uC**************@TK2MSFTNGP11.phx.gbl...
First find out what the error is.
http://www.aspfaq.com/2109

Ray at work

"vool" <vo**@fsnet.com> wrote in message
news:OG**************@TK2MSFTNGP12.phx.gbl...
Hi all,

I've got a really wierd problem here.
When I access the same page from a PC running XP Home I get an ' Internal server error - page cannot be displayed' message.


Jul 19 '05 #2
"vool" <vo**@fsnet.com> wrote in message
news:OG**************@TK2MSFTNGP12.phx.gbl...
Hi all,

I've got a really wierd problem here.

When I access a remote web page that adds information to a database on a PC running
XP Pro it works as it should.

When I access the same page from a PC running XP Home I get an ' Internal
server error - page cannot be displayed' message.

I've tried it on 5 PC's running XP Pro & 5 running XP Home - same result.

ASP code is:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<%
dim conn2,sql2
set conn2 = server.createobject ("ADODB.connection")
conn2.Provider="Microsoft.Jet.OLEDB.4.0"
conn2.Open(Server.Mappath("dat48372.mdb"))

sql2="INSERT INTO Tracker (qReferer, qLocAdd, qRemAdd, qUAgent)"
sql2=sql2 & " VALUES "
sql2=sql2 & "('" & request.servervariables("HTTP_REFERER") & "',"
sql2=sql2 & "'" & request.servervariables("LOCAL_ADDR") & "',"
sql2=sql2 & "'" & request.servervariables("REMOTE_ADDR") & "',"
sql2=sql2 & "'" & request.servervariables("HTTP_USER_AGENT") & "')"

conn2.Execute sql2
conn2.close
set conn2 = Nothing
%>

Can anyone help pls. page is http://wavestation.biz/scotty


I didn't get any error messages with Opera 7, but then again that is an
*.HTM file
<META NAME="author" CONTENT="J M Neary">
<LINK REV="made" HREF="in**@terra-byte.net">
<META NAME="copyright" CONTENT="2003 Terra-Byte">
Have you tried debugging your ASP?
e.g replacing CONN2.EXECUTE SQL2 with RESPONSE.WRITE SQL2 and comparing the
difference?

Since while I don't know, I do suspect that the two client dependent values
HTTP_USER_AGENT and HTTP_REFERER are the most likely suspects.

HINT: To prevent hacking, check any user editable strings like
HTTP_REFERER's for badness before giving them to SQL, your current
implementation doesn't stop someone squirting a referer string like
server.urlencode("Host',"","","");DELETE tracker.*;")
which if it didn't include deliberate syntax errors could fuck your table
contents.

And since you have published the script syntax and URL to the world, you
might want to patch that hole fast, da?
And is dat48372.mdb supposed to be world readable?
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Jim Hubbard | last post by:
Anybody know?
2
by: Nikhil Patel | last post by:
Hi, I want to install and learn the ASP.Net starter kits. I have Windows XP machine and Visual Studio 2002. Is it possible? Thanks...
3
by: Rene | last post by:
Sorry for asking this in this newsgroups but I didn't know where else to ask. I just came back from the store with a spanking new laptop computer. The laptop is exactly what I was looking for...
4
by: William Hudson | last post by:
I want to be able to ask users for a URL, open that page, change some of the contents and then display that page as if they had typed the URL into a browser. I have toyed with some of the php...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
1
by: Mike.Duffy | last post by:
Is there a trick you can use to know if someone has made your web page his "home"? At first, I thought to check if ( history.length == 0 ) or if ( document.referrer.href == ""). These both sort...
1
by: deniel | last post by:
I need help, my company has internal website that is published by IIS and accessed throughout the company's intranet network. It's been working well for more than a year. Last monday, out of the...
0
by: Guern1 | last post by:
Hi Sorry if I have posted this to the wrong forum. Need a bit of help here please to point me in the right direction. I have a java class file here which i wish from a menu item to open a...
3
by: goldenv | last post by:
Hi all, I have worked an open source javascript + html page that has the potential to replace your existing browser home page. If you are interested in trying it out, or learning more about it, it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.