ASP scripts not running
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > ASP scripts not running




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ASP scripts not running  
Phil Taylor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 10:58 PM

Hi All,

Help!!

We have installed the System Update Service on our server in order to
distribute Windows updates to the 60 pc's on the LAN. Now we have
problems with our intranet applications.

The SUS program and associated files were uninstalled and the IIS
lockdown wizard used to restore out original settings. Most of the
apps now work but the ASP programs fail to run. It seems to be a
session error as the script debugger displays a session mismatch box
and highlights the following text
[vbcol=seagreen] 

<%

session("OpenAdmin") = False
session("Notify") = False
session("AdminEmail") = ""
session("AdminPass") = ""

Dim strConnect

strConnect = "Driver={Microsoft Access Driver (*.MDB)}; DBQ="&
Server.MapPath("Tracking.mdb")
set objRec = server.CreateObject("ADODB.Recordset")

if request.Item("txtUsername") <> "Please Select" then

if request.item("txtPassword") <> "" then

strSQL = "SELECT * FROM Logon WHERE Username='" &
request.Item("txtUsername") & "'"

objRec.open strSQL, strConnect

if request.Item("txtPassword") = objRec("Password") then
session("AdminPass") = objRec("FullName")
session("AdminEmail") = objRec("Email")
if objRec("Notify") = True then session("Notify") = True
if objRec("Admin") = True then session("OpenAdmin") = True
end if

objRec.close

if session("AdminPass") <> "" then response.redirect ("Tracking.asp")
if session("") = "" then strPassword = "<font
color=red><strong>Password incorrect. Please try
again.</strong></FONT>"
end if

end if

strSQL = "SELECT * FROM Logon ORDER BY Username"

objRec.open strSQL, strConnect

Dim strUsername
do until objRec.EOF = true
strUsername = strUsername & "<option>" & objRec("Username")
objrec.MoveNext
loop

objrec.Close


%>

My knowledge of ASP ans IIS is limited, please help....

TIA

Phil





[ Post a follow-up to this message ]



    Re: ASP scripts not running  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 10:58 PM

In IIS Manager, right-click on the website or web application root in
question and choose Properties

On the Home Directory (or Directory) tab, click the "Configuration" button

On the "Options" tab, ensure "enable session state" is checked

Hope this helps.

Cheers
Ken

"Phil Taylor" <ptaylor404@gmail.com> wrote in message
news:b39a7776.0408250237.336ec501@posting.google.com...
> Hi All,
>
> Help!!
>
> We have installed the System Update Service on our server in order to
> distribute Windows updates to the 60 pc's on the LAN. Now we have
> problems with our intranet applications.
>
> The SUS program and associated files were uninstalled and the IIS
> lockdown wizard used to restore out original settings. Most of the
> apps now work but the ASP programs fail to run. It seems to be a
> session error as the script debugger displays a session mismatch box
> and highlights the following text
> 
>
> <%
>
> session("OpenAdmin") = False
> session("Notify") = False
> session("AdminEmail") = ""
> session("AdminPass") = ""
>
> Dim strConnect
>
> strConnect = "Driver={Microsoft Access Driver (*.MDB)}; DBQ="&
> Server.MapPath("Tracking.mdb")
> set objRec = server.CreateObject("ADODB.Recordset")
>
> if request.Item("txtUsername") <> "Please Select" then
>
> if request.item("txtPassword") <> "" then
>
> strSQL = "SELECT * FROM Logon WHERE Username='" &
> request.Item("txtUsername") & "'"
>
> objRec.open strSQL, strConnect
>
> if request.Item("txtPassword") = objRec("Password") then
> session("AdminPass") = objRec("FullName")
> session("AdminEmail") = objRec("Email")
> if objRec("Notify") = True then session("Notify") = True
> if objRec("Admin") = True then session("OpenAdmin") = True
> end if
>
> objRec.close
>
> if session("AdminPass") <> "" then response.redirect ("Tracking.asp")
> if session("") = "" then strPassword = "<font
> color=red><strong>Password incorrect. Please try
> again.</strong></FONT>"
> end if
>
> end if
>
> strSQL = "SELECT * FROM Logon ORDER BY Username"
>
> objRec.open strSQL, strConnect
>
> Dim strUsername
> do until objRec.EOF = true
> strUsername = strUsername & "<option>" & objRec("Username")
> objrec.MoveNext
> loop
>
> objrec.Close
>
>
> %>
>
> My knowledge of ASP ans IIS is limited, please help....
>
> TIA
>
> Phil







[ Post a follow-up to this message ]



    Re: ASP scripts not running  
Phil Taylor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-25-04 10:58 PM

Thanks Ken.

Everything is up and running fine now. I seem to have learned a lot
about asp, cookies and iis today..... ;-)

Phil

"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message news:<u5sNFFpiEHA.3476@tk2m
sftngp13.phx.gbl>...[vbcol=seagreen]
> In IIS Manager, right-click on the website or web application root in
> question and choose Properties
>
> On the Home Directory (or Directory) tab, click the "Configuration" button
>
> On the "Options" tab, ensure "enable session state" is checked
>
> Hope this helps.
>
> Cheers
> Ken
>
> "Phil Taylor" <ptaylor404@gmail.com> wrote in message
> news:b39a7776.0408250237.336ec501@posting.google.com... 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:39 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register