473,722 Members | 2,135 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wscript.CreateO bject error on ASP page

The statement in an asp page:

dim objShell
Set objShell = WScript.CreateO bject("WScript. Shell")

now gives this error:
VB err= 424,Object required

If I use setobjShell=Ser ver.CreateObjec t("WScript.Shel l"), I get the error
VB err= 5,Invalid procedure call or argument
I believe it stopped working in July 2004 after a security update. I have
re-registered the appropriate dlls and ocxs.

Does anyone have an idea? I am trying to use this object so that I can
execute a batch file that was created earlier in the program.

Thanks

Jul 29 '05 #1
6 15641
Forget the WSCript.CreateO bject code. That's not for ASP. For your other
code where you have Server.CreateOb ject, can you copy and paste the code
from the exact file giving you the problem and post it here?

Ray at work

"MacKenzie" <Ma*******@disc ussions.microso ft.com> wrote in message
news:9E******** *************** ***********@mic rosoft.com...
The statement in an asp page:

dim objShell
Set objShell = WScript.CreateO bject("WScript. Shell")

now gives this error:
VB err= 424,Object required

If I use setobjShell=Ser ver.CreateObjec t("WScript.Shel l"), I get the error
VB err= 5,Invalid procedure call or argument
I believe it stopped working in July 2004 after a security update. I have
re-registered the appropriate dlls and ocxs.

Does anyone have an idea? I am trying to use this object so that I can
execute a batch file that was created earlier in the program.

Thanks

Jul 29 '05 #2
Yes, the code is:
dim objShell
Set objShell = server.CreateOb ject("WScript.S hell")

and I get the error 5,Invalid procedure call or argument.

Thanks!
"Ray Costanzo [MVP]" wrote:
Forget the WSCript.CreateO bject code. That's not for ASP. For your other
code where you have Server.CreateOb ject, can you copy and paste the code
from the exact file giving you the problem and post it here?

Ray at work

"MacKenzie" <Ma*******@disc ussions.microso ft.com> wrote in message
news:9E******** *************** ***********@mic rosoft.com...
The statement in an asp page:

dim objShell
Set objShell = WScript.CreateO bject("WScript. Shell")

now gives this error:
VB err= 424,Object required

If I use setobjShell=Ser ver.CreateObjec t("WScript.Shel l"), I get the error
VB err= 5,Invalid procedure call or argument
I believe it stopped working in July 2004 after a security update. I have
re-registered the appropriate dlls and ocxs.

Does anyone have an idea? I am trying to use this object so that I can
execute a batch file that was created earlier in the program.

Thanks


Jul 29 '05 #3
Well, yeah, there's nothing wrong with that. Perhaps some antivirus
software is blocking the creation of this object? If you put this in a .vbs
file:

dim objShell
Set objShell = CreateObject("W Script.Shell")

and run it while logged onto the machine with administrative rights, what
happens?

Ray at work
"MacKenzie" <Ma*******@disc ussions.microso ft.com> wrote in message
news:D5******** *************** ***********@mic rosoft.com...
Yes, the code is:
dim objShell
Set objShell = server.CreateOb ject("WScript.S hell")

and I get the error 5,Invalid procedure call or argument.

Thanks!

Jul 29 '05 #4
well, error=0.
Do you think it is a permissions problem somewhere?

"Ray Costanzo [MVP]" wrote:
Well, yeah, there's nothing wrong with that. Perhaps some antivirus
software is blocking the creation of this object? If you put this in a .vbs
file:

dim objShell
Set objShell = CreateObject("W Script.Shell")

and run it while logged onto the machine with administrative rights, what
happens?

Ray at work
"MacKenzie" <Ma*******@disc ussions.microso ft.com> wrote in message
news:D5******** *************** ***********@mic rosoft.com...
Yes, the code is:
dim objShell
Set objShell = server.CreateOb ject("WScript.S hell")

and I get the error 5,Invalid procedure call or argument.

Thanks!


Jul 29 '05 #5
I think that it ~could~ be a permissions problem, although IUSR_ should be
permitted to create a WScript.Shell object in a default setup. Has anyone
made any dcomcnfg changes lately or anything?

Ray at work

"MacKenzie" <Ma*******@disc ussions.microso ft.com> wrote in message
news:83******** *************** ***********@mic rosoft.com...
well, error=0.
Do you think it is a permissions problem somewhere?

"Ray Costanzo [MVP]" wrote:
Well, yeah, there's nothing wrong with that. Perhaps some antivirus
software is blocking the creation of this object? If you put this in a ..vbs file:

dim objShell
Set objShell = CreateObject("W Script.Shell")

and run it while logged onto the machine with administrative rights, what happens?

