473,412 Members | 3,343 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,412 software developers and data experts.

ASP App Hangs.

G'day. Slight problem that has me perplexed.

We have an ASP app running on Win2K IIS 5.1, devloped on WinXPpro.

Up until the other day, the app worked without problems.

Now, the app hangs on an FSO request. I've inlcuded the relevant code below
for referrence.

Basically, the code will check to see if a dir exists (CALLOUT 1), then
checks Write permissions by trying to create
a test.txt file (CALLOUT 2), then deletes the file created in CALLOUT 3. The
uploadsDirVar points to another disk
volume and has the correct permissions (NTFS) assigned and have not changed
(see CALLOUT 3 below):

This code is thisASP file called from the site's Default.asp.

CODE SNIPPET START:
Dim fso, fileName, testFile, streamTest

(CALLOUT 1)
' TestEnvironment is a function that simply returns a string with an error
or is = to "" if no error.
TestEnvironment = ""
Set fso = Server.CreateObject("Scripting.FileSystemObject")
if not fso.FolderExists(uploadsDirVar) then
'Folder does not exist
TestEnvironment = "ERROR NO: 900 (Account Error [f] )! Contact the Office
for Assistance."
exit function
end if

' The next series try to Create and Delete a dummy file. If we cannot, then
we have a Permissions error
fileName = uploadsDirVar & "\test.txt"
on error resume next

(CALLOUT 2 - THIS IS WHERE THE APP HANGS UNTIL!)
Set testFile = fso.CreateTextFile(fileName, true)

(from here on out, everything works fine).
If Err.Number<>0 then
' No Write Permissions
TestEnvironment = "ERROR NO: 901 (Account Error [w] )! Contact the Office
for Assistance"
exit function
end if

(CALLOUT 3)
Err.Clear
' This works, so the NTFS perms are good to go!
testFile.Close fso.DeleteFile(fileName)
CODE SNIPPET END:

The dir exists and nothing has changed in terms of permissions, dir
locations or Code. No errors are returned from the Browser, Server or App.
It just hangs. Nothing in the Event Logs (Auditing turned on and shows no
errors either).

If I terminate the app (via the browser) I cannot use the app again.What I
mean to say is that when I try to connect to the app via default.asp,
everything just hangs.

If we debug the app and comment out the lines at CALLOUT 2 (between the If
and Endif) all works fine.if I create test.txt in Explorer, comment out
CALLOUT 2 and execute the app, CALLOUT 3 will delete the file, so we know
that IUSR_machine has the correct permissions which suggest that the server,
app and code are all good.

Any Ideas???

Richard

Jul 22 '05 #1
5 1652
Richard Gutery wrote:
G'day. Slight problem that has me perplexed.

We have an ASP app running on Win2K IIS 5.1, devloped on WinXPpro.

Up until the other day, the app worked without problems.

Now, the app hangs on an FSO request. I've inlcuded the relevant code
below for referrence.


http://www.aspfaq.com/show.asp?id=2180

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #2
Thanks for the link Bob. My bad, I should have mentioned that I disabled
"Script Blocking in NAV". Note to self, include more information in future
postings!

Interestingly enough, I just hit a client web site (where I have this code
in production) and all worked well (with and without NAV blocking scripts on
my laptop). I suppose one of my questions would be: Why would NAV script
blocking (client side) affect Server Side ASP? I can see this when I run the
site on my lapatop, but on a dev server that is in my computer room.

So as an experiement, I pulled my clients code down, put it on my dev server
and the same thing is happening.

Hmmm?

