Hi,
error 401 means
CKR_CRYPTOKI_ALREADY_INITIALIZED
i.e. you already called Initialize in another part of your code.
Usually you can ignore this error.
BTW the list of PKCS#11 errors is here:
http://wiki.ncryptoki.com/How-NCryptoki-manages-PKCS-11-errors.ashx