473,578 Members | 3,050 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Permission denied unless I wait and refresh webpage

Code:
PrinterShare = "\\Garchive\ISL aser"

Set objFileStream = objFSO.CreateTe xtFile(PrinterS hare)
objFileStream.W rite("test")
objFileStream.c lose()

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 1833
Where do you set objFileStream to nothing? Where do you set objFSO to
nothing?
On 2/28/05 8:13 PM, in article
5B************* *************** **...icrosof t.com, "Salty Dog"
<Sa******@discu ssions.microsof t.com> wrote:
Code:
PrinterShare = "\\Garchive\ISL aser"

Set objFileStream = objFSO.CreateTe xtFile(PrinterS hare)
objFileStream.W rite("test")
objFileStream.c lose()

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************* *************** **...icrosof t.com, "Salty Dog"
<Sa******@discu ssions.microsof t.com> wrote:
Code:
PrinterShare = "\\Garchive\ISL aser"

Set objFileStream = objFSO.CreateTe xtFile(PrinterS hare)
objFileStream.W rite("test")
objFileStream.c lose()

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.redire ct 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************* *************** **...icrosof t.com, "Salty Dog"
<Sa******@discu ssions.microsof t.com> wrote:
Code:
PrinterShare = "\\Garchive\ISL aser"

Set objFileStream = objFSO.CreateTe xtFile(PrinterS hare)
objFileStream.W rite("test")
objFileStream.c lose()

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
2352
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 refresh third error - permission denied Any ideas greatly appreciated!
3
4630
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); xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { document.myForm.outputSource.value = xmlhttp.responseText; } }
5
25411
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 this error: Permission denied to call method XMLHttpRequest.open
1
2756
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, there's a contact for that collects a few lines of info, and when you hit submit, it takes that and sends it to a specifie email address. It's been...
2
3672
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 comments from the group: ---microsoft.public.sqlserver.odbc-- subject: Permission Denied -- Thanks for help guys I was able to find a trial version of...
4
9077
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 required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details:...
0
3190
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 the destination table(DB2). I get the following error when the package is executed: The execution of the following DTS Package succeeded: ...
0
3388
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 installed same application on another server Win 2003 R2 Std (No Active Directory). On that server I get “Permission denied” using the following...
0
1219
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 installed same application on another server Win 2003 R2 Std (No Active Directory). On that server I get “Permission denied” using the following code (used...
0
7847
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8125
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8148
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6522
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5664
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5342
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2292
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 we have to send another system
1
1389
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.