Logo

¡Bienvenido a Stratos!

Acceder

Foros



Problemas de seguridad en creación de assemblies

Iniciado por seth444, 29 de Septiembre de 2008, 05:00:07 PM

« anterior - próximo »

seth444


Hola gente,

Mi problema es que tengo un assembly que únicamente hace operaciones internas, destro de la base de datos en la que está metido, es decir, no accede a disco, ni al registro ni externamente a ningún sitio. Sin embargo, cuando intento utilizarlo me da un error como este:

A .NET Framework error occurred during execution of user-defined routine or aggregate "GetXaml": System.Security.HostProtectionException: Attempted to perform an operation that was forbidden by the CLR host. The protected resources (only available with full trust) were: All The demanded resources were: ExternalThreading System.Security.HostProtectionException: at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action) at Preference.Jitmv.XamlProcessor.ProcessXamlTemplate() at Preference.Jitmv.SqlServer.Processor.GetXaml(SqlXml
xmlDescriptive, SqlXml xmlPrice, SqlString templateName, SqlInt16 language, SqlInt32 instanceQuantity) .


Este error lo soluciono ÚNICAMENTE dándole un conjunto de permisos "UNSAFE" al assembly. ¿Alguien sabe porqué narices (con perdón) no puedo usar el "SAFE" ó "EXTERNAL_ACCESS" si no tiene nigún tipo de acceso externo a recursos?.

Gracias y perdonar las molestias.
lt;< Omnia in gloriam Dei facite (1Co 10, 31) >>






Stratos es un servicio gratuito, cuyos costes se cubren en parte con la publicidad.
Por favor, desactiva el bloqueador de anuncios en esta web para ayudar a que siga adelante.
Muchísimas gracias.
Stratos es un servicio gratuito, cuyos costes se cubren en parte con la publicidad.
Por favor, desactiva el bloqueador de anuncios en esta web para ayudar a que siga adelante.
Muchísimas gracias.