I'm using Sitecore 8.1 Original Release and am having problems getting my contact stuff to work properly. Here's my code:
var repository = new ContactRepository();
contact = repository.CreateContact(System.Guid.NewGuid());
When I try to execute this code, I get this error:
Could not load file or assembly 'file://c:\windows\system32\inetsrv\Sitecore.Analytics.Model.Entities.ContactPersonalInfo' or one of its dependencies. The system cannot find the file specified."
This is the same configuration that I've been using for several months, however, I've never tried to create a contact before. I've always just let Sitecore create a contact for me. This error message doesn't make sense, because I'm running my Sitecore instance in a completely separate location (different drive and everything). I've tried copying the Sitecore.Analytics.Model.dll to the specified directory, but I didn't have any luck.
- What could be causing Sitecore to look in such an odd place for the DLL when I call the create function?
- How can I fix this?