Current location: Hot Scripts Forums » Programming Languages » ASP » Global.asa blocks ASP response


Global.asa blocks ASP response

Reply
  #1 (permalink)  
Old 10-17-03, 08:02 AM
HenkBaas HenkBaas is offline
New Member
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Global.asa blocks ASP response

I have created an ASP page with FP2000 using the sample NorthWind database. I walked through the Insert Database Result wizard, selecting the Customer table and made no other changes from the default. The result is the Customerid.asp page, the Global.asa file and the fpdb/fpnwind.mdb dataset. So far, so good.
When I try to access the Customerid.asp page (or for that matter any other ASP page) in IE, it shows 'Website found, waiting for reply ...' in the status bar and everything in IE stops.
The only way to get IIS to respond to requests for ASP pages is to
delete/rename the Global.asa and restart IIS.
The website already is an application.

Do I need to set an additional parameter in IIS or somewhere else, or must I manually change something in the Global.asa that was just made by FP2000?

System info: W2kPro, IIS 5, FP2000

Henk Baas
Reply With Quote
  #2 (permalink)  
Old 10-18-03, 06:55 AM
HenkBaas HenkBaas is offline
New Member
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I have found the problem and solved it:
The problem was in the Global.asa file, in particular the
'FrontPage_FileExists' function in it. When I replaced the OpenTextFile function with a FileExists function everything worked. I have included the modified 'Frontpage_FileExists' function so you can see what I have done:

Function FrontPage_FileExists(fspath)
On Error Resume Next
FrontPage_FileExists = False
set fs = CreateObject("Scripting.FileSystemObject")
'begin of replacement part
if (fs.FileExists(fspath)) then
FrontPage_FileExists = True
end if
'end of replacement part
'begin of deleted part
' Err.Clear
' set istream = fs.OpenTextFile(fspath)
' if Err.Number = 0 then
' FrontPage_FileExists = True
' istream.Close
' end if
' set istream = Nothing
'end of deleted part
set fs = Nothing
End Function

Henk Baas
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 03:46 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.