How do I use ProxyObjectReference.SetScope?

9 views
Skip to first unread message

Rich Beales

unread,
Mar 17, 2012, 4:23:58 AM3/17/12
to Castle Project Users
Hi,

I'm having trouble with deploying an app which utilises
TypedFactoryFacility on machines without local admin rights, I get a
"Unable to obtain public key for StrongNameKeyPair" error.

I'm therefore trying to either turn off strong naming (set
disableSignedModule to true) for the dynamically generated assembly,
or get Castle to use a pre-generated proxy assembly.

Both solutions seem to mandate the use of the line
"ProxyObjectReference.SetScope(myNewScope)" but I can't seem to make
castle take any notice of it. I still get the same error whatever I
try. What am I doing wrong?

More info at http://stackoverflow.com/questions/9685030/turn-off-signing-for-castle-dynamicproxy

Thanks,

Rich.
Reply all
Reply to author
Forward
0 new messages