Unable to load modules using Unity Framework

0

I am trying to configure the unity framework in a app.config, can you please give an example of how to set this up please as when I am trying to do so using below app.config file I am getting below error:

The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

My App.Config file is as below:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration"/>
  </configSections>
  <unity>
    <containers>
      <container>
        <register  type="Interfaces.ICalculator, Interfaces"
                mapTo="CalculatorLibrary.Calculator,CalculatorLibrary"/>
        <register  type="Interfaces.ICalcRepLoop, Interfaces"
                mapTo="CalculatorLibrary.CalcRepLoop,CalculatorLibrary"/>
        <register  type="Interfaces.IConsoleInputService, Interfaces"
                mapTo="InputOutput.ConsoleInputService,InputOutput"/>
        <register  type="Interfaces.IConsoleOutputService, Interfaces"
                mapTo="InputOutput.ConsoleOutputService,InputOutput"/>
        <register  type="Interfaces.IInputParserService, Interfaces"
                mapTo="CalculatorCommandLibrary.InputParserService,CalculatorCommandLibrary"/>
      </container>
    </containers>
  </unity>
</configuration>

I am using dll from Prisim 4.0

c#
unity-container
prism
asked on Stack Overflow Nov 11, 2014 by A.J • edited Nov 11, 2014 by qJake

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0