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:Permissio n denied
Code:800a0046
Source:Microsof t VBScript runtime error -
'define vars
-
url = "http://google.com"
-
path = "C:\temp.txt"
-
'instantiate
-
Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
-
Set fso = CreateObject("Scripting.FileSystemObject")
-
Set txtfile = fso.OpenTextFile(path, 2, True)
-
Set oWS = WScript.CreateObject("WScript.Shell")
-
'make request
-
xmlhttp.open "GET", url, false
-
xmlhttp.send ""
-
'wait for response
-
xmlhttp.waitForResponse()
-
'if status is 200, then it's OK
-
if xmlhttp.status = 200 then
-
txtfile.WriteLine(xmlhttp.responseText)
-
txtfile.Close
-
'enable this to print
-
oWS.Run "NotePad.exe /p " + path
-
'enable this to just display
-
oWS.Run "notepad.exe " + path
-
else
-
'popup bad response, or just omit to end
-
WScript.Echo("bad response")
-
end if
-
'destroy objects. I'm not sure this is necessary
-
Set txtfile = nothing
-
Set xmlhttp = nothing
-
Set oWS = nothing
-
Set fso = nothing
3 5895
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.
The problem was caused by my server side code stuck in a test loop and feeding data continuously.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 line of HTML outputed by ASP, shown
correctly by the browser, followed by a descriptive error message:
Microsoft VBScript runtime error '800a000b'
Division by zero
followed by the number of the error-making line
|
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 like setting width and height.
It happened after i apllied Service Pack 4 to my 2000 machine. Before it
worked properly.
Any suggestions?
|
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 DailySalesReport (hoautoid, dsdate, dsreport, dsclientid,
dsprincipleid, dsremarks, dsadminlock ) Values
(5,'2/16/2005','sacc',1,1,'cdssd','not')
This query runs fine on query analyser, but when I try to put in asp
page and then it gives the runtime error as >>
|
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 new server. Used IISMT to migrate metabase.
Got this error when I tried to run a very basic page... code:
<%@ LANGUAGE=vbscript %>
<%
|
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 generates this error.
Production is clustered environment using Microsoft Application Center.
This was working before and starting throwing this error about 15 days ago.
any help would be much appreciated
thanks
| |
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: 'SearchQueryXML'
/SearchResults.asp, line 142
|
by: .nLL |
last post by:
Erorr is
---------------------
Microsoft VBScript runtime error '800a0046'
Permission denied
/a.asp, line 3
-----------------------
|
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 started giving away this error in all my views.
Microsoft VBScript runtime error '800a01fb'
An exception occurred: 'MoveNext'
/test.asp, line 544
Here is the code:
|
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 VBScript runtime error '800a01f4'
Variable is undefined: 'OpenConn'
/customer/authenticate.asp, line 17
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |