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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:45:17+00:00 2026-05-27T21:45:17+00:00

I am struggling to solve a problem and would really appreciate some help. public

  • 0

I am struggling to solve a problem and would really appreciate some help.

public interface ISolver<T>
{
        void Solve();
}

public class Solver : ISolve<IEntity>
{
  void Solve()
{
...code that solves the given problem
}
}

 public class Client : IClient<IEntity>
{

        public Dictionary<string, ISolver<IEntity>> Solvers { get; set; }
}

All are part of namespace solution.

In Spring.Net configuration:

<object id="Client" type="solution.Client, solution">
<property name="Solvers">
      <dictionary key-type="string" value-type="solution.Solver, solution">
        <entry  key="SolverMp" value-ref="SolverMp"></entry>
      </dictionary>
    </property>
</object>

<object id="SolverMp" type="solution.Solver, solution">
</object>

I get the exception:

Spring.Core.TypeMismatchException: Cannot convert property value of type [System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[solution.Solver, solution, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]] to required type [System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[solution.ISolver`1[[solution.IEntity, solution, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], solution, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]] for property ‘Solvers’.

  • 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-27T21:45:18+00:00Added an answer on May 27, 2026 at 9:45 pm
    <objects xmlns="http://www.springframework.net">
      <object id="Client" type="solution.Client, solution">
        <property name="Solvers">
          <dictionary key-type="string" value-type="solution.ISolver&lt;solution.IEntity&gt;, solution">
            <entry key="SolverMp" value-ref="SolverMp"></entry>
          </dictionary>
        </property>
      </object>
    </objects>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a problem I've been struggling to solve for a while. I need
I've got a small problem I'm struggling to solve. Let's say I've got an
I'm working on a problem in Oracle that I'm struggling to solve 'elegantly'. I
Here is an issue i'm struggling to solve for quit some time now. I
I'm struggling with a problem I'm not able too solve. I've spent a lot
I'm struggling to come up right regex to solve my problem. I need to
I have a bit of a problem and I am struggling to solve it
echo <p id='xlday'>'$_POST['day']'</p>; Hi can anyone help me solve this problem, should be a
Been struggling with this simple selector problem a couple of hours now and must
Recently I came across the SkipList data structure. It really helped me to solve

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.