hi all

We've made an ActiveX component for making a data call with a modem attached to the PC. This following code works perfectly in a client-side VBScript in the machine that has the required modem (defined in an .ini file) installed and working

<HTML><HEAD><TITLE>Modem testpage</TITLE><SCRIPT LANGUAGE="VBScript"
Sub Button1_OnClic
Dim MLSe
Set MLSes = CreateObject("Modem.Modem"

MLSes.Begi
MLses.Connec
MLSes.SendCommand("strCommand"
MLSes.Disconnec
MLSes.En

Set MLSes = Nothin
End Su
</SCRIPT></HEAD><BODY><H3>Modem testpage</H3><HR><FORM><INPUT NAME="BUTTON1" TYPE="BUTTON" VALUE="Send Command"></FORM></BODY></HTML

As said, this works in the client-side and the data call goes through. However, by changing this to a server-side code, it fails

<%@LANGUAGE="VBSCRIPT"%><HTML><HEAD><TITLE>Modem testpage, server-side</TITLE><
Dim MLSe

Set MLSes = CreateObject("Modem.Modem"

MLSes.Begi
MLses.Connec
MLSes.SendCommand("strCommand"
MLSes.Disconnec
MLSes.En

Set MLSes = Nothin
%></HEAD><BODY></BODY></HTML

This does not work anymore, it gives an error message:

error '80004005'
Unspecified error

/Modemtest.asp, line 10

The line 10 is the MLSes.Begin command, which is not working

Could this difference between client-side and server-side code be due to some security/permission issues? I haven't found anything regarding it....

My basic idea is that I have a Web browser based GUI, in which the client can press a button, which establishes a modem connection FROM THE SERVER to a REMOTE DEVICE for online data collection

Thanks in advance for any advice

Yours

Mike

Re: Server-side modem connection by Al

Al
Wed Mar 03 20:02:33 CST 2004

It is likely a security issue. When running the script client-side, it is
run under the credentials of the user. When run server-side, it is run on
the server under the credentials of IUSR, which has limited power.

/Al


"Mike" <anonymous@discussions.microsoft.com> wrote in message
news:01A2A39F-B88E-4D2E-95BB-8D716A374517@microsoft.com...
> hi all,
>
> We've made an ActiveX component for making a data call with a modem
attached to the PC. This following code works perfectly in a client-side
VBScript in the machine that has the required modem (defined in an .ini
file) installed and working.
>
> <HTML><HEAD><TITLE>Modem testpage</TITLE><SCRIPT LANGUAGE="VBScript">
> Sub Button1_OnClick
> Dim MLSes
> Set MLSes = CreateObject("Modem.Modem")
>
> MLSes.Begin
> MLses.Connect
> MLSes.SendCommand("strCommand")
> MLSes.Disconnect
> MLSes.End
>
> Set MLSes = Nothing
> End Sub
> </SCRIPT></HEAD><BODY><H3>Modem testpage</H3><HR><FORM><INPUT
NAME="BUTTON1" TYPE="BUTTON" VALUE="Send Command"></FORM></BODY></HTML>
>
>
> As said, this works in the client-side and the data call goes through.
However, by changing this to a server-side code, it fails:
>
> <%@LANGUAGE="VBSCRIPT"%><HTML><HEAD><TITLE>Modem testpage,
server-side</TITLE><%
> Dim MLSes
>
> Set MLSes = CreateObject("Modem.Modem")
>
> MLSes.Begin
> MLses.Connect
> MLSes.SendCommand("strCommand")
> MLSes.Disconnect
> MLSes.End
>
> Set MLSes = Nothing
> %></HEAD><BODY></BODY></HTML>
>
> This does not work anymore, it gives an error message:
>
> error '80004005'
> Unspecified error
>
> /Modemtest.asp, line 10
>
> The line 10 is the MLSes.Begin command, which is not working.
>
> Could this difference between client-side and server-side code be due to
some security/permission issues? I haven't found anything regarding it.....
>
> My basic idea is that I have a Web browser based GUI, in which the client
can press a button, which establishes a modem connection FROM THE SERVER to
a REMOTE DEVICE for online data collection.
>
> Thanks in advance for any advice.
>
> Yours,
>
> Mike



Re: Server-side modem connection by Mick

Mick
Thu Mar 04 02:27:44 CST 2004

hi Al,

I changed the user (Win 2000 Server) for the Web site so that the client
needs to be Administrator in order to login into the Web site. I enter the
address, Administrator username and the password I can login to the page.
However, by trying the server-side version of the ActiveX component the same
error message arises. I can create the component normally, but I cannot use
its methods.

Are there any considerations of how to write the component, if server-side
hardware (modem) is to be used? I have absolutely no idea of how to work
around this huge problem of ours.

Mike

"Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
news:elruEzYAEHA.1036@TK2MSFTNGP10.phx.gbl...
> It is likely a security issue. When running the script client-side, it is
> run under the credentials of the user. When run server-side, it is run on
> the server under the credentials of IUSR, which has limited power.
>
> /Al
>
>
> "Mike" <anonymous@discussions.microsoft.com> wrote in message
> news:01A2A39F-B88E-4D2E-95BB-8D716A374517@microsoft.com...
> > hi all,
> >
> > We've made an ActiveX component for making a data call with a modem
> attached to the PC. This following code works perfectly in a client-side
> VBScript in the machine that has the required modem (defined in an .ini
> file) installed and working.
> >
> > <HTML><HEAD><TITLE>Modem testpage</TITLE><SCRIPT LANGUAGE="VBScript">
> > Sub Button1_OnClick
> > Dim MLSes
> > Set MLSes = CreateObject("Modem.Modem")
> >
> > MLSes.Begin
> > MLses.Connect
> > MLSes.SendCommand("strCommand")
> > MLSes.Disconnect
> > MLSes.End
> >
> > Set MLSes = Nothing
> > End Sub
> > </SCRIPT></HEAD><BODY><H3>Modem testpage</H3><HR><FORM><INPUT
> NAME="BUTTON1" TYPE="BUTTON" VALUE="Send Command"></FORM></BODY></HTML>
> >
> >
> > As said, this works in the client-side and the data call goes through.
> However, by changing this to a server-side code, it fails:
> >
> > <%@LANGUAGE="VBSCRIPT"%><HTML><HEAD><TITLE>Modem testpage,
> server-side</TITLE><%
> > Dim MLSes
> >
> > Set MLSes = CreateObject("Modem.Modem")
> >
> > MLSes.Begin
> > MLses.Connect
> > MLSes.SendCommand("strCommand")
> > MLSes.Disconnect
> > MLSes.End
> >
> > Set MLSes = Nothing
> > %></HEAD><BODY></BODY></HTML>
> >
> > This does not work anymore, it gives an error message:
> >
> > error '80004005'
> > Unspecified error
> >
> > /Modemtest.asp, line 10
> >
> > The line 10 is the MLSes.Begin command, which is not working.
> >
> > Could this difference between client-side and server-side code be due to
> some security/permission issues? I haven't found anything regarding
it.....
> >
> > My basic idea is that I have a Web browser based GUI, in which the
client
> can press a button, which establishes a modem connection FROM THE SERVER
to
> a REMOTE DEVICE for online data collection.
> >
> > Thanks in advance for any advice.
> >
> > Yours,
> >
> > Mike
>
>



Re: Server-side modem connection by Al

Al
Fri Mar 05 01:12:07 CST 2004


"Mick Turner" <c_at_man@hotmail.com> wrote in message
news:eo3OXKcAEHA.2600@TK2MSFTNGP09.phx.gbl...
> hi Al,
>
> I changed the user (Win 2000 Server) for the Web site so that the client
> needs to be Administrator in order to login into the Web site. I enter the
> address, Administrator username and the password I can login to the page.
> However, by trying the server-side version of the ActiveX component the
same
> error message arises. I can create the component normally, but I cannot
use
> its methods.

As I understand it, you can be authenticated to the site as anyone you'd
like. But when you run server side script it does not run in the context of
you being logged in to the server, but in the context of a service account
(IUSR). And that account is lacking privileges so that rogue users and
hackers cannot damage the server.

> Are there any considerations of how to write the component, if server-side
> hardware (modem) is to be used?

I don't know, but I don't think that that is what is at play here.

/Al

> I have absolutely no idea of how to work
> around this huge problem of ours.
>
> Mike
>
> "Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
> news:elruEzYAEHA.1036@TK2MSFTNGP10.phx.gbl...
> > It is likely a security issue. When running the script client-side, it
is
> > run under the credentials of the user. When run server-side, it is run
on
> > the server under the credentials of IUSR, which has limited power.
> >
> > /Al
> >
> >
> > "Mike" <anonymous@discussions.microsoft.com> wrote in message
> > news:01A2A39F-B88E-4D2E-95BB-8D716A374517@microsoft.com...
> > > hi all,
> > >
> > > We've made an ActiveX component for making a data call with a modem
> > attached to the PC. This following code works perfectly in a client-side
> > VBScript in the machine that has the required modem (defined in an .ini
> > file) installed and working.
> > >
> > > <HTML><HEAD><TITLE>Modem testpage</TITLE><SCRIPT LANGUAGE="VBScript">
> > > Sub Button1_OnClick
> > > Dim MLSes
> > > Set MLSes = CreateObject("Modem.Modem")
> > >
> > > MLSes.Begin
> > > MLses.Connect
> > > MLSes.SendCommand("strCommand")
> > > MLSes.Disconnect
> > > MLSes.End
> > >
> > > Set MLSes = Nothing
> > > End Sub
> > > </SCRIPT></HEAD><BODY><H3>Modem testpage</H3><HR><FORM><INPUT
> > NAME="BUTTON1" TYPE="BUTTON" VALUE="Send Command"></FORM></BODY></HTML>
> > >
> > >
> > > As said, this works in the client-side and the data call goes through.
> > However, by changing this to a server-side code, it fails:
> > >
> > > <%@LANGUAGE="VBSCRIPT"%><HTML><HEAD><TITLE>Modem testpage,
> > server-side</TITLE><%
> > > Dim MLSes
> > >
> > > Set MLSes = CreateObject("Modem.Modem")
> > >
> > > MLSes.Begin
> > > MLses.Connect
> > > MLSes.SendCommand("strCommand")
> > > MLSes.Disconnect
> > > MLSes.End
> > >
> > > Set MLSes = Nothing
> > > %></HEAD><BODY></BODY></HTML>
> > >
> > > This does not work anymore, it gives an error message:
> > >
> > > error '80004005'
> > > Unspecified error
> > >
> > > /Modemtest.asp, line 10
> > >
> > > The line 10 is the MLSes.Begin command, which is not working.
> > >
> > > Could this difference between client-side and server-side code be due
to
> > some security/permission issues? I haven't found anything regarding
> it.....
> > >
> > > My basic idea is that I have a Web browser based GUI, in which the
> client
> > can press a button, which establishes a modem connection FROM THE SERVER
> to
> > a REMOTE DEVICE for online data collection.
> > >
> > > Thanks in advance for any advice.
> > >
> > > Yours,
> > >
> > > Mike
> >
> >
>
>



Re: Server-side modem connection by Mick

Mick
Fri Mar 05 02:03:05 CST 2004

hello,

It seems to be the security issue. The components that are loaded thru an
ASP page are loaded under such a user that has no modems installed (or
something like this....)

Is there a way of providing such a user (Internet client) access to a
server-side modem?


Mike



"Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
news:elruEzYAEHA.1036@TK2MSFTNGP10.phx.gbl...
> It is likely a security issue. When running the script client-side, it is
> run under the credentials of the user. When run server-side, it is run on
> the server under the credentials of IUSR, which has limited power.
>
> /Al
>
>
> "Mike" <anonymous@discussions.microsoft.com> wrote in message
> news:01A2A39F-B88E-4D2E-95BB-8D716A374517@microsoft.com...
> > hi all,
> >
> > We've made an ActiveX component for making a data call with a modem
> attached to the PC. This following code works perfectly in a client-side
> VBScript in the machine that has the required modem (defined in an .ini
> file) installed and working.
> >
> > <HTML><HEAD><TITLE>Modem testpage</TITLE><SCRIPT LANGUAGE="VBScript">
> > Sub Button1_OnClick
> > Dim MLSes
> > Set MLSes = CreateObject("Modem.Modem")
> >
> > MLSes.Begin
> > MLses.Connect
> > MLSes.SendCommand("strCommand")
> > MLSes.Disconnect
> > MLSes.End
> >
> > Set MLSes = Nothing
> > End Sub
> > </SCRIPT></HEAD><BODY><H3>Modem testpage</H3><HR><FORM><INPUT
> NAME="BUTTON1" TYPE="BUTTON" VALUE="Send Command"></FORM></BODY></HTML>
> >
> >
> > As said, this works in the client-side and the data call goes through.
> However, by changing this to a server-side code, it fails:
> >
> > <%@LANGUAGE="VBSCRIPT"%><HTML><HEAD><TITLE>Modem testpage,
> server-side</TITLE><%
> > Dim MLSes
> >
> > Set MLSes = CreateObject("Modem.Modem")
> >
> > MLSes.Begin
> > MLses.Connect
> > MLSes.SendCommand("strCommand")
> > MLSes.Disconnect
> > MLSes.End
> >
> > Set MLSes = Nothing
> > %></HEAD><BODY></BODY></HTML>
> >
> > This does not work anymore, it gives an error message:
> >
> > error '80004005'
> > Unspecified error
> >
> > /Modemtest.asp, line 10
> >
> > The line 10 is the MLSes.Begin command, which is not working.
> >
> > Could this difference between client-side and server-side code be due to
> some security/permission issues? I haven't found anything regarding
it.....
> >
> > My basic idea is that I have a Web browser based GUI, in which the
client
> can press a button, which establishes a modem connection FROM THE SERVER
to
> a REMOTE DEVICE for online data collection.
> >
> > Thanks in advance for any advice.
> >
> > Yours,
> >
> > Mike
>
>



Re: Server-side modem connection by Al

Al
Fri Mar 05 21:52:33 CST 2004


"Mick Turner" <c_at_man@hotmail.com> wrote in message
news:eZvmQhoAEHA.712@tk2msftngp13.phx.gbl...
> hello,
>
> It seems to be the security issue. The components that are loaded thru an
> ASP page are loaded under such a user that has no modems installed (or
> something like this....)
>
> Is there a way of providing such a user (Internet client) access to a
> server-side modem?

I am sure there is, however, this is not my area of expertise.

/Al

>
> Mike
>
>
>
> "Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
> news:elruEzYAEHA.1036@TK2MSFTNGP10.phx.gbl...
> > It is likely a security issue. When running the script client-side, it
is
> > run under the credentials of the user. When run server-side, it is run
on
> > the server under the credentials of IUSR, which has limited power.
> >
> > /Al
> >
> >
> > "Mike" <anonymous@discussions.microsoft.com> wrote in message
> > news:01A2A39F-B88E-4D2E-95BB-8D716A374517@microsoft.com...
> > > hi all,
> > >
> > > We've made an ActiveX component for making a data call with a modem
> > attached to the PC. This following code works perfectly in a client-side
> > VBScript in the machine that has the required modem (defined in an .ini
> > file) installed and working.
> > >
> > > <HTML><HEAD><TITLE>Modem testpage</TITLE><SCRIPT LANGUAGE="VBScript">
> > > Sub Button1_OnClick
> > > Dim MLSes
> > > Set MLSes = CreateObject("Modem.Modem")
> > >
> > > MLSes.Begin
> > > MLses.Connect
> > > MLSes.SendCommand("strCommand")
> > > MLSes.Disconnect
> > > MLSes.End
> > >
> > > Set MLSes = Nothing
> > > End Sub
> > > </SCRIPT></HEAD><BODY><H3>Modem testpage</H3><HR><FORM><INPUT
> > NAME="BUTTON1" TYPE="BUTTON" VALUE="Send Command"></FORM></BODY></HTML>
> > >
> > >
> > > As said, this works in the client-side and the data call goes through.
> > However, by changing this to a server-side code, it fails:
> > >
> > > <%@LANGUAGE="VBSCRIPT"%><HTML><HEAD><TITLE>Modem testpage,
> > server-side</TITLE><%
> > > Dim MLSes
> > >
> > > Set MLSes = CreateObject("Modem.Modem")
> > >
> > > MLSes.Begin
> > > MLses.Connect
> > > MLSes.SendCommand("strCommand")
> > > MLSes.Disconnect
> > > MLSes.End
> > >
> > > Set MLSes = Nothing
> > > %></HEAD><BODY></BODY></HTML>
> > >
> > > This does not work anymore, it gives an error message:
> > >
> > > error '80004005'
> > > Unspecified error
> > >
> > > /Modemtest.asp, line 10
> > >
> > > The line 10 is the MLSes.Begin command, which is not working.
> > >
> > > Could this difference between client-side and server-side code be due
to
> > some security/permission issues? I haven't found anything regarding
> it.....
> > >
> > > My basic idea is that I have a Web browser based GUI, in which the
> client
> > can press a button, which establishes a modem connection FROM THE SERVER
> to
> > a REMOTE DEVICE for online data collection.
> > >
> > > Thanks in advance for any advice.
> > >
> > > Yours,
> > >
> > > Mike
> >
> >
>
>