Ask a Question related to ASP.NET Security, Design and Development.
-
Ray Cassick \(Home\) #1
Re: tired of counting.... UDP socket bug
I don't mean to pick here but from what I can tell you have tried everything
that you can try. Maybe it is time that you called MS for some help. yes it
will cost you but they will get it working for you.
"Bryan Martin" <spam@ahwayside.com, [email]uce@ftc.gov[/email]> wrote in message
news:ePT4rIT2DHA.2556@TK2MSFTNGP10.phx.gbl...it> Using udp sockets inside a class called by ASP.NET
>
> By impersonating you can use a TCP socket from a external class and callcode> 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.GetCurre nt.Impersonate inside([url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;195445[/url])> I have seenpage.>
> 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.NETsomething> I have searched the web and msdn without success. If anyone knows> I dont then please speak up.
>
> Bryan
>
>
>
> See the attached file for example class or view it at
> [url]www.myplaceinspace.com/testclass.txt[/url] . 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"
>
> I have also posted this to
> [url]http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=437940[/url] without
> success
>
>
>
>
>
Ray Cassick \(Home\) Guest
-
an easy one i'm apparently too tired to fix...
this block is included by my index.php if the user has selected a category ($catID) of products to view... $db = mysql_connect($host, $dbuser,... -
ANN: Tired of staring at that same old Web safe color palette?
Design Aid Kit® #1: 10-Palette Pack was created with you in mind. Kit #1 is a pack of ten mix-and-match palettes you can add to, or use to... -
Socket.accept problem via Socket.for_fd($stdin.fileno)
Hi, I am experiencing a rather infuriating problem with Socket.accept on Windows XP. The problem exists when I try to create a Socket from... -
Ok I am tired
> "Sharad Gupta" <Sharad.Gupta@netapp.com> wrote in message modules via http, but a simple test like: interesting. without you providing much... -
Distinguishing between socket buffer full & socket disconnected
I am using the IO::Select method can_write() to flow control the writing of a large amount of data to a socket, where the writer may well run ahead... -
Bryan Martin #2
Re: tired of counting.... UDP socket bug
Thanks for your response but I refuse to pay them due to a bug in there
crap.
Bryan
"Ray Cassick (Home)" <rcassickNOSPAM@enterprocity.com> wrote in message
news:O5k2YAY2DHA.208@TK2MSFTNGP12.phx.gbl...everything> I don't mean to pick here but from what I can tell you have triedit> that you can try. Maybe it is time that you called MS for some help. yesbinding> will cost you but they will get it working for you.
>
>
> "Bryan Martin" <spam@ahwayside.com, [email]uce@ftc.gov[/email]> wrote in message
> news:ePT4rIT2DHA.2556@TK2MSFTNGP10.phx.gbl...> it> > Using udp sockets inside a class called by ASP.NET
> >
> > By impersonating you can use a TCP socket from a external class and call> > from a ASP.NET page. However, changing the socket type to UDP anda> > it to a port throws an error "An attempt was made to access a socket in/>> > 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="*****"> code> > inside the web.config file.
> > System.Security.Principal.WindowsIdentity.GetCurre nt.Impersonate inside> ([url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;195445[/url])> > I have seen> page.> >
> > 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> something> > I have searched the web and msdn without success. If anyone knows>> > I dont then please speak up.
> >
> > Bryan
> >
> >
> >
> > See the attached file for example class or view it at
> > [url]www.myplaceinspace.com/testclass.txt[/url] . 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"
> >
> > I have also posted this to
> > [url]http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=437940[/url] without
> > success
> >
> >
> >
> >
> >
>
Bryan Martin Guest
-
Re: tired of counting.... UDP socket bug
Call MS as you have 2 free support calls with youre VSnet usually.
May aswell use them.
"Bryan Martin" <spam@ahwayside.com, [email]uce@ftc.gov[/email]> wrote in message
news:%23ELZxjd2DHA.536@tk2msftngp13.phx.gbl...call> Thanks for your response but I refuse to pay them due to a bug in there
> crap.
>
> Bryan
>
>
> "Ray Cassick (Home)" <rcassickNOSPAM@enterprocity.com> wrote in message
> news:O5k2YAY2DHA.208@TK2MSFTNGP12.phx.gbl...> everything> > I don't mean to pick here but from what I can tell you have tried> it> > that you can try. Maybe it is time that you called MS for some help. yes> > will cost you but they will get it working for you.
> >
> >
> > "Bryan Martin" <spam@ahwayside.com, [email]uce@ftc.gov[/email]> wrote in message
> > news:ePT4rIT2DHA.2556@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 andin> binding> > it> > > from a ASP.NET page. However, changing the socket type to UDP and> > > it to a port throws an error "An attempt was made to access a socketinside> 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.GetCurre nt.Impersonategives> > code> > ([url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;195445[/url])> > > I have seen> > page.> > >
> > > 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> > something> > > I have searched the web and msdn without success. If anyone knows> > > I dont then please speak up.
> > >
> > > Bryan
> > >
> > >
> > >
> > > See the attached file for example class or view it at
> > > [url]www.myplaceinspace.com/testclass.txt[/url] . Calling this from ASP.NETaccess> > > the same result on win2ksp4 IIS5.
> > >
> > > "An attempt was made to access a socket in a way forbidden by itswithout> > > permissions"
> > >
> > > I have also posted this to
> > > [url]http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=437940[/url]>> >> > > success
> > >
> > >
> > >
> > >
> > >
> >
>
Guest
-
mikeb #4
Re: tired of counting.... UDP socket bug
Bryan Martin wrote:
On the other hand, it looks like you won't get your problem resolved> Thanks for your response but I refuse to pay them due to a bug in there
> crap.
>
> Bryan
>
here no matter how many times you repost.
You may have some support incidents available to you if you're an MSDN
subscriber. Otherwise, you may have to pay.
If it's determined to be a bug, MS will refund your money or make your
support incident available to you again. It seems they're pretty fair
with this policy.
<snip>>
> "Ray Cassick (Home)" <rcassickNOSPAM@enterprocity.com> wrote in message
> news:O5k2YAY2DHA.208@TK2MSFTNGP12.phx.gbl...
>>>>I don't mean to pick here but from what I can tell you have tried
> everything
>>>>that you can try. Maybe it is time that you called MS for some help. yes
> it
>>>will cost you but they will get it working for you.
>>
--
mikeb
mikeb Guest
-
Willy Denoyette [MVP] #5
Re: tired of counting.... UDP socket bug
Where do you run this external class from?
If it's from a network share, you should configure your Code access security
policies accordingly. By default such code has no SocketPermission.
Willy.
"Bryan Martin" <spam@ahwayside.com, [email]uce@ftc.gov[/email]> wrote in message
news:ePT4rIT2DHA.2556@TK2MSFTNGP10.phx.gbl...it> Using udp sockets inside a class called by ASP.NET
>
> By impersonating you can use a TCP socket from a external class and callcode> 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.GetCurre nt.Impersonate inside([url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;195445[/url])> I have seenpage.>
> 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.NETsomething> I have searched the web and msdn without success. If anyone knows> I dont then please speak up.
>
> Bryan
>
>
>
> See the attached file for example class or view it at
> [url]www.myplaceinspace.com/testclass.txt[/url] . 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"
>
> I have also posted this to
> [url]http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=437940[/url] without
> success
>
>
>
>
>
Willy Denoyette [MVP] Guest
-
Feroze [MSFT] #6
Re: tired of counting.... UDP socket bug
I think you are binding to a port that has already been bound on the
machine. According to IANA, UDP/53 is a DNS port. Do you have a DNS server
running on this machine ? That might explain why it is not allowing you to
bind.
Try binding to a different port and see if it works.
If that doesnt work, can you send the o/p of "netstat -a -P UDP" from your
machine ?
--
Remove "user" from the email address to reply to the author.
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
[url]http://www.microsoft.com/info/cpyright.htm[/url]
"Bryan Martin" <spam@ahwayside.com, [email]uce@ftc.gov[/email]> wrote in message
news:ePT4rIT2DHA.2556@TK2MSFTNGP10.phx.gbl...it> Using udp sockets inside a class called by ASP.NET
>
> By impersonating you can use a TCP socket from a external class and callcode> 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.GetCurre nt.Impersonate inside([url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;195445[/url])> I have seenpage.>
> 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.NETsomething> I have searched the web and msdn without success. If anyone knows> I dont then please speak up.
>
> Bryan
>
>
>
> See the attached file for example class or view it at
> [url]www.myplaceinspace.com/testclass.txt[/url] . 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"
>
> I have also posted this to
> [url]http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=437940[/url] without
> success
>
>
>
>
>
Feroze [MSFT] Guest



Reply With Quote