Ray at work
"MacKenzie" <Ma*******@disc ussions.microso ft.com> wrote in message
news:D5******** *************** ***********@mic rosoft.com...
Yes, the code is:
dim objShell
Set objShell = server.CreateOb ject("WScript.S hell")

and I get the error 5,Invalid procedure call or argument.

Thanks!


Jul 29 '05 #6
Hello-
Well, thanks for the ideas, but nothing has worked. Access to this web site
is not through IUSR_, because I also access a soucesafe database on our
network and the share is only available to network users. When I log in as
me (an administrator), I can access the VSS, but the wscript does not work.
Running the script manually works, however. Is there another way I can
execute a batch file from within this web site?

Nancy

"Ray Costanzo [MVP]" wrote:
I think that it ~could~ be a permissions problem, although IUSR_ should be
permitted to create a WScript.Shell object in a default setup. Has anyone
made any dcomcnfg changes lately or anything?

Ray at work

"MacKenzie" <Ma*******@disc ussions.microso ft.com> wrote in message
news:83******** *************** ***********@mic rosoft.com...
well, error=0.
Do you think it is a permissions problem somewhere?

"Ray Costanzo [MVP]" wrote:
Well, yeah, there's nothing wrong with that. Perhaps some antivirus
software is blocking the creation of this object? If you put this in a ..vbs file:

dim objShell
Set objShell = CreateObject("W Script.Shell")

and run it while logged onto the machine with administrative rights, what happens?

Ray at work
"MacKenzie" <Ma*******@disc ussions.microso ft.com> wrote in message
news:D5******** *************** ***********@mic rosoft.com...
> Yes, the code is:
> dim objShell
> Set objShell = server.CreateOb ject("WScript.S hell")
>
> and I get the error 5,Invalid procedure call or argument.
>
> Thanks!
>
>


Aug 3 '05 #7

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

Similar topics

1
4943
by: Bruce Sams | last post by:
Hello, I am running Tomcat 4.x and have tried to set global error handling using the following kind of entries in the web.xml file. But there is no redirection and I always end up with the tomcat generated error page in the browser. Does anyone have a solution to this problem? <error-page>
1
3533
by: Bopanna | last post by:
Hi all, I have a webapplication running on tomcat-4.1.24. I want to show a error page (error.jsp) if the server throws any error. can it be done by configuration of server.xml or web.xml? i dont want to write <@ page errorPage="error.jsp"> in all files. Thanking you Bopanna
7
3060
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard error page displayed by IE (you know, the 'cannot find server or dns error' page). Turning off 'show friendly http error messages' alleviates this. (Unfortunately this is the Windows default setting!) Whats going on?!?!
0
1251
by: Ed Eichman | last post by:
Hi Everyone, Is it possible to generate, in code, exactly (or close to it) the detailed error page generated by (IIS? ASP.NET? .NET Framework?) when an exception is thrown in a ASP.NET web application using C#? Details: I am an experienced programmer doing my first web application for an intranet doing ASP.NET.
6
2310
by: dee | last post by:
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration>
0
1503
by: ravescar | last post by:
I am currently working on an generic error collection mechanism in ASP.NET2.0 written using C# that can catch unhandled exception on a web application in application level. it automatically save an html output with tables containing environmental detail(client browser detail, form request detail etc) to a predefined Error folder. we all know that when an exception occurs in a web application, and you have not set a custom error page in...
7
5074
by: DC | last post by:
Hi, there is a 500;13 page one can configure in the website properties, but ..Net Framework 1.1 also delivers the "server too busy" message sometimes and the IIS custom error page does not seem to catch that. How would I customize the error page then? Regards DC
3
7800
by: nithidolly | last post by:
I am trying to open a Firefox window using WScript.CreateObject. But I cannot find the progid for Firefox. Here is my code that works for IE. var objIEResults = WScript.CreateObject("InternetExplorer.Application", "objIEResults_"); var objIE = WScript.CreateObject("InternetExplorer.Application", "objIE_"); var url = "http://www.google.com" objIE.Height = 1280; objIE.Width = 1024; objIE.navigate(url); objIE.Visible = true;
15
7896
denny1824
by: denny1824 | last post by:
I have a working website. I copied all the files to a new folder in inetpub/wwwroot and then set that folder as a Virtual Directory in IIS. I try going to that site from the new folder and i am getting a default error page. It is an aspx page that I am trying to view. If I put in a fake page name it gives a different error about that fake name not existing, which means to me that it is seeing the page I want to view but is giving an error...
0
8863
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8739
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9384
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9238
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 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...
1
9157
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,...
0
8052
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6681
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3207
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
3
2147
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.