In a website, I get this error:
The specified user does not have a valid profile. Unable to load XXX.dll
This happens when any page load is attempted.
Set to Load User Profile
true in the apppool advanced settings in IIS:
More info is here: http://www.iis.net/learn/manage/configuring-security/application-pool-identities