Ask a Question related to ASP.NET Security, Design and Development.
-
Bryan Martin #1
3rd attempt: UDP Socket Bug
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.GetCurre nt.Impersonate inside code
I have seen ([url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;195445[/url])
Environment:
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 [url]http://myplaceinspace.com/testclass.txt[/url] 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"
Bryan Martin Guest
-
simple (first attempt) mxi
ok guys decided to look into extension writing have hacked away at the config dir and files within to produce what im after. a simple button... -
4th attempt: UDP Socket Bug
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... -
2nd attempt: UDP Socket Bug
This could have been fixed but I'm pretty sure I recall this sometime ago as an unresolved bug. Can you get this to work from a standard console... -
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... -
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... -
Feroze [MSFT] #2
Re: 3rd attempt: UDP Socket Bug
Looks like you are binding to the local DNS port, and you are already having
an existing process listening on that port. That is why you get that
exception.
do you have a DNS server running on that 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> wrote in message
news:pan.2004.01.07.02.32.43.100595@ahwayside.com. ..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.>
> Environment:
> 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 [url]http://myplaceinspace.com/testclass.txt[/url] 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"
>
Feroze [MSFT] Guest



Reply With Quote

