Ask a Question related to ASP, Design and Development.
-
Bill #1
server.createObject("wscript.shell") ... wShell.run ... stopped working...
I used to be able to run the following ASP code on our corp machine (W2K
Server Edition and IIS-5)
and successfully send a net-msg to anyone on our intranet.
Last week it stopped working... and I'm not sure what changed.
(I had applied ALL the W2K update patches... but... I'm not sure if the
problem started before or after that.)
Did any recent W2K patches change the way createObject, wScript.shell, or
"NET SEND" works?
(All my other ASP files continue to work fine.)
1> Dim wShell
2> response.write "Message Sent"
3> set wShell = server.createObject("wscript.shell")
4> wShell.run "Net SEND x.x.x.x test" ' (Insert the IP address
here)
5> set wShell = nothing
I can type "NET SEND" from the server "by hand" from a DOS prompt... and the
msg goes out fine.
When I try to use that same code to run NotePad.exe or Calc.exe... they
never open... but the Task Manager "process list" shows they are running.
Any ideas?
Bill Guest
-
Server.CreateObject("Access.Application")
hi i have a big problem. i have an asp file with the following source code.... ****** Set r_ = Server.CreateObject ("Access.Application.10") ... -
Server.CreateObject("MSWC.Tools") fails in Windows 2003 server?
hello all, I hope you all are fine and doing well. I'm finding this error when i do Server.CreateObject("MSWC.Tools") in ASP using interdev. I... -
server.createobject("wscript.shell")
How about: set wshell = server.createobject("wscript.shell") wshell.run "c:\file.bat " & x set wshell = nothing And then in your batch, use... -
Error:: Activex componet can not create object:"WScript.Shell"
I am trying to use the shell object to send keys to the explorer browser to run the send page funcion. I am receiving the above error only when I... -
Server.CreateObject("ADODB.Stream")
Does anyone know an alternative to this? I am using a ChiliSoft server and this isn't supported. TIA, Andrew * * * Sent via DevBuilder... -
Bill #2
Re: server.createObject("wscript.shell") ... wShell.run ... stopped working...
When I run NET SEND from my asp code... the output file contains:
(And I do NOT get the pop-up.)> An error occurred while sending a message to x.x.x.x
When I run the same NET SEND myself... from a DOS prompt on the server...
the output file contains:(And I do get the pop-up.)> The message was successfully sent to x.x.x.x
When I run DIR from my asp code... the output file contains the correct
directory listing.
Hmmmm. Very interesting.
Does my ASP code work on your machine?
-Bill
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Olqphy%23UDHA.2368@TK2MSFTNGP09.phx.gbl...selected> Try running the net send with cmd.exe and piping the output, i.e.
>
> wShell.Run "cmd.exe /c net send x.x.x.x
> test>C:\PathOnServerThatIUSRhasWritePermissionsTo\ netsend.txt"
>
> Then look at that file. It will either say "The message was successfully
> sent to x.x.x.x." or something else indicating something, hopefully.
>
> Ray at home
>
> --
> Will trade ASP help for SQL Server help
>
>
> " Bill" <BillGostin_RE_MOVE@eMail.com> wrote in message
> news:e59Dns%23UDHA.2156@TK2MSFTNGP11.phx.gbl...> > > it's based on the permissions of the IIS user account that youthe> in> worked> > the IIS manager...
> >
> > I've looked... but I'm not sure what I should set it to.
> > (I've never changed it... my ASP code just stopped working 1 day. It> > 100% fine for many months.)
> >> > ASP...> > > Oh... and GUI apps (like notepad/calc/etc) will almost NEVER work from
> >
> > Would the fact that they *ARE* (at least) being executed...
> > at least tell me that I have my permissions set correctly?
> > (Each time I run my asp code... another copy of Calc.exe appears in the
> > process list.
> > Would that be happening if the user didn't have privileges to executeselected> > ASP... or run executable?)
> >
> > Does anyone know if any of the newest 20 "patches" to W2K changed some
> > "permission stuff"?
> >
> > I DO appreciate your help with this.
> >
> > Thanks
> >
> >
> >
> > "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
> > news:ukW9nN9UDHA.2044@TK2MSFTNGP11.phx.gbl...> > > it's based on the permissions of the IIS user account that youwScript.shell,> in> (W2K> > > the IIS manager...
> > > Check there
> > >
> > > --
> > > ----------------------------------------------------------
> > > Curt Christianson (Software_AT_Darkfalz.Com)
> > > Owner/Lead Designer, DF-Software
> > > [url]http://www.Darkfalz.com[/url]
> > > ---------------------------------------------------------
> > > ..Offering free scripts & code snippits for everyone...
> > > ---------------------------------------------------------
> > >
> > > " Bill" <BillGostin_RE_MOVE@eMail.com> wrote in message
> > > news:OTCwDn8UDHA.1816@TK2MSFTNGP09.phx.gbl...
> > > > I used to be able to run the following ASP code on our corp machine> the> > > > Server Edition and IIS-5)
> > > > and successfully send a net-msg to anyone on our intranet.
> > > >
> > > > Last week it stopped working... and I'm not sure what changed.
> > > > (I had applied ALL the W2K update patches... but... I'm not sure if> > > > problem started before or after that.)
> > > >
> > > > Did any recent W2K patches change the way createObject,> address> > or> > > > "NET SEND" works?
> > > > (All my other ASP files continue to work fine.)
> > > >
> > > > 1> Dim wShell
> > > > 2> response.write "Message Sent"
> > > > 3> set wShell = server.createObject("wscript.shell")
> > > > 4> wShell.run "Net SEND x.x.x.x test" ' (Insert the IP> and> > > > here)
> > > > 5> set wShell = nothing
> > > >
> > > > I can type "NET SEND" from the server "by hand" from a DOS prompt...> they> > > the
> > > > msg goes out fine.
> > > >
> > > > When I try to use that same code to run NotePad.exe or Calc.exe...>> > running.> > > > never open... but the Task Manager "process list" shows they are> >> > > >
> > > > Any ideas?
> >
>
Bill Guest
-
Curt_C [MVP] #3
Re: server.createObject("wscript.shell") ... wShell.run ... stopped working...
permissions?
Change the permissions of the user that IIS is running under
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
[url]http://www.Darkfalz.com[/url]
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------
" Bill" <BillGostin_RE_MOVE@eMail.com> wrote in message
news:eetyssEVDHA.656@tk2msftngp13.phx.gbl...successfully> When I run NET SEND from my asp code... the output file contains:> (And I do NOT get the pop-up.)> > An error occurred while sending a message to x.x.x.x
>
> When I run the same NET SEND myself... from a DOS prompt on the server...
> the output file contains:> (And I do get the pop-up.)> > The message was successfully sent to x.x.x.x
>
> When I run DIR from my asp code... the output file contains the correct
> directory listing.
>
> Hmmmm. Very interesting.
>
> Does my ASP code work on your machine?
>
> -Bill
>
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:Olqphy%23UDHA.2368@TK2MSFTNGP09.phx.gbl...> > Try running the net send with cmd.exe and piping the output, i.e.
> >
> > wShell.Run "cmd.exe /c net send x.x.x.x
> > test>C:\PathOnServerThatIUSRhasWritePermissionsTo\ netsend.txt"
> >
> > Then look at that file. It will either say "The message wasfrom> selected> > sent to x.x.x.x." or something else indicating something, hopefully.
> >
> > Ray at home
> >
> > --
> > Will trade ASP help for SQL Server help
> >
> >
> > " Bill" <BillGostin_RE_MOVE@eMail.com> wrote in message
> > news:e59Dns%23UDHA.2156@TK2MSFTNGP11.phx.gbl...> > > > it's based on the permissions of the IIS user account that you> > in> > worked> > > the IIS manager...
> > >
> > > I've looked... but I'm not sure what I should set it to.
> > > (I've never changed it... my ASP code just stopped working 1 day. It> > > 100% fine for many months.)
> > >
> > > > Oh... and GUI apps (like notepad/calc/etc) will almost NEVER workthe> > > ASP...
> > >
> > > Would the fact that they *ARE* (at least) being executed...
> > > at least tell me that I have my permissions set correctly?
> > > (Each time I run my asp code... another copy of Calc.exe appears inmachine> the> > > process list.
> > > Would that be happening if the user didn't have privileges to execute> selected> > > ASP... or run executable?)
> > >
> > > Does anyone know if any of the newest 20 "patches" to W2K changed some
> > > "permission stuff"?
> > >
> > > I DO appreciate your help with this.
> > >
> > > Thanks
> > >
> > >
> > >
> > > "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
> > > news:ukW9nN9UDHA.2044@TK2MSFTNGP11.phx.gbl...
> > > > it's based on the permissions of the IIS user account that you> > in> > > > the IIS manager...
> > > > Check there
> > > >
> > > > --
> > > > ----------------------------------------------------------
> > > > Curt Christianson (Software_AT_Darkfalz.Com)
> > > > Owner/Lead Designer, DF-Software
> > > > [url]http://www.Darkfalz.com[/url]
> > > > ---------------------------------------------------------
> > > > ..Offering free scripts & code snippits for everyone...
> > > > ---------------------------------------------------------
> > > >
> > > > " Bill" <BillGostin_RE_MOVE@eMail.com> wrote in message
> > > > news:OTCwDn8UDHA.1816@TK2MSFTNGP09.phx.gbl...
> > > > > I used to be able to run the following ASP code on our corpif> > (W2K> > > > > Server Edition and IIS-5)
> > > > > and successfully send a net-msg to anyone on our intranet.
> > > > >
> > > > > Last week it stopped working... and I'm not sure what changed.
> > > > > (I had applied ALL the W2K update patches... but... I'm not sureprompt...> wScript.shell,> > the> > > > > problem started before or after that.)
> > > > >
> > > > > Did any recent W2K patches change the way createObject,> > address> > > or
> > > > > "NET SEND" works?
> > > > > (All my other ASP files continue to work fine.)
> > > > >
> > > > > 1> Dim wShell
> > > > > 2> response.write "Message Sent"
> > > > > 3> set wShell = server.createObject("wscript.shell")
> > > > > 4> wShell.run "Net SEND x.x.x.x test" ' (Insert the IP> > > > > here)
> > > > > 5> set wShell = nothing
> > > > >
> > > > > I can type "NET SEND" from the server "by hand" from a DOS>> > and> > they> > > > the
> > > > > msg goes out fine.
> > > > >
> > > > > When I try to use that same code to run NotePad.exe or Calc.exe...> >> > > > > never open... but the Task Manager "process list" shows they are
> > > running.
> > > > >
> > > > > Any ideas?
> > >
> > >
> >
>
Curt_C [MVP] Guest
-
Ray at #4
Re: server.createObject("wscript.shell") ... wShell.run ... stopped working...
Are you sure that x.x.x.x is correct in your ASP page? Typically you'll get
that "an error occurred..." when the recipient cannot be resolved or does
not have the messenger service running. Your ASP code works fine on my W2K
server.
But I think that you should listen to Curt who has suggested a bunch of
times that it's probably a permissions thing. I don't know about your
setup, but on my W2K server, everyone has read/execute permissions, which is
fine, but on my XP machine, IUSR has explicit denied rights, and I don't
believe I set it that way.
Ray at home
--
Will trade ASP help for SQL Server help
" Bill" <BillGostin_RE_MOVE@eMail.com> wrote in message
news:eetyssEVDHA.656@tk2msftngp13.phx.gbl...> When I run NET SEND from my asp code... the output file contains:> (And I do NOT get the pop-up.)> > An error occurred while sending a message to x.x.x.x
>
> When I run the same NET SEND myself... from a DOS prompt on the server...
> the output file contains:> (And I do get the pop-up.)> > The message was successfully sent to x.x.x.x
>
> When I run DIR from my asp code... the output file contains the correct
> directory listing.
>
> Hmmmm. Very interesting.
>
> Does my ASP code work on your machine?
>
> -Bill
>
Ray at Guest
-
Bill #5
Re: server.createObject("wscript.shell") ... wShell.run ... stopped working...
> Are you sure that x.x.x.x is correct in your ASP page?
The same IP address works when I type it in myself at a DOS prompt on the
server.
The same IP address does NOT work from the ASP code.
I'll play with it some more.> But I think that you should listen to Curt who has suggested a bunch of
> times that it's probably a permissions thing.
Could it still be "wrong permission setting" when:
... the NET SEND executable *IS* definitely being executed. (And giving
its error msg.)
... NotePad.exe and Calc.exe *ARE* being executed. (And appearing in
the process list as "running".)
... "Dir >c:\tmp\dir.txt" works 100% fine. (And lists the files.)
Wouldn't *NONE* of that work... if it was a "you don't have permission"
thing?
(Instead... all of those work.)
Aren't computers fun?
-Bill
is> I don't know about your
> setup, but on my W2K server, everyone has read/execute permissions, whichserver...> fine, but on my XP machine, IUSR has explicit denied rights, and I don't
> believe I set it that way.
>
> Ray at home
>
> --
> Will trade ASP help for SQL Server help
>
>
> " Bill" <BillGostin_RE_MOVE@eMail.com> wrote in message
> news:eetyssEVDHA.656@tk2msftngp13.phx.gbl...> > When I run NET SEND from my asp code... the output file contains:> > (And I do NOT get the pop-up.)> > > An error occurred while sending a message to x.x.x.x
> >
> > When I run the same NET SEND myself... from a DOS prompt on the>> > the output file contains:> > (And I do get the pop-up.)> > > The message was successfully sent to x.x.x.x
> >
> > When I run DIR from my asp code... the output file contains the correct
> > directory listing.
> >
> > Hmmmm. Very interesting.
> >
> > Does my ASP code work on your machine?
> >
> > -Bill
> >
>
Bill Guest
-
Daniel Bush #6
Re: server.createObject("wscript.shell") ... wShell.run ... stopped working...
On Sun, 27 Jul 2003 23:40:28 -0400, "Ray at <%=sLocation%>"
<myfirstname at lane34 dot com> wrote:
If the net send port was blocked, he wouldn't be able to net send from>Computers are very fun. I'd be curious to know what the rest of the net
>send result was in the net send x.x.x.x test>C:\file.txt. Is it possible
>your server's behind a firewall with port 135 (I think) blocked or
>something?
>
>Ray at home
a command prompt.
I would try turning "Anonymous Access" OFF and integrated windows
security ON on the security tab of the page in question and see if
running the "net send" as YOU instead of IUSR_machine works.
Daniel Bush Guest



Reply With Quote

