Hi there, 
        
The issue DYNPROXY-ISSUE-134 was just created by Roger 
([email protected]).
        
        Key: DYNPROXY-ISSUE-134
        Summary: Unable to obtain public key for StrongNamedKey
        Type: Bug
        Importance: High
        
        Description:
        Don't think this issue was fixed in DYNPROXY-ISSUE-114. 
To reproduce
* Have signed assemblies
* Remove permissions C:\Documents and Settings\All Users\Application 
Data\Microsoft\Crypto\RSA and C:\Documents and Settings\All Users\Application 
Data\Microsoft\Crypto\RSA\MachineKeys
-> DynProxy will try to sign its runtime assembly. This will cause an exception 
due to unsufficient permissions.
Stack trace
System.ArgumentException : Unable to obtain public key for StrongNameKeyPair.
        at System.Reflection.StrongNameKeyPair.nGetPublicKey(Boolean exported, 
Byte[] array, String container)
        at System.Reflection.StrongNameKeyPair.get_PublicKey()
        at System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name, 
AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet 
requiredPermissions, PermissionSet optionalPermissions, PermissionSet 
refusedPermissions, StackCrawlMark& stackMark, IEnumerable`1 
unsafeAssemblyAttributes)
        at System.AppDomain.DefineDynamicAssembly(AssemblyName name, 
AssemblyBuilderAccess access)
        at Castle.DynamicProxy.ModuleScope.CreateModule(Boolean signStrongName)
        at Castle.DynamicProxy.ModuleScope.ObtainDynamicModuleWithStrongName()
        at Castle.DynamicProxy.ModuleScope.ObtainDynamicModule(Boolean 
isStrongNamed)
        at 
Castle.DynamicProxy.Generators.Emitters.ClassEmitter.CreateTypeBuilder(ModuleScope
 modulescope, String name, Type baseType, IEnumerable`1 interfaces, 
TypeAttributes flags, Boolean forceUnsigned)
        at 
Castle.DynamicProxy.Generators.Emitters.ClassEmitter..ctor(ModuleScope 
modulescope, String name, Type baseType, IEnumerable`1 interfaces, 
TypeAttributes flags, Boolean forceUnsigned)
        at 
Castle.DynamicProxy.Generators.Emitters.ClassEmitter..ctor(ModuleScope 
modulescope, String name, Type baseType, IEnumerable`1 interfaces)
        at 
Castle.DynamicProxy.Generators.InvocationTypeGenerator.GetEmitter(ClassEmitter 
class, Type[] interfaces, INamingScope namingScope, MethodInfo methodInfo)
        at 
Castle.DynamicProxy.Generators.InvocationTypeGenerator.Generate(ClassEmitter 
class, ProxyGenerationOptions options, INamingScope namingScope)
        at 
Castle.DynamicProxy.Contributors.ClassProxyTargetContributor.BuildInvocationType(MetaMethod
 method, ClassEmitter class, ProxyGenerationOptions options)
        at 
Castle.DynamicProxy.Contributors.ClassProxyTargetContributor.GetInvocationType(MetaMethod
 method, ClassEmitter class, ProxyGenerationOptions options)
        at 
Castle.DynamicProxy.Contributors.ClassProxyTargetContributor.GetMethodGenerator(MetaMethod
 method, ClassEmitter class, ProxyGenerationOptions options, 
CreateMethodDelegate createMethod)
        at 
Castle.DynamicProxy.Contributors.CompositeTypeContributor.ImplementMethod(MetaMethod
 method, ClassEmitter class, ProxyGenerationOptions options, 
CreateMethodDelegate createMethod)
        at 
Castle.DynamicProxy.Contributors.CompositeTypeContributor.Generate(ClassEmitter 
class, ProxyGenerationOptions options)
        at 
Castle.DynamicProxy.Generators.ClassProxyGenerator.GenerateType(String name, 
Type[] interfaces, INamingScope namingScope)
        at 
Castle.DynamicProxy.Generators.ClassProxyGenerator.GenerateCode(Type[] 
interfaces, ProxyGenerationOptions options)
        at Castle.DynamicProxy.DefaultProxyBuilder.CreateClassProxyType(Type 
classToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions 
options)
        at Castle.DynamicProxy.ProxyGenerator.CreateClassProxyType(Type 
classToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions 
options)
        at Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(Type 
classToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions 
options, Object[] constructorArguments, IInterceptor[] interceptors)
        at Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(Type 
classToProxy, ProxyGenerationOptions options, Object[] constructorArguments, 
IInterceptor[] interceptors)
[....]
        
For more, see 
http://support.castleproject.org/projects/DYNPROXY/issues/view/DYNPROXY-ISSUE-134
 
        
--
donjon
by Castle Stronghold
http://www.castle-donjon.com


-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en.

Reply via email to