Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Permission denied unless I wait and refresh webpage

Reply
Thread Tools

Permission denied unless I wait and refresh webpage

 
 
Salty Dog
Guest
Posts: n/a
 
      03-01-2005
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.
 
Reply With Quote
 
 
 
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      03-01-2005
Where do you set objFileStream to nothing? Where do you set objFSO to
nothing?


On 2/28/05 8:13 PM, in article
5BBADEF8-6674-4137-A166-, "Salty Dog"
<> 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.


 
Reply With Quote
 
 
 
 
Salty Dog
Guest
Posts: n/a
 
      03-01-2005
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
> 5BBADEF8-6674-4137-A166-, "Salty Dog"
> <> 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.

>
>

 
Reply With Quote
 
Salty Dog
Guest
Posts: n/a
 
      03-01-2005
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
> 5BBADEF8-6674-4137-A166-, "Salty Dog"
> <> 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.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JFrame doesn't refresh unless minimized and then maximized Kyle Haish Java 0 04-18-2007 07:05 PM
TreeView doesn't refresh unless restart VS2005 Charlie@CBFC ASP .Net 0 01-05-2007 04:00 PM
Refresh Page - Unless Condition lucanos@gmail.com Javascript 5 07-26-2005 12:23 PM
Unless unless Gábor SEBESTYÉN Ruby 3 06-17-2005 08:54 AM
XSL does not refresh in ASP.NEt unless I rebuild Don ASP .Net 3 07-09-2004 07:06 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57