Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The Script block lacks the close of script tag (%>).

Status
Not open for further replies.

TwoOdd

Programmer
Sep 10, 2003
196
CL
The Script block lacks the close of script tag (%>).

I keep getting this message even though I have the script tag closed. After getting this message, I'll go back to my page and add %> to the end of the code then save the file. Next I delete the %> I just added and resave the file then refresh the page and it works just fine. A little while later, I'll go back to page and it gives me the same error. This is happening on multiple ASP pages.

I'm using Windows XP Pro for the OS and viewing the files in IE6. Any help in solving this problem would be appreciated. Let me know if I need to post the code. I think it might be a setting in IIS and not a problem with the code.

Thanks,


TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner
 
have you tried rebooting the server?


Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
It was rebooted last week. I won't be able to reboot it today for another couple of hours. Anything else I can try?

TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner
 
I've rebooted the server. It's working for now. I'll update if it gives me the error again.

TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner
 
Problem still occurs. Any other suggestions?

TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner
 
you know I've been pondering this one for a bit and just cannot think of a reason for that particular error coming up unless it is exactely what it states, a missing close tag. The situation you are describing jsut sounds like a cache problem above. Although you wouldn't think that would be it, but taht is worth looking into.

some of the thoughts I came up with are

are there any inclides in the page that may be missing one?
are there any commented lines that may be effecting the closing tags?

the comment line one isn't that far fetched. I've done it and I know other developers do it at one point.
something like
'comment %>

I know more times then not that will work, but I've seen it cause problems

sorry for no solid answer


___________________________________________________________________

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
one other thing...it is possible to change the type of tag you use for letting the server know there is server scripts to read. is that a possible factor?


it also looks like that error can relate to other factors
as I jsut found this link

___________________________________________________________________

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
onpnt,
I have two include files and both have opening and closing ASP tags. All of my comments are fine.

I did notice some bad html programming though. I was writing text to the page via asp before I had the header and body tags written to the page. I changed that and made sure the header and body tags where written to the page first. It seems to have worked, but then again so have other things temporarily. We'll see.

Thanks for the help,

TwoOdd
--------------
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner
 
[thumbsup2] Let us know! I know I'm curious to find out

___________________________________________________________________

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
Do you have any kind of Server.Execute inside some kind of conditional, where asp is only parsing the code when the condition is met?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top