473,472 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Permission denied unless I wait and refresh webpage

Code:
PrinterShare = "\\Garchive\ISLaser"

Set objFileStream = objFSO.CreateTextFile(PrinterShare)
objFileStream.Write("test")
objFileStream.close()

This code is on a page that if redirected to or javascript window.opened
then I'll get a "Permission denied" error message.
If I wait maybe 3-5 minutes, I can refresh the page and the print job will
print successfully.
Jul 22 '05 #1
3 1830
Where do you set objFileStream to nothing? Where do you set objFSO to
nothing?
On 2/28/05 8:13 PM, in article
5B**********************************@microsoft.com, "Salty Dog"
<Sa******@discussions.microsoft.com> wrote:
Code:
PrinterShare = "\\Garchive\ISLaser"

Set objFileStream = objFSO.CreateTextFile(PrinterShare)
objFileStream.Write("test")
objFileStream.close()

This code is on a page that if redirected to or javascript window.opened
then I'll get a "Permission denied" error message.
If I wait maybe 3-5 minutes, I can refresh the page and the print job will
print successfully.


Jul 22 '05 #2
I've been setting objFSO = nothing and now I'm setting objFileStream and
objFile = nothing right after they are closed. Still requires a wait before
the code will succeed.

"Aaron [SQL Server MVP]" wrote:
Where do you set objFileStream to nothing? Where do you set objFSO to
nothing?
On 2/28/05 8:13 PM, in article
5B**********************************@microsoft.com, "Salty Dog"
<Sa******@discussions.microsoft.com> wrote:
Code:
PrinterShare = "\\Garchive\ISLaser"

Set objFileStream = objFSO.CreateTextFile(PrinterShare)
objFileStream.Write("test")
objFileStream.close()

This code is on a page that if redirected to or javascript window.opened
then I'll get a "Permission denied" error message.
If I wait maybe 3-5 minutes, I can refresh the page and the print job will
print successfully.


Jul 22 '05 #3
I feel that this has something to do with the fact that this page is opened
with a javascript window.open and also occurs if I response.redirect to this
page. If I open this up directly, it appears to work fine.

"Aaron [SQL Server MVP]" wrote:
Where do you set objFileStream to nothing? Where do you set objFSO to
nothing?
On 2/28/05 8:13 PM, in article
5B**********************************@microsoft.com, "Salty Dog"
<Sa******@discussions.microsoft.com> wrote:
Code:
PrinterShare = "\\Garchive\ISLaser"

Set objFileStream = objFSO.CreateTextFile(PrinterShare)
objFileStream.Write("test")
objFileStream.close()

This code is on a page that if redirected to or javascript window.opened
then I'll get a "Permission denied" error message.
If I wait maybe 3-5 minutes, I can refresh the page and the print job will
print successfully.


Jul 22 '05 #4

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

Similar topics

2
by: Dodo | last post by:
I'm trying to append to a file a string such as the following: 127599.0 127838.5 14.434 87 first error - 500 internal server error refresh second error - echoes string...does not append file...
3
by: HikksNotAtHome | last post by:
In Mozilla 1.4b, when the URL is set to a local URL, it works as expected. function showIt(){ var xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", "blank.html" ,true);...
5
by: francescomoi | last post by:
Hi. I'm trying to build a webpage which calls another one (at a different server) by using: var req = new XMLHttpRequest() I know some browsers (Mozilla and IE) doesn't allow it, and shows...
1
by: festivalman | last post by:
Hi, sorry if this is in the wrong spot. Finding the newsgroups on MS's site could have been easier Here's my problem I've got some old asp's that are running our simple web site. In a section,...
2
by: Taishi | last post by:
New user of SQL Everything is on the same machine My error is close to the bottom After reading it today, I can see there is a problem with 2 dbases 'PUBS' and 'Master' There are also some...
4
by: stephen | last post by:
Hi, I am getting an error while trying to create an excel file. "Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the...
0
by: debug03 | last post by:
I am executing a DTS package on a Windows 2000 sp4 server running SQL Server 2000 and IBM DB2 V7 client. The DTS package source data(SQL Server) is selected from SQL server table and inserts data to...
0
by: private.anders | last post by:
Hi David! Really need assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have...
0
by: private.anders | last post by:
Really need your assistance since I have been struggling with a problem long time now. I am running a web application on a Win 2003 Std (Active Directory). Everything works fine. I have...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
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,...
1
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: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.