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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application Object

Status
Not open for further replies.

MarkZK

Technical User
Jul 13, 2006
202
GB
O.k...

Hi All,

I don't hold much hope for this, but I have nothing to lose in asking, so here goes....

I'm running this code at my first host which is a windows iis6 host.

Code:
<%
'used to set a value to the application (one off using test.asp?set=123)
If Len(Request.QueryString("set")) > 0 Then
  application("test") = "text"
Else
'for all other users display the value (test.asp)
 Response.write(application("test"))
End If
%>

This works as expected, but when I take that same code to my second host which is running iis7 it's a different story.
Sometimes people see "text" but other people testing the same page see a blank page.

This means my Application objects at that server are unreliable and don't work for all users like it does in iis6.

(the application pooling time-out delay isn't clearing it)


Can anyone understand why or give me any advice on things to try for solving the problem.. will changing ASP.NET versions do anything ?.. does that have any affect on classic ASP ?

ANYTHING! at all would be good to try at this point, THANKS!
 
IIS 7 does not support Classic ASP by default, you will need to ensure that the component is installed and you may need to enable the configuration in IIS as I think its turned off by default as well if installed.

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top