Re: 4th attempt: UDP Socket Bug

From: Bryan Martin (spam_at_ahwayside.com)
Date: 01/08/04


Date: Thu, 8 Jan 2004 12:44:02 -0500

This has all been checked and verified. Again, no problems with TCP. This
does function in windows app as the class will show. Also this same thing
has functioned on IIS prior to SP4 without problems.

I guess I will continue to post every few days until I get some kind of
response from M$ or someone who can point me to supporting documents one way
or the other.

Later

"Chris Botha" <chris_s_botha@AT.h.o.t.m.a.i.l.com> wrote in message
news:e6Zn9Pg1DHA.1508@TK2MSFTNGP12.phx.gbl...
> First make sure that the code works and that it is not some other problem,
> thus run the code in a normal windows app.
> Then make sure your impersonation works. Did you switch anonymous access
off
> to the virtual directory? Add a test call returning the connecting user
> info, thus return
> System.Security.Principal.WindowsIdentity.GetCurrent().Name
> and check that it is the expected user.
> If it still does not work, then I'm stumped too.
>
> "Bryan Martin" <spam@ahwayside.com, uce@ftc.gov> wrote in message
> news:%23kHpEoe1DHA.484@TK2MSFTNGP10.phx.gbl...
> > Using udp sockets inside a class called by ASP.NET
> >
> > By impersonating you can use a TCP socket from a external class and call
> it
> > from a ASP.NET page. However, changing the socket type to UDP and
binding
> > it to a port throws an error "An attempt was made to access a socket in
a
> > way forbidden by its access permissions".
> >
> > I tried all the methods I knew of to get this to work such as...
> > ASPNET added the account to the local administrators
> > ASPNET act as part of the os inside local policy
> > <identity impersonate="true" userName="administrator" password="*****"
/>
> > inside the web.config file.
> > System.Security.Principal.WindowsIdentity.GetCurrent.Impersonate inside
> code
> > I have seen
> (http://support.microsoft.com/default.aspx?scid=kb;EN-US;195445)
> >
> > Equipment & Software:
> > W2K Advanced Server SP4 IIS 5
> > VS.NET 1.0
> >
> > This leaves me at a loss on how to get my class to run from a ASP.NET
> page.
> > I have searched the web and msdn without success. If anyone knows
> something
> > I dont then please speak up.
> >
> > Bryan
> >
> >
> >
> > See the attached file for example class. Calling this from ASP.NET
gives
> > the same result on win2ksp4 IIS5.
> >
> > "An attempt was made to access a socket in a way forbidden by its access
> > permissions"
> >
> >
> >
>
>



Relevant Pages

  • Re: 4th attempt: UDP Socket Bug
    ... > does function in windows app as the class will show. ... Add a test call returning the connecting user ... changing the socket type to UDP and ... >>> ASPNET added the account to the local administrators ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: TCPIP Default keep alive question
    ... since last December we have been getting ASOD abends in certain CICS ... Did you mean to alert us to the possibility that the *partner* TCP ... SO_KEEPALIVE socket option and do not override the interval using the ... TCP keepalive probes end TCP connections after a period of inactivity. ...
    (bit.listserv.ibm-main)
  • Re: TCPIP Default keep alive question
    ... Did you mean to alert us to the possibility that the *partner* TCP application ... SO_KEEPALIVE socket option and do not override the interval using the ... TCP keepalive probes end TCP connections after a period of inactivity. ... If the TCP_KEEPALIVE socket option is not used to specify the probe ...
    (bit.listserv.ibm-main)
  • Re: Socket stuck with puts over ADSL line
    ... gets stuck with the puts command within the filevent writeable ... Is the socket configured as -blocking 1? ... local buffer would fill rapidly, ... buffered portion across the WAN as its own TCP packet, ...
    (comp.lang.tcl)
  • Re: network programming: how does s.accept() work?
    ... The articles and books I've read all claim that the server ... port 5053 is a 'listening' port only. ... the server creates a new socket for communication between the client ... on the network, and in the RFCs which define the TCP protocol (UDP too, but ...
    (comp.lang.python)

Loading