|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
permission for socket accessHi, i only need to make the scoket access unrestricted and nothing else. How
do i do this in an xml which i will be using in adding a permission set using caspol? <PermissionSet class="System.Security.NamedPermissionSet" version="1"> <Permission class="System.Net.SocketPermissionAttribute, mscorlib, Ver=2000.14.1812.10, SN=03689116d3a4ae33" version="1"> <Unrestricted /> </Permission> </PermissionSet> This is my sample code but it doesnt work, it tells me that System.Net.SocketPermissionAttribute is not valid. PLease, i need help. Anyhelkp would be appreciated. Thank you so much in advance. You can construct a NamedPermissionSet and a SocketException in code - and
afterwards call ToXml() on the permission set to get the xml representation. --------------------------------------- Dominick Baier - DevelopMentor http://www.leastprivilege.com Show quoteHide quote > Hi, i only need to make the scoket access unrestricted and nothing > else. How do i do this in an xml which i will be using in adding a > permission set using caspol? > > <PermissionSet class="System.Security.NamedPermissionSet" version="1"> > <Permission class="System.Net.SocketPermissionAttribute, mscorlib, > Ver=2000.14.1812.10, SN=03689116d3a4ae33" version="1"> > <Unrestricted /> > </Permission> > </PermissionSet> > This is my sample code but it doesnt work, it tells me that > System.Net.SocketPermissionAttribute is not valid. PLease, i need > help. Anyhelkp would be appreciated. Thank you so much in advance. > oops. SocketPermission (note to self: coffee first)
--------------------------------------- Dominick Baier - DevelopMentor http://www.leastprivilege.com Show quoteHide quote > You can construct a NamedPermissionSet and a SocketException in code - > and afterwards call ToXml() on the permission set to get the xml > representation. > > --------------------------------------- > Dominick Baier - DevelopMentor > http://www.leastprivilege.com >> Hi, i only need to make the scoket access unrestricted and nothing >> else. How do i do this in an xml which i will be using in adding a >> permission set using caspol? >> >> <PermissionSet class="System.Security.NamedPermissionSet" >> version="1"> >> <Permission class="System.Net.SocketPermissionAttribute, mscorlib, >> Ver=2000.14.1812.10, SN=03689116d3a4ae33" version="1"> >> <Unrestricted /> >> </Permission> >> </PermissionSet> >> This is my sample code but it doesnt work, it tells me that >> System.Net.SocketPermissionAttribute is not valid. PLease, i need >> help. Anyhelkp would be appreciated. Thank you so much in advance.
Need advise...
Import SIMPLEBLOB session key into .NET? [assembly: SecurityPermission] question Trust relationship exception Bad Data with DES Decryption Active Directory and ASP.NET 2.0 https and httplistener Microsoft CryptoAPI CSP Availability SignedXml, X509Certificate2 and certificates with *Strong* protection Where to store log file ? |
|||||||||||||||||||||||