We have just applied the latest patch to version iMIS 15.1.2.4730.
This has caused an issue with iBO especially the payment object. When setting the credit card, it errors out at:
System.NullReferenceException: Object reference not set to an instance of an object.
at Asi.Utilities.Utilities.LogPciEvent(String eventType, Int32 originationCode, Boolean result, String decryptedValue, String encryptedValue)
at Asi.iBO.CCrypto.Encrypt(String clear)
at Asi.iBO.Financials.CPayment.set_CreditCardNumber(String value)
Is this something that has been added in the new version of iBO?
The error occurs at
string userId = AppPrincipal.CurrentIdentity.UserId;
Now we are using iBO in a WCF webservice which is consumed by a silverlight application. It seems that the AppPrincipal.CurrentIdentity is null since it is not running in an iMIS application context or WCM context.
So is iBO not supposed to run outside of the iMIS application context? or is this a bug?
Thanks
Nasser
How is your code logging into iBO.NET? (if at all)
The App identity is null, and it shouldn't be. (See http://www.imiscommunity.com/using_ibo ). I realize your app worked prior to the patch, but I don't think this is really a bug - it's more that the path your app followed avoided any checks for a non-null App identity.