btw: On my dev server, I've disabled NAV Corporate Edition altogether,
double checked the perms (mirrored exactly as my client's server) and nada.

R.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Richard Gutery wrote:
G'day. Slight problem that has me perplexed.

We have an ASP app running on Win2K IIS 5.1, devloped on WinXPpro.

Up until the other day, the app worked without problems.

Now, the app hangs on an FSO request. I've inlcuded the relevant code
below for referrence.


http://www.aspfaq.com/show.asp?id=2180

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 22 '05 #3
Problem solved! It was actually a reply from Bob Barrows that got me going
on this - thanks Bob.

It seems that when you disable Script Blocking in NAV (actually SYM
Systemworks 2005) and you reboot after a Live Update, Systemworks will reset
any options that you've turned off to the values chosen at "Install Time".
For NAV Corporate Edition on a Server, script blocking is enabled
automatically for all Managed Clients and when the client logs in the NAV
client manager re-enables what ever features you've configured for "Managed
Clients"!

I guess the "Rule of thumb would be": Always double check NAV settings after
Live Updates or nAV Corp Edition Updates to managed clients.

I disables Script Blocking and all is well.

R.

"Richard Gutery" <rg*****@mentorits.com> wrote in message
news:Oa**************@TK2MSFTNGP14.phx.gbl...
G'day. Slight problem that has me perplexed.

We have an ASP app running on Win2K IIS 5.1, devloped on WinXPpro.

Up until the other day, the app worked without problems.

Now, the app hangs on an FSO request. I've inlcuded the relevant code
below for referrence.

Basically, the code will check to see if a dir exists (CALLOUT 1), then
checks Write permissions by trying to create
a test.txt file (CALLOUT 2), then deletes the file created in CALLOUT 3.
The uploadsDirVar points to another disk
volume and has the correct permissions (NTFS) assigned and have not
changed (see CALLOUT 3 below):

This code is thisASP file called from the site's Default.asp.

CODE SNIPPET START:
Dim fso, fileName, testFile, streamTest

(CALLOUT 1)
' TestEnvironment is a function that simply returns a string with an error
or is = to "" if no error.
TestEnvironment = ""
Set fso = Server.CreateObject("Scripting.FileSystemObject")
if not fso.FolderExists(uploadsDirVar) then
'Folder does not exist
TestEnvironment = "ERROR NO: 900 (Account Error [f] )! Contact the
Office for Assistance."
exit function
end if

' The next series try to Create and Delete a dummy file. If we cannot,
then we have a Permissions error
fileName = uploadsDirVar & "\test.txt"
on error resume next

(CALLOUT 2 - THIS IS WHERE THE APP HANGS UNTIL!)
Set testFile = fso.CreateTextFile(fileName, true)

(from here on out, everything works fine).
If Err.Number<>0 then
' No Write Permissions
TestEnvironment = "ERROR NO: 901 (Account Error [w] )! Contact the
Office for Assistance"
exit function
end if

(CALLOUT 3)
Err.Clear
' This works, so the NTFS perms are good to go!
testFile.Close fso.DeleteFile(fileName)
CODE SNIPPET END:

The dir exists and nothing has changed in terms of permissions, dir
locations or Code. No errors are returned from the Browser, Server or App.
It just hangs. Nothing in the Event Logs (Auditing turned on and shows no
errors either).

If I terminate the app (via the browser) I cannot use the app again.What I
mean to say is that when I try to connect to the app via default.asp,
everything just hangs.

If we debug the app and comment out the lines at CALLOUT 2 (between the If
and Endif) all works fine.if I create test.txt in Explorer, comment out
CALLOUT 2 and execute the app, CALLOUT 3 will delete the file, so we know
that IUSR_machine has the correct permissions which suggest that the
server, app and code are all good.

Any Ideas???

Richard

Jul 22 '05 #4
On Sun, 9 Jan 2005 12:21:34 -0700, "Richard Gutery"
<rg*****@mentorits.com> wrote:
in <Or**************@TK2MSFTNGP10.phx.gbl>
Problem solved! It was actually a reply from Bob Barrows that got me going
on this - thanks Bob.

It seems that when you disable Script Blocking in NAV (actually SYM
Systemworks 2005) and you reboot after a Live Update, Systemworks will reset
any options that you've turned off to the values chosen at "Install Time".
For NAV Corporate Edition on a Server, script blocking is enabled
automatically for all Managed Clients and when the client logs in the NAV
client manager re-enables what ever features you've configured for "Managed
Clients"!

I guess the "Rule of thumb would be": Always double check NAV settings after
Live Updates or nAV Corp Edition Updates to managed clients.


A better rule of thumb might be to use a better Anti Virus.
---
Stefan Berglund
Jul 22 '05 #5
Good Point.

"Stefan Berglund" <ke****@in.thegroups> wrote in message
news:he********************************@4ax.com...
On Sun, 9 Jan 2005 12:21:34 -0700, "Richard Gutery"
<rg*****@mentorits.com> wrote:
in <Or**************@TK2MSFTNGP10.phx.gbl>
Problem solved! It was actually a reply from Bob Barrows that got me going
on this - thanks Bob.

It seems that when you disable Script Blocking in NAV (actually SYM
Systemworks 2005) and you reboot after a Live Update, Systemworks will
reset
any options that you've turned off to the values chosen at "Install Time".
For NAV Corporate Edition on a Server, script blocking is enabled
automatically for all Managed Clients and when the client logs in the NAV
client manager re-enables what ever features you've configured for
"Managed
Clients"!

I guess the "Rule of thumb would be": Always double check NAV settings
after
Live Updates or nAV Corp Edition Updates to managed clients.


A better rule of thumb might be to use a better Anti Virus.
---
Stefan Berglund

Jul 22 '05 #6

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

Similar topics

1
by: John Ramsden | last post by:
I have a script running on PHP v4.3.6 (cgi) that hangs forever in a call to the Postgres pg_get_result() function when and only when the query length is 65536 or more bytes. The query is a...
11
by: anuradha.k.r | last post by:
hi, i am writing a socket program in python,both client side and server side.I've written the client side which is working perfectly fine(checked it against server program written in C).but as for...
12
by: JD | last post by:
This is another Python problem, I think might be unrelated to the earlier bug I found, and eventually figured out how to report it to Sourceforge. This is related to a question I have about...
6
by: Dan | last post by:
I've created a pocketpc app which has a startup form containing a listview. The form creates an object which in turn creates a System.Threading.Timer. It keeps track of the Timer state using a...
10
by: Tomas Vera | last post by:
Hello All, I'ma having trouble getting GetCurrentProcess() to work properly. What I'm trying to accomplish is list all running processes. But my call get GetProcesses() hangs. While testing...
6
by: Alexander Widera | last post by:
hello, if i start a program (an exe-file) with Process.Start(...) I don't have the required permissions that the programm needs (i could start the programm but the program needs special rights)....
2
by: Pierre Rouleau | last post by:
Hi all, I have a consistent test case where os.popen3() hangs in Windows. The system hangs when retrieving the lines from the child process stdout. I know there were several reports related to...
0
by: Arno Stienen | last post by:
Perhaps I should be a bit more specific. When using this code to connect to a remote XML-RPC server (C++, xmlrpc++0.7 library): import xmlrpclib server =...
2
by: Patrick Finnegan | last post by:
Running db2 8.2 ON aIX 5.3. We have a third party USEREXIT program that periodically hangs for some unknown reason. Db2 generates error message to the diag log. MESSAGE : Successfully...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.