|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
IdentityPermission
<i><b>Originally posted by : Kerry Whelan (whelan_kerry@hotmail.com)</b></i><br />When using the identity permissions for declarative code access security I find that there are two overloaded methods for the constructor described in the msdn library, these methods are for permission states and for strings. <br /><br />public UrlIdentityPermission(PermissionState state);<br /><br />public UrlIdentityPermission(string site);<br /><br />When I attempt to code the permission (eg, UrlIdentityPermission) it requires a SecurityAction and says that the string constructor does not exist.<br /><br />Does anyone know why this is or how to specify a site address in the urlIdentityPermission?<br /><br />Thankyou,<br /><br />Kerry <br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : Greg (gregdirst@yahooNOSPAM.com)</b></i><br /><br />If you are using ASP then most likely it is due to the fact that VB Script doesn't understand overloading. A similar problem happens when ASP tries to create a object that has multiple interfaces. Both of these are limitations due to variables not being TYPES other than VARIANT.<br /><br />------------<br />Kerry Whelan at 2/25/2002 10:52:47 AM<br /><br />When using the identity permissions for declarative code access security I find that there are two overloaded methods for the constructor described in the msdn library, these methods are for permission states and for strings. <br /><br />public UrlIdentityPermission(PermissionState state);<br /><br />public UrlIdentityPermission(string site);<br /><br />When I attempt to code the permission (eg, UrlIdentityPermission) it requires a SecurityAction and says that the string constructor does not exist.<br /><br />Does anyone know why this is or how to specify a site address in the urlIdentityPermission?<br /><br />Thankyou,<br /><br />Kerry <br />
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : Kerry Whelan (whelan_kerry@hotmail.com)</b></i><br />Thanks, <br /> I should have mentioned that I am using C#. As far as I know this type problem should not occur in C#. Have you any other ideas?<br /><br />Kerry<br /><br /><br />------------<br />Greg at 2/26/2002 9:12:08 AM<br /><br /><br />If you are using ASP then most likely it is due to the fact that VB Script doesn't understand overloading. A similar problem happens when ASP tries to create a object that has multiple interfaces. Both of these are limitations due to variables not being TYPES other than VARIANT.<br /><br />------------<br />Kerry Whelan at 2/25/2002 10:52:47 AM<br /><br />When using the identity permissions for declarative code access security I find that there are two overloaded methods for the constructor described in the msdn library, these methods are for permission states and for strings. <br /><br />public UrlIdentityPermission(PermissionState state);<br /><br />public UrlIdentityPermission(string site);<br /><br />When I attempt to code the permission (eg, UrlIdentityPermission) it requires a SecurityAction and says that the string constructor does not exist.<br /><br />Does anyone know why this is or how to specify a site address in the urlIdentityPermission?<br /><br />Thankyou,<br /><br />Kerry <br />
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > IdentityPermission |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|