I'm working on my 1st project using MS Unity IoC framework.
If I have this in my unity configuration:
<container name="TestBusiness">
<types>
<type type="PFServer.DataAccess.TestDataAccess" />
Then I get the error:
Could not load type 'PFServer.DataAccess.TestDataAccess' from assembly 'Microsoft.Practices.Unity.Configuration, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
However, if I add the assembly name to the type definition:
<container name="TestBusiness">
<types>
<type type="PFServer.DataAccess.TestDataAccess, PFServer" />
Then it works fine. Is there any way to add some default set of assemblies to load types from? The odd thing in this case is that "PFServer.dll" is the assembly that contains all this configuration anyway. I find it odd that the current assembly isn't in the path to resolve objects... Or am I just doing something wrong?