Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8166599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:55:50+00:00 2026-06-06T19:55:50+00:00

I am having problems when trying to use a TypedFactoryFacility in Castle. I’m using

  • 0

I am having problems when trying to use a TypedFactoryFacility in Castle.

I’m using Castle v3.0.0 and I’ve created a ViewFactory, using

injector.AddFacility(Of TypedFactoryFacility)()

and:

container.Register(CMR.Component.For(Of IDialogViewFactory)().AsFactory())

This code all works fine on my machine, but when deploying it to users on VMs (who don’t have local admin rights), they get the following error:

Unable to obtain public key for StrongNameKeyPair.

There’s various threads around, but nothing that seems to solve my issue – how can I use DynamicProxy on machines who don’t / can’t have access to C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\

In the stack trace of the error is the line

Castle.DynamicProxy.ModuleScope.CreateModule(signStrongName As Boolean)

Which seems to suggest strong naming can be turned off somehow but I can’t figure out how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:55:52+00:00Added an answer on June 6, 2026 at 7:55 pm

    in (upcoming) version 3.1 you can do this, right after you’ve created the container:

    Container.Kernel.ProxyFactory = new DefaultProxyFactory(disableSignedModule: true);
    

    In 3.0 or older you can inherit from DefaultProxyFactory and set the value from there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use HTTPWebRequest to access a REST service, and am having problems
I'm trying to use the SWI-Prolog JPL library, but I'm having problems. I'm trying
I'm having problems with trying to catch an error. I'm using Pyramid/SQLAlchemy and made
I am having problems trying to use the regular expression that I used in
I'm having problems trying to load scripts using the Modernizr version of yepnope and
am having quite alot of problems trying to use embeded fonts in flex 4.
I've been having quite a few problems trying to use Microsoft.SqlServer.Types.SqlGeography . I know
I'm having problems trying to use an array of structs which doesn't have an
I'm having problems trying to use the friend feature of C++. I have these
I'm trying to use HTTPWebRequest to access a web service, and am having problems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.