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 7578369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:24:57+00:00 2026-05-30T17:24:57+00:00

I get the following error while: mConsumerTokenManager = (IConsumerTokenManager)container.Resolve(typeof(IConsumerTokenManager), null); even though I have

  • 0

I get the following error while:

 mConsumerTokenManager = (IConsumerTokenManager)container.Resolve(typeof(IConsumerTokenManager), null);

even though I have

public class InMemoryTokenManager : IConsumerTokenManager, IOpenIdOAuthTokenManager
{
    private Dictionary<string, string> tokensAndSecrets = new Dictionary<string, string>();


public InMemoryTokenManager(){}

    /// <summary>
    /// Initializes a new instance of the <see cref="Ugi.Server.Authentication.Consumers.InMemoryTokenManager"/> class.
    /// </summary>
    /// <param name="consumerKey">The consumer key.</param>
    /// <param name="consumerSecret">The consumer secret.</param>
    public InMemoryTokenManager(string consumerKey, string consumerSecret)
    {
        if (String.IsNullOrEmpty(consumerKey))
        {
            throw new ArgumentNullException("consumerKey");
        }

        this.ConsumerKey = consumerKey;
        this.ConsumerSecret = consumerSecret;
    }
Resolution of the dependency failed, type = "DotNetOpenAuth.OAuth.ChannelElements.IConsumerTokenManager", name =

“(none)”.
Exception occurred while: while resolving.
Exception is: InvalidOperationException – The type String cannot be constructed. You must configure the container to supply this value.
———————————————–
At the time of the exception, the container was:

  Resolving Ugi.Server.Authentication.Consumers.InMemoryTokenManager,(none)

(mapped from
DotNetOpenAuth.OAuth.ChannelElements.IConsumerTokenManager, (none))
Resolving parameter “consumerKey” of constructor Ugi.Server.Authentication.Consumers.InMemoryTokenManager(System.String
consumerKey, System.String consumerSecret)
Resolving System.String,(none)

  • 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-05-30T17:24:58+00:00Added an answer on May 30, 2026 at 5:24 pm

    When a target class contains more than one constructor, Unity will use the one that has the InjectionConstructor attribute applied. If
    there is more than one constructor, and none carries the
    InjectionConstructor attribute, Unity will use the constructor with
    the most parameters. If there is more than one such constructor (more
    than one of the “longest” with the same number of parameters), Unity
    will raise an exception.

    You can use the following code during registration to tell Unity which constructor to use:

    this.container.RegisterType<IConsumerTokenManager, InMemoryTokenManager>(new InjectionConstructor());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While trying to validate my forms i get the following error: Expected a {
While trying to insert data to my SQl db i get the following error
While trying to validate form data on my page i get the following error:
while executing the following query, i get an error that there's an error in
I get the following error while trying to install forever ( sudo npm install
I get the following error while performing the following commmand of adding rubygems.orgs as
Whenever I set android.library.reference.1=G\:Projects\Android\library\core\ in ant.properties , I get the following error while building:
While running 'rvm install 1.9.3' I get the following error: Error running ' ./configure
I get the following error while building OpenCV on OS X 10.5 (intel): ld:
I get the following error while I try to delete a row while looping

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.