472,328 Members | 1,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

vbscript runtime error

drhowarddrfine
7,435 Expert 4TB
I've been running this VBScript, gracefully written by InsertAlias, for two days now and it's been perfect. Tonight, for no reason at all, it fails with this error:

Windows Script Host
Line:7
Char:1
Error:Permission denied
Code:800a0046
Source:Microsoft VBScript runtime error
Expand|Select|Wrap|Line Numbers
  1. 'define vars 
  2. url = "http://google.com"
  3. path = "C:\temp.txt"
  4. 'instantiate
  5. Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
  6. Set fso = CreateObject("Scripting.FileSystemObject")
  7. Set txtfile = fso.OpenTextFile(path, 2, True)
  8. Set oWS = WScript.CreateObject("WScript.Shell")
  9. 'make request
  10. xmlhttp.open "GET", url, false
  11. xmlhttp.send ""
  12. 'wait for response
  13. xmlhttp.waitForResponse()
  14. 'if status is 200, then it's OK
  15. if xmlhttp.status = 200 then
  16.     txtfile.WriteLine(xmlhttp.responseText)
  17.     txtfile.Close
  18.     'enable this to print
  19.     oWS.Run "NotePad.exe /p " + path
  20.     'enable this to just display
  21.     oWS.Run "notepad.exe " + path    
  22. else
  23.     'popup bad response, or just omit to end
  24.     WScript.Echo("bad response")
  25. end if
  26. 'destroy objects.  I'm not sure this is necessary
  27. Set txtfile = nothing
  28. Set xmlhttp = nothing
  29. Set oWS = nothing
  30. Set fso = nothing
Nov 25 '08 #1
3 5817
drhowarddrfine
7,435 Expert 4TB
Now hold on here. It's too late to do anything now but there might be an error on my end after all. Let me look into this in the morning.
Nov 25 '08 #2
Curtis Rutland
3,256 Expert 2GB
For the record, it would seem that it is a permissions error of some kind...
Code Error 800A0046 - Runtime error: Permission Denied VBScript
Nov 26 '08 #3
drhowarddrfine
7,435 Expert 4TB
The problem was caused by my server side code stuck in a test loop and feeding data continuously.
Nov 27 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: | last post by:
I am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several...
3
by: Mike Kanski | last post by:
I get this error Microsoft VBScript runtime error '800a01fb' When i call LoadPicture method, or when i pretty much do any operation with PictureBox...
1
by: g_sharad | last post by:
I guess this is a very old problem, but this keeps bugging many ppl in many ways. I am facing the problem with the SQL query >>>> Insert Into...
1
by: PaulieS | last post by:
Hi all. Am migrating a customer from IIS5 on W2K server to IIS6 on W2K3. Zipped all the websites and unzipped them to the identical locations on...
2
by: anidmarty | last post by:
Hey I'm a Sysadmin and my users are getting this error on my production box. It works fine on the dev box. There is a script that is run that...
0
by: =?Utf-8?B?TWF0dCBDYWxob29u?= | last post by:
HI there, I am getting an error on my page which calls up a web service. Microsoft VBScript runtime error '800a13ba' Unknown runtime error:...
0
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
1
by: morrisqueto | last post by:
Hello, One of my websites just started sending a new rare error. The site has been working for almost 2 years without trouble, but today morning...
3
by: nitewriter | last post by:
Hi, Can someone help me with this scripts, it works on a different server but gives me error now, This is the error I now get Microsoft...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

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.